This commit is contained in:
Le_Foucheur committed 2026-01-01 14:48:20 +01:00
1 parent 9eb6226619
commit 06f5b28291
26 files changed

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
while true;
do
rien=$(echo $(ps -A | grep swayidle))
if [[ $(ps -A | grep deezer-enhanced) != "" ]]; then
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
else
class="stopped"
fi
if [[ $class == "playing" ]]&&[[ $rien != "" ]]; then
killall swayidle
else
if [[ $rien == "" ]]; then
swayidle -w \
timeout 269 '~/script/dim_lum.sh 0 > /run/user/$UID/lum.txt'\
timeout 270 '~/script/dim_lum.sh 100'\
resume '~/script/augment_lum.sh $(( $(cat /run/user/$UID/lum.txt) + 1 ))'\
timeout 300 '~/script/Clock.sh'
fi
fi
done