+ options.sh

This commit is contained in:
t470p
2024-05-11 19:42:05 -05:00
parent bb777e6055
commit 6fe9f56f0e
2 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# klevstul
# import using 'source'
HYPRLAND=false
I3WM=true
QTILE=false

View File

@@ -4,9 +4,6 @@
echo "<< 99_deploy.sh >>" echo "<< 99_deploy.sh >>"
user=poq
clone_trg=/tmp
if [ "$EUID" -ne 0 ] if [ "$EUID" -ne 0 ]
then echo "error: run as 'root'" then echo "error: run as 'root'"
exit exit
@@ -20,6 +17,16 @@ fi
operation=$1 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 # helper functions
@@ -160,6 +167,10 @@ if [ ${operation} == "dots" ] ; then
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
fi fi
# hyprland
#if [ ${deploy_hyprland} == "true" ] ; then
#fi
# hypridle # hypridle
file_name=hypridle.conf file_name=hypridle.conf
file_path=/home/${user}/.config/hypr file_path=/home/${user}/.config/hypr