From 13eb49132583dbbe948ac80f8d941d7b3c8d11f0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 9 Dec 2023 13:59:48 +0900 Subject: added a solution for the Laptop monitor display to not wake up during hyprctl reload --- config/hypr/configs/LaptopDisplay.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/hypr/configs/LaptopDisplay.conf (limited to 'config/hypr/configs/LaptopDisplay.conf') diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf new file mode 100644 index 00000000..4aa82579 --- /dev/null +++ b/config/hypr/configs/LaptopDisplay.conf @@ -0,0 +1 @@ +monitor = eDP-1, preferred, auto, 1 -- cgit v1.2.3 From c65668b41dcb67da307b71fc8fc523ae753e047b Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 10 Dec 2023 05:15:02 +0900 Subject: 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(-) (limited to 'config/hypr/configs/LaptopDisplay.conf') diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf index 4aa82579..c2626cb6 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 8d597b00..a31e7551 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 6b1c9fc3..0c960a0e 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 -- cgit v1.2.3 From 1b1fe55c5c575e9b5e10bb20d691fcc4ef3927ea Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 10 Dec 2023 07:41:55 +0900 Subject: updated confs files --- config/hypr/configs/Keybinds.conf | 2 +- config/hypr/configs/LaptopDisplay.conf | 2 +- config/hypr/configs/Laptops.conf | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'config/hypr/configs/LaptopDisplay.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 7220a0b6..3ce6f20c 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -66,7 +66,7 @@ bind = , xf86audioraisevolume, exec, $volume --inc #volume up bind = , xf86audiolowervolume, exec, $volume --dec #volume down bind = , xf86AudioMicMute, exec, $volume --toggle-mic #mute mic bind = , xf86audiomute, exec, $volume --toggle #FN+F1 -bind = , xf86Sleep, exec, $LockScreen #FN+F11 (sleep button) +bind = , xf86Sleep, exec, systemctl suspend #FN+F11 (sleep button) bind = , xf86Rfkill, exec, $AirplaneMode #Airplane mode FN+F12 # media controls using keyboards diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf index c2626cb6..d50c9119 100644 --- a/config/hypr/configs/LaptopDisplay.conf +++ b/config/hypr/configs/LaptopDisplay.conf @@ -1,4 +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 +#monitor = eDP-1, preferred, auto, 1 diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index a31e7551..24eef9af 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -34,11 +34,14 @@ bind = $mainMod ALT, F6, exec, $screenshot --in10 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 -# 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 +# CONS of doing this, is that there is no wallpaper. you need to set up your wallpaper again by (SUPER W) and set wallpaper. #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 +# for laptop-lid action (to erase the last entry) - Very important to uncomment this if you use above +# exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/configs/LaptopDisplay.conf -- cgit v1.2.3