mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Remove needless comments
This commit is contained in:
@ -1,15 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/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() {
|
show_power_menu() {
|
||||||
|
# The first characters are invisible sort keys.
|
||||||
local menu_options="\u200B Lock
|
local menu_options="\u200B Lock
|
||||||
\u200C Suspend
|
\u200C Suspend
|
||||||
\u200D Relaunch
|
\u200D Relaunch
|
||||||
\u2060 Restart
|
\u2060 Restart
|
||||||
\u2063 Shutdown"
|
\u2063 Shutdown"
|
||||||
|
|
||||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css)
|
local selection=$(echo -e "$menu_options" | wofi --show dmenu --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css)
|
||||||
|
|
||||||
case "$selection" in
|
case "$selection" in
|
||||||
@ -21,5 +19,4 @@ show_power_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main execution
|
|
||||||
show_power_menu
|
show_power_menu
|
||||||
|
Reference in New Issue
Block a user