feat: fix cockpit

This commit is contained in:
Fabio Lenherr 2023-02-23 23:20:59 +01:00
parent 97277e458d
commit 78d87dd61f
2 changed files with 6 additions and 1 deletions

View file

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