aboutsummaryrefslogtreecommitdiff
path: root/config/sway
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-02-06 17:49:16 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-02-06 17:49:16 +0100
commit8c7856b8ac5a97314ab8e47902fe7788c0e45b57 (patch)
tree51ee6e145b54998cf76998ea2fd935b9aaa0feb3 /config/sway
parent916adeeed22ccfc1217217303088ba14f330bfe6 (diff)
Add laptop switch config
Diffstat (limited to 'config/sway')
-rw-r--r--config/sway/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/sway/config b/config/sway/config
index 79c0114..ae73b47 100644
--- a/config/sway/config
+++ b/config/sway/config
@@ -226,6 +226,12 @@ bindsym $mod+r mode "resize"
bindgesture swipe:3:left workspace next
bindgesture swipe:3:right workspace prev
+### Event bindings
+
+set $laptop eDP-1
+bindswitch --reload --locked lid:on output $laptop disable
+bindswitch --reload --locked lid:off output $laptop enable
+
#
# Status Bar:
#