added togglebar.sh
parent
a0248688eb
commit
25e9c0c006
|
|
@ -1,32 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#statecon=$(eww state | xargs)
|
|
||||||
#echo $statecon
|
|
||||||
#if [[ -z `echo $statecon` ]] ;then
|
|
||||||
# ~/Dotfiles/desktopenvs/hyprland/scripts/monitorhandler.sh
|
|
||||||
#else
|
|
||||||
# eww close-all
|
|
||||||
#fi
|
|
||||||
GTK_THEME=cyberqueer
|
|
||||||
|
|
||||||
monitorsum=$(hyprctl monitors | grep ID | wc -l)
|
statecon=$( hyprpm list | grep -A1 hyprbars | grep true)
|
||||||
|
|
||||||
statecon=$(eww active-windows)
|
|
||||||
#notify-send $statecon
|
#notify-send $statecon
|
||||||
if [ "$statecon" != '' ]; then
|
if [ "$statecon" != '' ]; then
|
||||||
|
|
||||||
for i in $(seq 1 $monitorsum);
|
hyprpm disable hyprbars
|
||||||
do
|
|
||||||
declare -i curmon=$i-1
|
|
||||||
/usr/bin/eww open --toggle bar$curmon
|
|
||||||
done
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
for i in $(seq 1 $monitorsum);
|
hyprpm enable hyprbars
|
||||||
do
|
|
||||||
declare -i curmon=$i-1
|
|
||||||
/usr/bin/eww open bar --id bar$curmon --arg monitor=$curmon
|
|
||||||
done
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue