Removed xcaffeine

This commit is contained in:
2023-08-14 15:08:18 -04:00
parent 0e0b52448a
commit 157b1752ba
2 changed files with 0 additions and 30 deletions
-7
View File
@@ -1,7 +0,0 @@
[Desktop Entry]
Exec=/usr/local/bin/xcaffeine.sh
Icon=
Name=xcaffeine
Path=
Terminal=False
Type=Application
-23
View File
@@ -1,23 +0,0 @@
#!/usr/bin/env bash
# depends on X11, libpulse (compatible w/Pipewire&PulseAudio)
# START USER CHANGEABLE VARIABLES
# list of pactl search terms
pactl_search=('jellyfinmediaplayer' 'rpcs3')
# frequency to check for activity (in seconds)
timeout=290
# FINISH USER CHANGEABLE VARIABLES
while [ True ]; do
sleep $timeout
for term in ${pactl_search[@]}; do
search_result=$(pactl list | grep $term)
if [ ! -z "$search_result" ]; then
echo "Whitelisted content ($term) is active, keeping screen alive..."
xset s off -dpms
sleep 5
xset s on +dpms
fi
done
done