|
@@ -45,6 +45,9 @@ bindsym $mod+Shift+v exec cliphist list | bemenu -l 15 -p --counter always -c -
|
|
|
bindsym $mod+v exec ~/.config/sway/scripts/contextual-paste.sh
|
|
bindsym $mod+v exec ~/.config/sway/scripts/contextual-paste.sh
|
|
|
bindsym $mod+c exec ~/.config/sway/scripts/contextual-copy.sh
|
|
bindsym $mod+c exec ~/.config/sway/scripts/contextual-copy.sh
|
|
|
|
|
|
|
|
|
|
+# Home Assistant - Toggle Desk Lamp
|
|
|
|
|
+bindsym Mod4+c exec ~/.local/bin/toggle-desk-lamp.sh
|
|
|
|
|
+
|
|
|
# focus the parent container
|
|
# focus the parent container
|
|
|
bindsym $mod+a exec wtype -M ctrl -k a -m ctrl
|
|
bindsym $mod+a exec wtype -M ctrl -k a -m ctrl
|
|
|
|
|
|
|
@@ -237,12 +240,12 @@ bindswitch --reload --locked lid:on exec 'gtklock -d -c /home/capella/.config/gt
|
|
|
|
|
|
|
|
# @host tompot
|
|
# @host tompot
|
|
|
exec swayidle -w \
|
|
exec swayidle -w \
|
|
|
- timeout 300 'swaylock -f -c 000000 -i /tmp/mercator_projection.png' \
|
|
|
|
|
|
|
+ timeout 300 '~/.config/sway/scripts/cpu-powersave-lock.sh && swaylock -f -c 000000 -i /tmp/mercator_projection.png' \
|
|
|
timeout 600 'swaymsg "output * power off" && ddcutil setvcp --sn 6L1M413 D6 0x05' \
|
|
timeout 600 'swaymsg "output * power off" && ddcutil setvcp --sn 6L1M413 D6 0x05' \
|
|
|
- resume 'swaymsg "output * power on" && ddcutil setvcp --sn 6L1M413 D6 0x01' \
|
|
|
|
|
- before-sleep 'swaylock -f -c 000000 -i /tmp/mercator_projection.png'
|
|
|
|
|
|
|
+ resume '~/.config/sway/scripts/cpu-powersave-unlock.sh && swaymsg "output * power on" && ddcutil setvcp --sn 6L1M413 D6 0x01' \
|
|
|
|
|
+ before-sleep '~/.config/sway/scripts/cpu-powersave-lock.sh && swaylock -f -c 000000 -i /tmp/mercator_projection.png'
|
|
|
|
|
|
|
|
-bindsym $mod+q exec 'swaylock -f -c 000000 -i /tmp/mercator_projection.png'
|
|
|
|
|
|
|
+bindsym $mod+q exec '~/.config/sway/scripts/cpu-powersave-lock.sh && swaylock -f -c 000000 -i /tmp/mercator_projection.png'
|
|
|
# @end
|
|
# @end
|
|
|
|
|
|
|
|
smart_borders on
|
|
smart_borders on
|