]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Add laptop switch config
authorRuben Beltran del Rio <redacted>
Thu, 6 Feb 2025 16:49:16 +0000 (17:49 +0100)
committerRuben Beltran del Rio <redacted>
Thu, 6 Feb 2025 16:49:16 +0000 (17:49 +0100)
config/sway/config

index 79c0114d22035a920cc337848637814166903f81..ae73b47a767028dccbe753d1c125f0f513b7b1c3 100644 (file)
@@ -226,6 +226,12 @@ bindsym $mod+r mode "resize"
   bindgesture swipe:3:left workspace next
   bindgesture swipe:3:right workspace prev
 
   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:
 #
 #
 # Status Bar:
 #