X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/405e5868b47bc2b15fede7862f8c57878daa8470..49f7326ed26762c5ad3c4718c7120e6a3a6b4014:/.xsession.d/50-awesomewm diff --git a/.xsession.d/50-awesomewm b/.xsession.d/50-awesomewm index ed50286..bbb8f55 100644 --- a/.xsession.d/50-awesomewm +++ b/.xsession.d/50-awesomewm @@ -1,7 +1,18 @@ -if [ -x ~/code/awesome/awesome ]; then - ~/code/awesome/awesome & +sleep 10 & +sleeppid=$! + +set -x + +if [ -f ~/code/awesome/awesome ] && [ -x ~/code/awesome/awesome ]; then + ~/code/awesome/awesome elif [[ -x =awesome ]]; then - awesome & + if awesome --check; then + awesome --no-argb + else + awesome --config $XDG_CONFIG_HOME/awesome/stock-rc.lua. + fi else - x-window-manager & + x-window-manager fi + +wait $sleeppid