wofi menus use static order to display options
This commit is contained in:
parent
492bd9b0e1
commit
39b844c850
5 changed files with 10 additions and 4 deletions
|
@ -3,6 +3,6 @@
|
|||
source "/usr/lib/sp-functions"
|
||||
|
||||
options=$( ls "${conf_dir}/global-shortcuts/" )
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu -k /dev/null | awk '{print}' )
|
||||
|
||||
"${conf_dir}/global-shortcuts/${op}"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e "⏻ Poweroff\n Reboot\n Suspend\n Lock\n Logout" | wofi -i --dmenu -a | awk '{print tolower($2)}' )
|
||||
op=$( echo -e "⏻ Poweroff\n Reboot\n Suspend\n Lock\n Logout" | wofi -i --dmenu -a -k /dev/null | awk '{print tolower($2)}' )
|
||||
case $op in
|
||||
poweroff)
|
||||
;&
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
source "/usr/lib/sp-functions"
|
||||
source "${conf_dir}/config"
|
||||
|
||||
op=$( echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 | awk '{print tolower($1)}' )
|
||||
op=$( echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 -k /dev/null | awk '{print tolower($1)}' )
|
||||
|
||||
echo "$op"
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@ source "/usr/lib/sp-functions"
|
|||
current_profile=$( get_profile_id )
|
||||
|
||||
profile_scripts=$( ls "${conf_dir}/profiles/${current_profile}/shortcuts/" )
|
||||
op=$( echo -e "${profile_scripts}" | wofi -w 2 -i --dmenu | awk '{print}' )
|
||||
op=$( echo -e "${profile_scripts}" | wofi -w 2 -i --dmenu -k /dev/null | awk '{print}' )
|
||||
|
||||
"${conf_dir}/profiles/${current_profile}/shortcuts/${op}"
|
||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
sway-profiles (0.3.15) unstable; urgency=medium
|
||||
|
||||
* all wofi menus now output cache to /dev/null to remain ordered statically
|
||||
|
||||
-- Penelope Gwen <support@pogmom.me> Thu, 17 Apr 2025 19:44:29 +0000
|
||||
|
||||
sway-profiles (0.3.14) unstable; urgency=medium
|
||||
|
||||
* added sp-profiles reload
|
||||
|
|
Loading…
Add table
Reference in a new issue