Generating i3 config in xinitrc depending on host name
This commit is contained in:
33
.xinitrc
33
.xinitrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user