aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/configs/Laptops.conf
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-09 13:59:48 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-09 13:59:48 +0900
commit13eb49132583dbbe948ac80f8d941d7b3c8d11f0 (patch)
tree20172955003c2cf65d9ad1d3af1eac64c15ab01c /config/hypr/configs/Laptops.conf
parentc984a8093c4857829026a0772aaa4a6af96ac5f0 (diff)
added a solution for the Laptop monitor display to not wake up during hyprctl reload
Diffstat (limited to 'config/hypr/configs/Laptops.conf')
-rw-r--r--config/hypr/configs/Laptops.conf11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf
index 0b274336..8d597b00 100644
--- a/config/hypr/configs/Laptops.conf
+++ b/config/hypr/configs/Laptops.conf
@@ -2,6 +2,7 @@
# Setting variables
# This configs are mostly for laptops. This is addemdum to Keybinds.conf
+$configs = $HOME/.config/hypr/configs
$mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts
@@ -22,13 +23,13 @@ bind = , xf86MonBrightnessDown, exec, $backlight --dec #FN+F7
bind = , xf86MonBrightnessUp, exec, $backlight --inc #FN+F8
bind = , xf86TouchpadToggle, exec, $touchpad #FN+10 disable touchpad
-# triggered when external monitor is connected and closing lid (For Laptop)
-# bindl=,switch:Lid Switch, exec, $LidSwitch
-# NOTE: (12-Nov-2023) This use to work before but seems below is ok now
+
# 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"
+# 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
+
# Screenshot keybindings for Asus G15 (no PrinSrc button)
bind = $mainMod, F6, exec, $screenshot --now
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage