Skip to content

Instantly share code, notes, and snippets.

@kdidenko
Last active January 22, 2018 08:55
Show Gist options
  • Save kdidenko/9e783d919356151e267207b4aa2aa2ec to your computer and use it in GitHub Desktop.
Save kdidenko/9e783d919356151e267207b4aa2aa2ec to your computer and use it in GitHub Desktop.
Installs XscreenSaver and Addons
#!/bin/bash
# Found at: http://blog.likewise.org
# Slightly updated by: https://github.com/kdidenko
# Install xscreensaver and addons:
sudo apt-get install \
xscreensaver xscreensaver-data-extra \
xscreensaver-gl xscreensaver-gl-extra
# Uninstall the gnome-screensaver package:
sudo apt-get remove gnome-screensaver
# Make GNOME's "Lock Screen" use xscreensaver:
sudo ln -sf /usr/bin/xscreensaver-command \
/usr/bin/gnome-screensaver-command
# Turn off Unity's built-in blanking.
# NOTE: For more options see 'gsettings list-keys org.gnome.desktop.screensaver'
# These two are equivalent to going to "System Settings / Brightness & Lock" and:
# * Setting "Turn screen off when inactive for" to "Never"
# * Switching the "Lock" toggle button to OFF
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.desktop.screensaver lock-enabled false
# The configuration Desktop shortcut
echo "[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name[en_US]=XscreenSaver Configuration
Name=XscreenSaver Configuration
Exec=xscreensaver -nosplash
Hidden=false
NoDisplay=false
Comment[en_US]=Start the XscreenSaver Configuration
Comment=Start the XscreenSaver Configuration
" > ~/Desktop/XscreenSaver.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment