From 05c37bf0e938c927ec449be0498ab19cf0c2186e Mon Sep 17 00:00:00 2001 From: t470p Date: Sat, 11 May 2024 20:12:01 -0500 Subject: [PATCH] u --- dots/archinstall/t470p/options.sh | 8 +++++--- dots/environment/environment | 5 ++--- scripts/99_deploy.sh | 30 +++++++++++++++++++++--------- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/dots/archinstall/t470p/options.sh b/dots/archinstall/t470p/options.sh index d019047..8194760 100644 --- a/dots/archinstall/t470p/options.sh +++ b/dots/archinstall/t470p/options.sh @@ -4,11 +4,13 @@ # import using 'source' -OPTIONS_LOADED=true +OPTIONS_LOADED=true # used to check if options have been loaded -CLONE_TARGET_DIR=/tmp +CLONE_TARGET_DIR=/tmp # directory to clone dots repository to -USER=poq +USER=poq # system user + +# window manager / compositor HYPRLAND=false I3WM=true QTILE=false diff --git a/dots/environment/environment b/dots/environment/environment index dd70ea8..e4d572d 100644 --- a/dots/environment/environment +++ b/dots/environment/environment @@ -6,9 +6,8 @@ # note: a re-login is needed for changes to take place # -# SYNCDIR_HOSTNAME -SYNCDIR_t470p=/home/poq/nextcloud/syncDir +SYNCDIR_t470p=/home/poq/nextcloud/syncDir # format: SYNCDIR_[HOSTNAME] GTK_THEME=Adapta-Nokto -HYPRSHOT_DIR=/home/poq/syncDir/0_downloads +HYPRSHOT_DIR=/home/poq/syncDir/0_downloads # only in use for hyprland diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 1971165..08c7f5f 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -200,16 +200,28 @@ if [ ${operation} == "dots" ] ; then fi - - # xorg - file_path=/home/${user} - deploy_file "${dots_trg}/xorg/.*" "${file_path}/" - # qtile - file_name=config.py - file_path=/home/${user}/.config/qtile - mkdir -p ${file_path} - deploy_file "${dots_trg}/qtile/${file_name}" "${file_path}/" + if [ ${QTILE} == "true" ] ; then + + # qtile + file_name=config.py + file_path=/home/${user}/.config/qtile + mkdir -p ${file_path} + deploy_file "${dots_trg}/qtile/${file_name}" "${file_path}/" + + fi + + if [ ${I3WM} == "true" ] ; then + echo "i3wm" + fi + + if [ ${I3WM} == "true" ] || [ ${QTILE} == "true" ] ; then + + # xorg + file_path=/home/${user} + deploy_file "${dots_trg}/xorg/.*" "${file_path}/" + + fi fi