mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-03 15:19:24 +00:00
24 lines
527 B
Bash
Executable File
24 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
|
|
show_power_menu() {
|
|
# The first characters are invisible sort keys.
|
|
local menu_options=" Lock
|
|
Save
|
|
Suspend
|
|
Relaunch
|
|
Restart
|
|
Shutdown"
|
|
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_150)
|
|
|
|
case "$selection" in
|
|
*Lock*) hyprlock ;;
|
|
*Save*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;;
|
|
*Suspend*) systemctl suspend ;;
|
|
*Relaunch*) uwsm stop ;;
|
|
*Restart*) systemctl reboot ;;
|
|
*Shutdown*) systemctl poweroff ;;
|
|
esac
|
|
}
|
|
|
|
show_power_menu
|