dotfiles/config/sway/poweraction.org
2024-08-07 22:34:10 -05:00

287 B

Sway Power Action Script

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

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