summaryrefslogtreecommitdiff
path: root/stow/hyprland/.config/hypr/hyprland.conf
diff options
context:
space:
mode:
Diffstat (limited to 'stow/hyprland/.config/hypr/hyprland.conf')
-rw-r--r--stow/hyprland/.config/hypr/hyprland.conf11
1 files changed, 6 insertions, 5 deletions
diff --git a/stow/hyprland/.config/hypr/hyprland.conf b/stow/hyprland/.config/hypr/hyprland.conf
index 091bb2a..a029630 100644
--- a/stow/hyprland/.config/hypr/hyprland.conf
+++ b/stow/hyprland/.config/hypr/hyprland.conf
@@ -223,10 +223,11 @@ gesture = 3, pinch, fullscreen
binds {
workspace_back_and_forth = true
allow_workspace_cycles = true
- # trigger when the switch is toggled
- bindl=,switch:Lid Switch,exec,swaylock
}
+# Trigger swaylock only when lid is closed (not when opened)
+bindl=,switch:on:Lid Switch,exec,~/.scripts/swaylock-wrapper
+
# Example per-device config
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
#device {
@@ -346,7 +347,7 @@ bind = $MOD SHIFT, B, exec, foot -e btop
# Global Hot-keys #
###################
##screenlock
-bind = $MOD , L, exec, swaylock
+bind = $MOD , L, exec, ~/.scripts/swaylock-wrapper
$SS_DIR = /home/justsaumit/pix/Screenshots
@@ -388,7 +389,7 @@ bind = $MOD, F9, exec, blueman-manager
bind = $MOD, Return,layoutmsg, swapwithmaster
#fullscreen layout toggle
-bind = $MOD, H, togglesplit
+#bind = $MOD, H, togglesplit
bind= $MOD, U, fullscreen
# Move focus with MOD + arrow keys
@@ -511,7 +512,7 @@ windowrule = float on, match:class hyprland-run
# }
# Spotify to workspace 9
-windowrule = workspace 9, match:class ^(spotify)$
+windowrule = workspace 9, match:class ^(Spotify)$
# Obsidian opacity
windowrule = opacity 1.0, match:class ^(obsidian)$