Files
owen 5c57ee20f7 Add Arch Wayland dotfiles: sway/waybar/kitty/nvim/zsh, idempotent installer
Auto-adapts sway workspace routing to however many monitors are
connected (laptop vs. desktop) instead of hardcoding output names.
2026-08-21 22:59:26 -05:00

16 lines
360 B
Bash
Executable File

#!/usr/bin/env bash
set -Eeuo pipefail
choice=$(
printf '%s\n' 'Lock' 'Logout' 'Suspend' 'Reboot' 'Shut down' \
| wofi --dmenu --prompt 'Power' --width 320 --height 300
) || exit 0
case "$choice" in
Lock) swaylock -f ;;
Logout) swaymsg exit ;;
Suspend) systemctl suspend ;;
Reboot) systemctl reboot ;;
'Shut down') systemctl poweroff ;;
esac