feat: add lid control

This commit is contained in:
Ahmet Kaan Gümüş 2025-02-28 03:57:46 +03:00
parent 6f8a503414
commit a8802d5393

View file

@ -1,6 +1,11 @@
# monitor=,preferred,auto,auto
monitor = HDMI-A-1, 1920x1080@75, 1920x0, 1
# monitor = eDP-1, disable
monitor=,preferred,auto,auto
monitor = eDP-1, 2880x1800@90, 0x1080, 2
monitor = HDMI-A-1, 1920x1080@75, 0x0, 1
monitor = eDP-1, disable
# bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"
#bindl = , switch:on:Lid Switch, exec, hyprctl keyword input:touchdevice:enabled false
bindl = , switch:off:Lid Switch, exec, hyprctl keyword input:touchdevice:enabled false
bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 2880x1800@90, 0x1080, 2" monitor = HDMI-A-1, disable
exec-once = sleep 1 && waybar
exec-once = sleep 2 && nm-applet
@ -19,7 +24,7 @@ render:explicit_sync = true
$terminal = wezterm start --always-new-process
$fileManager = flatpak run org.kde.dolphin
$fileManager = GTK_THEME=Adwaita:dark nautilus
$active_menu = rofi -show
$menu = rofi -show drun -show-icons
$menu_unsafe = mullvad-exclude rofi -show drun -show-icons
@ -31,8 +36,6 @@ $browser_unsafe = mullvad-exclude flatpak run io.github.ungoogled_software.ungoo
$mainMod = SUPER
$my_trigger = Alt
bind = $my_trigger, T, exec, $terminal
bind = $my_trigger, Q, exec, $fileManager
bind = Alt, F1, exec, $active_menu