.xinitrc: Add xprofile and i3initrc for launching i3 from GDM
This commit is contained in:
22
.i3initrc
Normal file
22
.i3initrc
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generate my i3 config based on hostname
|
||||
# Needs to be sourced by .xprofile (GDM) or .xinitrc (startx)
|
||||
|
||||
# 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
|
||||
elif [ "`hostname`" = "kubaDesktop" ] && [ -f ~/.i3/home.config ]; then
|
||||
cat ~/.i3/home.config >> $i3config
|
||||
elif [ "`hostname`" = "JakubArch" ] && [ -f ~/.i3/work.config ]; then
|
||||
cat ~/.i3/work.config >> $i3config
|
||||
fi
|
||||
|
||||
#exec i3 -c $i3config -V >> ~/${WM}.log 2>&1
|
||||
sh ~/scripts/displays.sh auto
|
||||
exec i3 -c $i3config
|
||||
Reference in New Issue
Block a user