adding some tweaks so eww is different on desktop

This commit is contained in:
Chris Cochrun 2023-05-26 16:22:14 -05:00
parent cbc30ff9a5
commit 95ca496310
4 changed files with 21 additions and 7 deletions

View file

@ -2,14 +2,25 @@
string=$(eww windows)
windows=($string)
host=$(hostname)
for i in "${windows[@]}"
do
if [[ $i = '*bar0' ]]; then
eww close bar0
return
if [[ "$host" = kaladin ]]; then
if [[ $i = '*bar1' ]]; then
eww close bar1
return
else
eww open bar1
fi
else
eww open bar0
if [[ $i = '*bar0' ]]; then
eww close bar0
return
else
eww open bar0
fi
fi
done