Modification of caffeine-indicator for work with xscreensaver. A desktop indicator ‘caffeine-indicator’ supplies a manual toggle to prevent xscreensaver to start.
Based on https://code.launchpad.net/caffeine
sudo apt update
sudo apt install python3-pip
pip install python3_xlib
sudo apt install gir1.2-ayatanaappindicator3-0.1
sudo dpkg -i xscreensaver-caffeine-indicator-1.0.3-Linux.deb
xscreensaver-caffeine-indicator
Add the from the /usr/share/applications/xscreensaver-caffeine-indicator.desktop
to the settings of your DE or add a link in autostart folder es:
ln -s /usr/share/applications/xscreensaver-caffeine-indicator.desktop /home/$USER/.config/autostart/xscreensaver-caffeine-indicator.desktop
sudo apt remove xscreensaver-caffeine-indicator