* Switch from light to brightnessctl * Switch from Rofi to Wofi (launcher) * Switch from Rofi to Wofi (LRU window switcher) * Switch from Rofi to nwg-clipman (clipboard manager) * Switch to gtklock by default * Added kbd-backlight.sh to control keyboard backlight
8 lines
655 B
Text
8 lines
655 B
Text
timeout 240 'brightnessctl -s && brightnessctl set 10' resume 'brightnessctl -r'
|
|
timeout 300 '/usr/share/sway/scripts/lock.sh'
|
|
timeout 600 '/usr/share/sway/scripts/kbd-backlight.sh off && swaymsg "output * power off"' resume '/usr/share/sway/scripts/kbd-backlight.sh on && swaymsg "output * power on"'
|
|
timeout 900 '[ "$(acpi -b | grep Discharging)" != "" ] && systemctl suspend'
|
|
timeout 3600 '[ "$(acpi -b | grep Discharging)" = "" ] && systemctl suspend'
|
|
before-sleep 'playerctl pause'
|
|
before-sleep '/usr/share/sway/scripts/lock.sh && sleep 2'
|
|
after-resume '/usr/share/sway/scripts/kbd-backlight.sh on && swaymsg "output * power on" && brightnessctl -r'
|