17 lines
195 B
Bash
Executable file
17 lines
195 B
Bash
Executable file
#!/bin/sh
|
|
|
|
string=$(eww windows)
|
|
windows=($string)
|
|
|
|
for i in "${windows[@]}"
|
|
do
|
|
if [[ $i = '*bar0' ]]; then
|
|
eww close bar0
|
|
return
|
|
else
|
|
eww open bar0
|
|
fi
|
|
done
|
|
|
|
|