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