update
This commit is contained in:
parent
b66a71129e
commit
3251bca29a
299 changed files with 7589 additions and 37 deletions
22
scripts/brightnessWidget.sh
Executable file
22
scripts/brightnessWidget.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
while "$(cat /home/rafayahmad/dotfiles/.config/eww/brightnessShow)"; do
|
||||
|
||||
activeWindows=$(/home/rafayahmad/eww/target/release/eww active-windows)
|
||||
if [[ "$activeWindows" != *"brightnessWin"* ]] ; then
|
||||
echo "opening"
|
||||
/home/rafayahmad/eww/target/release/eww open brightnessWin
|
||||
fi
|
||||
|
||||
echo false > /home/rafayahmad/.config/eww/brightnessShow
|
||||
sleep 1
|
||||
done
|
||||
|
||||
activeWindows=$(/home/rafayahmad/eww/target/release/eww active-windows)
|
||||
if [[ "$activeWindows" == *"brightnessWin"* ]] ; then
|
||||
echo "closing"
|
||||
/home/rafayahmad/eww/target/release/eww close brightnessWin
|
||||
fi
|
||||
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue