Skip to content

Instantly share code, notes, and snippets.

@fatho
Created October 6, 2014 18:07
Show Gist options
  • Save fatho/325c38642f1b71c47040 to your computer and use it in GitHub Desktop.
Save fatho/325c38642f1b71c47040 to your computer and use it in GitHub Desktop.
#!/bin/sh
# set environment for x session
source ~/.zsh.d/environment.zsh
# set wallpaper
~/bin/wallpaperd.sh ~/config-files/wallpaper &
source /etc/X11/xinit/xinitrc.d/30-dbus
# Start GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
# You probably need to do this too:
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK
# start devmon (automounting)
killall devmon
(devmon --exec-on-drive "notify-send --urgency=low \"Volume mounted\" \"Volume %l has been mounted to %d\"" \
--exec-on-unmount "notify-send --urgency=low \"Volume unmounted\" \"Volume %l has been unmounted\"" &)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment