Skip to content

Instantly share code, notes, and snippets.

@Ferdi265
Created October 14, 2015 20:56
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 Ferdi265/cc0d4bee5a277746adeb to your computer and use it in GitHub Desktop.
Save Ferdi265/cc0d4bee5a277746adeb to your computer and use it in GitHub Desktop.
i3 rc script
#!/bin/bash
# set i3 to default mode, creates /tmp/i3mode-$DISPLAY if neccessary
i3mode default
# enable xautolock if disabled, creates /tmp/xlmode-$DISPLAY if neccessary
xlmode enable -quiet
# do autostart (needs dex to run .desktop files)
if test -d /etc/xdg/autostart; then
shopt -s nullglob
dex /etc/xdg/autostart/*.desktop
shopt -u nullglob
fi
if test -d ~/.config/autostart; then
shopt -s nullglob
dex ~/.config/autostart/*.desktop
shopt -u nullglob
fi
# lemonbar
exec ~/.config/i3/lemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment