ambevar-dotfiles/.xinitrc

18 lines
415 B
Bash

#!/bin/sh
## Source environment config.
[ -f ~/.xprofile ] && . ~/.xprofile
## Launch session
## Note: we do not 'exec' as we want to clean the session on exit.
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
$1
else
awesome
fi
## TODO: This is not needed since all forked processes will be killed anyway
## when 'exec' is not called. But why?
# command -v sessionclean >/dev/null 2>&1 && sessionclean