added some waybar support

This commit is contained in:
Penelope Gwen 2024-06-11 13:06:21 -06:00
parent 5282d13176
commit ddb53a836e
2 changed files with 6 additions and 0 deletions

5
bin/sp-profile-icon Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source "/usr/lib/sp-functions"
get_profile_icon

View file

@ -41,5 +41,6 @@ for i in {1..10};do
done done
moveto="${p_num}1:${p_icon}" moveto="${p_num}1:${p_icon}"
killall -SIGUSR2 waybar
swaymsg 'workspace number "'"${p_num}"'"1:"'"${p_icon}"'"' swaymsg 'workspace number "'"${p_num}"'"1:"'"${p_icon}"'"'
echo "${op}" > "${cache_dir}/active_profile" echo "${op}" > "${cache_dir}/active_profile"