diff --git a/desktopenvs/hyprland/scripts/ewwstart.sh b/desktopenvs/hyprland/scripts/ewwstart.sh index f165552..9e93c5b 100755 --- a/desktopenvs/hyprland/scripts/ewwstart.sh +++ b/desktopenvs/hyprland/scripts/ewwstart.sh @@ -1,7 +1,7 @@ #!/bin/bash /usr/bin/eww daemon -GTK_THEME=Default +GTK_THEME=cyberqueer monitorsum=$(hyprctl monitors | grep ID | wc -l) diff --git a/desktopenvs/hyprland/scripts/togglebar.sh b/desktopenvs/hyprland/scripts/togglebar.sh index 9c86260..8931c8b 100755 --- a/desktopenvs/hyprland/scripts/togglebar.sh +++ b/desktopenvs/hyprland/scripts/togglebar.sh @@ -1,8 +1,33 @@ #!/bin/bash -statecon=$(eww state | xargs) -echo $statecon -if [[ -z `echo $statecon` ]] ;then - ~/Dotfiles/desktopenvs/hyprland/scripts/monitorhandler.sh +#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=$(eww active-windows) +notify-send $statecon +if [ "$statecon" != '' ]; then + + for i in $(seq 1 $monitorsum); + do + declare -i curmon=$i-1 + /usr/bin/eww open --toggle bar$curmon + done + else - eww close-all + + for i in $(seq 1 $monitorsum); + do + declare -i curmon=$i-1 + /usr/bin/eww open bar --id bar$curmon --arg monitor=$curmon + done + fi + +