mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Tweak the menu options
This commit is contained in:
@ -5,18 +5,17 @@
|
||||
|
||||
# Function to show power menu
|
||||
show_power_menu() {
|
||||
local menu_options=" Power Off
|
||||
Restart
|
||||
local menu_options=" Lock
|
||||
Sleep
|
||||
Logout
|
||||
Lock"
|
||||
|
||||
# Show menu and get selection
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 250)
|
||||
|
||||
if [ -n "$selection" ]; then
|
||||
case "$selection" in
|
||||
" Power Off")
|
||||
Restart
|
||||
Shutdown"
|
||||
|
||||
# Show menu and get selection
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 250)
|
||||
|
||||
if [ -n "$selection" ]; then
|
||||
case "$selection" in
|
||||
" Shutdown")
|
||||
systemctl poweroff
|
||||
;;
|
||||
" Restart")
|
||||
@ -25,17 +24,13 @@ if [ -n "$selection" ]; then
|
||||
" Sleep")
|
||||
systemctl suspend
|
||||
;;
|
||||
" Logout")
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
" Lock")
|
||||
" Lock")
|
||||
hyprlock
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
# Main execution
|
||||
show_power_menu
|
||||
show_power_menu
|
||||
|
Reference in New Issue
Block a user