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