mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
Merge pull request #85 from npenza/waybar-power-menu-improvements
Waybar Power Menu - Remove Search and Add Shortcuts
This commit is contained in:
@ -5,13 +5,13 @@
|
||||
|
||||
# Function to show power menu
|
||||
show_power_menu() {
|
||||
local menu_options="\u200B Lock
|
||||
\u200C Sleep
|
||||
\u200D Relaunch
|
||||
\u2060 Restart
|
||||
\u2063 Shutdown" # These first characters are invisible sort keys
|
||||
local menu_options="\u200B Lock (Super + Escape)
|
||||
\u200C Sleep (Shift + Super + Escape)
|
||||
\u200D Relaunch (Alt + Super + Escape)
|
||||
\u2060 Restart (Ctrl + Super + Escape)
|
||||
\u2063 Shutdown (Ctrl + Shift + Super + Escape)" # These first characters are invisible sort keys
|
||||
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 250 -O alphabetical)
|
||||
local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 500 --height 195 -O alphabetical --style ~/.local/share/omarchy/config/wofi/omarchy-power-menu.css)
|
||||
|
||||
case "$selection" in
|
||||
*Lock*) hyprlock ;;
|
||||
|
65
config/wofi/omarchy-power-menu.css
Normal file
65
config/wofi/omarchy-power-menu.css
Normal file
@ -0,0 +1,65 @@
|
||||
@define-color selected-text #7dcfff;
|
||||
@define-color text #cfc9c2;
|
||||
@define-color base #1a1b26;
|
||||
|
||||
* {
|
||||
font-family: 'CaskaydiaMono Nerd Font', monospace;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
window {
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
background-color: @base;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#input {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
margin-top: -200px;
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 5px;
|
||||
border: none;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
#entry {
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#entry:selected #text {
|
||||
color: @selected-text;
|
||||
}
|
||||
|
||||
#entry image {
|
||||
-gtk-icon-transform: scale(0.7);
|
||||
}
|
Reference in New Issue
Block a user