Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
folder=$1 #store the first given arguement to folder
seconds=$2 #store the second given arguement to seconds
if [ $1 == "kill" ] # if the first arguement is "kill" then kill the script wallpaperslideshow.sh
then
killall wallpaperslideshow.sh # kills the script wallpaperslideshow.sh
else # else run the following
while [ true ] # creates a infinite loop
@MisterPixels
MisterPixels / supershortcuts.sh
Created February 5, 2018 20:37
Automatic assignment of Superkey+1/9 to shortcuts on the lxde panel
#!/bin/bash
##PLEASE BACKUP YOUR OPENBOX XML FILE BEFORE USING THIS SCRIPT.
##THIS IS A SAFETY MEASURE IN THE EVENT THAT THE SCRIPT FAILS TO EXECUTE CORRECTLY!
##This script reads the desktop shortcuts from the panel file and adds up to 9 shortcuts to the openbox xml file.
##Allowing you to use super+1/9 to open applications from your panel using the keyboard
##Instructions: To apply shortcuts: "./supershortcuts.sh /path/to/panel/file /path/to/openbox/config/xml/file
##To get rid of the shortcuts again simply type: "./supershortcuts.sh remove /path/to/openbox/config/xml/file