adding eww.sh
This commit is contained in:
parent
b07358f12e
commit
ad58a6fcb9
29
scripts/eww.sh
Executable file
29
scripts/eww.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
string=$(eww windows)
|
||||
windows=($string)
|
||||
|
||||
for i in "${windows[@]}"
|
||||
do
|
||||
echo $i
|
||||
if [ $(hostname) = "syl" ]; then
|
||||
|
||||
if [[ $i = '*bar0' ]]; then
|
||||
eww close bar0
|
||||
return
|
||||
else
|
||||
eww open bar0
|
||||
fi
|
||||
|
||||
else
|
||||
if [[ $i = '*bar1' ]]; then
|
||||
eww close bar1
|
||||
return
|
||||
else
|
||||
eww open bar1
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
Loading…
Reference in a new issue