-
-
Save Ferdi265/cc0d4bee5a277746adeb to your computer and use it in GitHub Desktop.
i3 rc script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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