Generating i3 config in xinitrc depending on host name

This commit is contained in:
kuben
2019-07-22 14:12:57 +02:00
parent 0a8f686e60
commit 2780a8bf21
4 changed files with 293 additions and 300 deletions

View File

@@ -18,21 +18,30 @@ fi
export EDITOR="vim"
export CUPS_GSSSERVICENAME=HTTP
#srandrd conkyshit/displays
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
volnoti &
#xxkb &
owncloud &
# exec gnome-session
# exec startkde
# exec startxfce4
#exec kdm
# ...or the Window Manager of your choice
rm ~/.i3.log.old
mv ~/.i3.log ~/.i3.log.old
rm ~/.i3.log
#exec $WM -d all -V >> ~/.i3.log
exec $WM >> ~/.i3.log
rm -f "~/${WM}.log.old"
mv -f "~/${WM}.log" "~/${WM}.log.old"
rm -f "~/${WM}.log"
rm -f "~/${WM}.log"
if [ "$WM" = "i3" ]; then
# Generate i3 config file
i3config="/tmp/i3_${USER}_config"
rm -f $i3config
if [ -f ~/.i3/base.config ]; then
cat ~/.i3/base.config >> $i3config
fi
if [ "`hostname`" = "kubaArch" ] && [ -f ~/.i3/home.config ]; then
cat ~/.i3/home.config >> $i3config
fi
exec i3 -c $i3config # >> "~/${WM}.log" 2>&1
else
exec $WM >> "~/${WM}.log" 2>&1
fi