From c65668b41dcb67da307b71fc8fc523ae753e047b Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 10 Dec 2023 05:15:02 +0900 Subject: [PATCH] updated copy.sh and laptop --- config/hypr/configs/LaptopDisplay.conf | 3 +++ config/hypr/configs/Laptops.conf | 20 +++++++++++++------- copy.sh | 4 ---- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf index 4aa8257..c2626cb 100644 --- a/config/hypr/configs/LaptopDisplay.conf +++ b/config/hypr/configs/LaptopDisplay.conf @@ -1 +1,4 @@ +## NOTE, THIS FILE IS BEING USED by disabling Laptop display monitor behaviour when closing lid. +## See notes on Laptops.conf + monitor = eDP-1, preferred, auto, 1 diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index 8d597b0..a31e755 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -23,16 +23,22 @@ bind = , xf86MonBrightnessDown, exec, $backlight --dec #FN+F7 bind = , xf86MonBrightnessUp, exec, $backlight --inc #FN+F8 bind = , xf86TouchpadToggle, exec, $touchpad #FN+10 disable touchpad +# Screenshot keybindings for Asus G15 (no PrinSrc button) +bind = $mainMod, F6, exec, $screenshot --now +bind = $mainMod SHIFT, F6, exec, $screenshot --area +bind = $mainMod CTRL SHIFT, F6, exec, $screenshot --in5 +bind = $mainMod ALT, F6, exec, $screenshot --in10 # From WIKI This is to disable laptop monitor when lid is closed. # consult https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Binds/#switches +bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" +bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" + +# Be very careful and read the notes when using this part +# Before enabling this part, make sure to comment out (put # on both of the bindl = , switch.... above) # NOTE: Display for laptop are being generated into LaptopDisplay.conf -bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $configs/LaptopDisplay.conf -bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $configs/LaptopDisplay.conf +# NOTE: Make sure to OPEN your laptop display before shutting down your laptop or you will end up with a disabled Laptop display on your next startup +#bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $configs/LaptopDisplay.conf +#bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $configs/LaptopDisplay.conf -# Screenshot keybindings for Asus G15 (no PrinSrc button) -bind = $mainMod, F6, exec, $screenshot --now -bind = $mainMod SHIFT, F6, exec, $screenshot --area -bind = $mainMod CTRL SHIFT, F6, exec, $screenshot --in5 -bind = $mainMod ALT, F6, exec, $screenshot --in10 \ No newline at end of file diff --git a/copy.sh b/copy.sh index 6b1c9fc..0c960a0 100755 --- a/copy.sh +++ b/copy.sh @@ -178,10 +178,6 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" # Set executable for initial-boot.sh chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" -#printf "\n\n" -# adding user to input group -#printf " adding user to input group...\n" -#sudo gpasswd -a $(whoami) input 2>&1 | tee -a "$LOG" #printf "\n\n" # Additional wallpaper