From dbe8984c47ab8ecb475c675e282a70e97318cbcd Mon Sep 17 00:00:00 2001 From: t470p Date: Sat, 11 May 2024 20:19:28 -0500 Subject: [PATCH] + XWM env variable to set x windowm manager --- dots/environment/environment | 2 ++ dots/xorg/.xinitrc | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dots/environment/environment b/dots/environment/environment index e4d572d..08be29d 100644 --- a/dots/environment/environment +++ b/dots/environment/environment @@ -8,6 +8,8 @@ SYNCDIR_t470p=/home/poq/nextcloud/syncDir # format: SYNCDIR_[HOSTNAME] +XWM=i3 # {i3, qtile} + GTK_THEME=Adapta-Nokto HYPRSHOT_DIR=/home/poq/syncDir/0_downloads # only in use for hyprland diff --git a/dots/xorg/.xinitrc b/dots/xorg/.xinitrc index 966a9f1..9eebbb4 100644 --- a/dots/xorg/.xinitrc +++ b/dots/xorg/.xinitrc @@ -32,5 +32,10 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then unset f fi -exec i3 -#exec qtile start +if [ ${XWM} == "i3" ] ; then + exec i3 +elif [ ${XWM} == "qtile" ] ; then + exec qtile start +else + echo "error: unknown environment variable XWM: '${XWM}'" +fi