Skip to content

Instantly share code, notes, and snippets.

@0x17de
Last active January 29, 2017 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x17de/185a3b7179ff8ffb305e8cac50469ea8 to your computer and use it in GitHub Desktop.
Save 0x17de/185a3b7179ff8ffb305e8cac50469ea8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# IMPORTANT: Rather put this script as ~/.startup.sh
# and call this script from your ~/.xsessionrc
# The .xsessionrc may look like this:
#
# ./.startup.sh
#
function init() {
xsetroot -cursor_name left_ptr&
xset m 9 5
xset -dpms
xset dpms 0 0 0
xset s off
#compton -b --config ~/.config/compton.conf
feh --no-fehbg --bg-fill ~/.config/bg.jpg &
#feh --no-fehbg --bg-fill
urxvtd&
#zim&
redshift -l 53:13& #BERLIN
}
function run() {
while [ ! killall -0 i3 ]; do
sleep 1s
done
init
}
run &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment