This commit is contained in:
RafayAhmad7548 2024-12-28 16:34:14 +05:00
parent b66a71129e
commit 3251bca29a
299 changed files with 7589 additions and 37 deletions

22
scripts/brightnessWidget.sh Executable file
View 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