From 6fe9f56f0ee71f379a9d881e54fa383f64dc9a78 Mon Sep 17 00:00:00 2001 From: t470p Date: Sat, 11 May 2024 19:42:05 -0500 Subject: [PATCH] + options.sh --- dots/archinstall/t470p/options.sh | 10 ++++++++++ scripts/99_deploy.sh | 17 ++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 dots/archinstall/t470p/options.sh diff --git a/dots/archinstall/t470p/options.sh b/dots/archinstall/t470p/options.sh new file mode 100644 index 0000000..c534871 --- /dev/null +++ b/dots/archinstall/t470p/options.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# klevstul + +# import using 'source' + + +HYPRLAND=false +I3WM=true +QTILE=false \ No newline at end of file diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index e43c1c1..30e8ff6 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -4,9 +4,6 @@ echo "<< 99_deploy.sh >>" -user=poq -clone_trg=/tmp - if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit @@ -20,6 +17,16 @@ fi operation=$1 +source ../dots/archinstall/$HOST/options.sh + +if [ -z "${OPTIONS_LOADED}" ]; then + echo "error: unable to load options" + exit 1 +fi + +user=${USER} +clone_trg=/tmp + # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ # helper functions @@ -160,6 +167,10 @@ if [ ${operation} == "dots" ] ; then deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" fi + # hyprland + #if [ ${deploy_hyprland} == "true" ] ; then + #fi + # hypridle file_name=hypridle.conf file_path=/home/${user}/.config/hypr