Change system+login shell to Dash, add zsh and configuration

This commit is contained in:
2023-03-30 18:14:13 -04:00
parent 2dcad0828a
commit 49de04a67a
19 changed files with 112 additions and 40 deletions
+7
View File
@@ -0,0 +1,7 @@
[Desktop Entry]
Exec=/usr/local/bin/xcaffeine.sh
Icon=
Name=xcaffeine
Path=
Terminal=False
Type=Application
+23
View File
@@ -0,0 +1,23 @@
#!/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