Files
dotfiles/dot_local/bin/executable_owlry-power-menu
s0wlz (Matthias Puchstein) f2617605db hypr: add owlry power menu with hyprshutdown integration
Replace direct uwsm stop keybind with owlry-power-menu script.
Menu offers lock/suspend/logout/reboot/shutdown via hyprshutdown
for graceful session teardown.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 17:17:48 +01:00

19 lines
419 B
Bash

#!/usr/bin/env bash
set -euo pipefail
choice=$(printf '%s\n' \
"lock" \
"suspend" \
"logout" \
"reboot" \
"shutdown" \
| owlry -m dmenu -p "Power")
case "$choice" in
lock) swaylock -f ;;
suspend) systemctl suspend ;;
logout) hyprshutdown ;;
reboot) hyprshutdown -t 'Restarting...' --post-cmd 'reboot' ;;
shutdown) hyprshutdown -t 'Shutting down...' --post-cmd 'shutdown -P now' ;;
esac