wofi menus use static order to display options

This commit is contained in:
Penelope Gwen 2025-04-17 19:46:19 +00:00
parent 492bd9b0e1
commit 39b844c850
5 changed files with 10 additions and 4 deletions

View file

@ -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}"

View file

@ -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)
;&

View file

@ -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"

View file

@ -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
View file

@ -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