Skip to content

Instantly share code, notes, and snippets.

@albertohm
Created September 19, 2013 23:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertohm/6631359 to your computer and use it in GitHub Desktop.
Save albertohm/6631359 to your computer and use it in GitHub Desktop.
Fluxbox startup
#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.
# Change your keymap:
xmodmap "/home/alberto/.Xmodmap"
# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
# Disable laptop screen
xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output LVDS1 --off --output DP1 --off --output VGA1 --off &
# Network applet
nm-applet &
# Wallpaper
fbsetbg wallpaper/Official-Pure-Blue-1024.jpg &
# Volume
volumeicon &
# For loading gtk3 themes
gnome-settings-daemon &
# ssh-agent
#eval `ssh-agent`
# xscreensaver
xscreensaver -nosplash &
# conky
sh /home/alberto/conky-manager/conky-startup.sh
#
# Debian-local change:
# - fbautostart has been added with a quick hack to check to see if it
# exists. If it does, we'll start it up by default.
which fbautostart > /dev/null
if [ $? -eq 0 ]; then
fbautostart
fi
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/alberto/.fluxbox/log"
@albertohm
Copy link
Author

For activating screensaver when relive from suspension

/usr/lib/pm-utils/sleep.d/000LockScreensaver

#!/bin/sh

# Lock xscreensaver on resume from a suspend.

case "$1" in resume|thaw)
    xscreensaver-command --lock ;
esac

sudo chmod +x /usr/lib/pm-utils/sleep.d/000LockScreensaver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment