Skip to content

Instantly share code, notes, and snippets.

@mito150
mito150 / keepScreenOn.sh
Last active August 29, 2015 14:22
A Bash Script to avoid the activation of xscreensaver. Very useful when you are watching TV or films on your web browser and it doesn't disable the screensaver.
#!/bin/bash
# Set the display
export DISPLAY=:0
# Screensaver daemon doesn't sometimes respond until a restart is performed
xscreensaver-command -restart
while [ 1 ]; do
xscreensaver-command -deactivate
@mito150
mito150 / updateFlattrIcons.sh
Last active August 29, 2015 14:22
A Bash Script to auto-update the Flattr icon pack. It installs the icons inside your home at ~/.icons folder.
#!/bin/bash
URL="https://github.com/NitruxSA/flattr-icons/archive/master.zip"
FILENAME="master"
FOLDERNAME1="Flattr"
FOLDERNAME2="Flattr Dark"
INSIDE_ZIP_FOLDER="flattr-icons-master"
INSTALL_FOLDER=~/.icons
# Download icon pack