From a47d7d011d9bbed227b24bac061e0c1ff8b011b4 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 27 Jan 2025 09:19:49 +0100 Subject: [PATCH] Updated scripts --- config/hypr/hyprland.conf | 12 ++++++++++-- update_arch.sh | 18 +++++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 2975ab6..7f36134 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -1,8 +1,8 @@ ################ ### MONITORS ### ################ -# monitor=,1920x1200,auto,auto -monitor=desc:Lenovo Group Limited P24h-10 0x01010101,2560x1440,auto,1 +monitor=,2560x1440,auto,1 +#monitor=desc:Lenovo Group Limited P24h-10 0x01010101,2560x1440,auto,1 # xwayland { # force_zero_scaling = true @@ -180,6 +180,10 @@ bind = $mainMod, DEL, exit, bind = $mainMod CTRL, W, exec, $browser bind = $mainMod, G, exec, $moonlight +# Set monitor resolution +bind = $mainMod, R, exec, hyprctl keyword monitor ",1920x1200,auto,1" +bind = $mainMod CTRL, R, exec, hyprctl keyword monitor ",2560x1440,auto,1" + # Special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, scratchpad bind = $mainMod, B, togglespecialworkspace, btop @@ -187,6 +191,7 @@ bind = $mainMod, D, togglespecialworkspace, discord bind = $mainMod, W, togglespecialworkspace, web bind = $mainMod, F, togglespecialworkspace, fzfmenu bind = $mainMod, P, togglespecialworkspace, prusaslicer +bind = $mainMod, V, togglespecialworkspace, mixer # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l @@ -298,6 +303,9 @@ windowrulev2 = float, title:^(volume control)$ windowrulev2 = dimaround, title:^(Volume Control)$ windowrulev2 = float, title:^(Helvum - Pipewire Patchbay)$ windowrulev2 = dimaround, title:^(Helvum - Pipewire Patchbay)$ +windowrulev2 = float, onworkspace:special:mixer +windowrulev2 = size 80% 80%, onworkspace:special:mixer +workspace = special:mixer, on-created-empty:pavucontrol # Web on worlspace 2 diff --git a/update_arch.sh b/update_arch.sh index 51c8247..53e04bf 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -154,7 +154,7 @@ wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhe wget https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64 wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64 chmod +x ./vhclientx86_64 -chmod +x ./vhclientx86_64 +chmod +x ./vhuit64 sudo mv ./vhclientx86_64 /usr/sbin sudo mv ./vhuit64 /usr/sbin echo "$USER ALL=(ALL:ALL) NOPASSWD: /usr/sbin/vhclientx86_64" | sudo tee /etc/sudoers.d/$USER+vhclientx86_64 @@ -368,14 +368,14 @@ yay --noconfirm --needed -S sunshine echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules mkdir -p ~/.config/systemd/user cp -f ~/code_server/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service -if [ "$KERNEL" == "$(uname -r)" ]; then - sudo udevadm control --reload-rules - sudo udevadm trigger - sudo modprobe uinput - sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) - sudo systemctl daemon-reload - systemctl --user start sunshine -fi +# if [ "$KERNEL" == "$(uname -r)" ]; then +sudo udevadm control --reload-rules +sudo udevadm trigger +# sudo modprobe uinput +sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) +sudo systemctl daemon-reload +systemctl --user start sunshine +# fi # Symlink update script printf -- '\033[33m Symlinking update wrapper\n\033[37m'