env variable to set x windowm manager
This commit is contained in:
t470p
2024-05-11 20:19:28 -05:00
parent 05c37bf0e9
commit dbe8984c47
2 changed files with 9 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
SYNCDIR_t470p=/home/poq/nextcloud/syncDir # format: SYNCDIR_[HOSTNAME] SYNCDIR_t470p=/home/poq/nextcloud/syncDir # format: SYNCDIR_[HOSTNAME]
XWM=i3 # {i3, qtile}
GTK_THEME=Adapta-Nokto GTK_THEME=Adapta-Nokto
HYPRSHOT_DIR=/home/poq/syncDir/0_downloads # only in use for hyprland HYPRSHOT_DIR=/home/poq/syncDir/0_downloads # only in use for hyprland

View File

@@ -32,5 +32,10 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f unset f
fi fi
exec i3 if [ ${XWM} == "i3" ] ; then
#exec qtile start exec i3
elif [ ${XWM} == "qtile" ] ; then
exec qtile start
else
echo "error: unknown environment variable XWM: '${XWM}'"
fi