output_logging_20240912T002337
This commit is contained in:
1 parent
cb1a0ca69d
commit
9eb6226619
3763 files changed
+307
-64993
No files matched your search
Executable
+21
@@ -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
|
||||
Reference in new issue
Block a user