mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00

* Working concept with SDDM * Working concept without SDDM dep * Working concept w/o SDDM and w/ UWSM * Cleanup and UWSM tweaks * Cleanup * Remove call to seamless-login.sh * Don't allow the progress to go backwards * Add refresh to migration
26 lines
705 B
Bash
Executable File
26 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Power menu for Omarchy
|
|
# Provides power off, restart, and sleep options
|
|
|
|
# Function to show power menu. The first characters are invisible sort keys.
|
|
show_power_menu() {
|
|
local menu_options="\u200B Lock
|
|
\u200C Suspend
|
|
\u200D Relaunch
|
|
\u2060 Restart
|
|
\u2063 Shutdown"
|
|
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 150 --height 195 -O alphabetical --style ~/.local/share/omarchy/default/wofi/select.css)
|
|
|
|
case "$selection" in
|
|
*Lock*) hyprlock ;;
|
|
*Suspend*) systemctl suspend ;;
|
|
*Relaunch*) uwsm stop ;;
|
|
*Restart*) systemctl reboot ;;
|
|
*Shutdown*) systemctl poweroff ;;
|
|
esac
|
|
}
|
|
|
|
# Main execution
|
|
show_power_menu
|