dotfiles/config/sway/poweraction.org
2024-08-07 14:58:48 -05:00

250 B

Sway Power Action Script

Run this shell script from power off menu to either log off or power off.

  rm ~/.swaynaglock
  case $1 in
      logout) swaymsg exit;;
      ,*) doas "/sbin/$1";;
  esac