fix: Update eww to match hyprland

This commit is contained in:
Fabio Lenherr / DashieTM 2023-08-14 21:45:54 +02:00
parent bd75c46a27
commit e147a91d84
5 changed files with 42 additions and 45 deletions

View file

@ -4,7 +4,7 @@ ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
if [ "$ISOPEN" = "" ]; then
MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
MONITOR=$(hyprctl monitors | grep -B 11 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
eww open cockpit_window_"$MONITOR"
else
eww close "$ISOPEN"