added parameter to 'ct d'
not tested. for updating hyprland dots.
This commit is contained in:
@@ -37,6 +37,7 @@ if [ $# -lt 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
operation=$1
|
operation=$1
|
||||||
|
parameter=$2
|
||||||
|
|
||||||
# urls
|
# urls
|
||||||
targz_dots_url=https://gi.op.fo/fro/lnx-arch/archive/master.tar.gz
|
targz_dots_url=https://gi.op.fo/fro/lnx-arch/archive/master.tar.gz
|
||||||
@@ -354,11 +355,15 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
create_dir ${file_path}
|
create_dir ${file_path}
|
||||||
deploy_file "${dots_trg}/helix/${file_name}" "${file_path}/${file_name}"
|
deploy_file "${dots_trg}/helix/${file_name}" "${file_path}/${file_name}"
|
||||||
|
|
||||||
|
if [ ${parameter} == "h" ] || [ ${parameter} == "hypr" ] ; then
|
||||||
|
|
||||||
# hyprland
|
# hyprland
|
||||||
#file_name=hyprland.conf
|
file_name=hyprland.conf
|
||||||
#file_path=/home/${system_user}/.config/hypr
|
file_path=/home/${system_user}/.config/hypr
|
||||||
#create_dir ${file_path}
|
create_dir ${file_path}
|
||||||
#deploy_file "${dots_trg}/hyprland/${file_name}" "${file_path}/${file_name}"
|
deploy_file "${dots_trg}/hyprland/${file_name}" "${file_path}/${file_name}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# pcmanfm
|
# pcmanfm
|
||||||
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
|
|
||||||
this_file_name=`basename "$0"`
|
this_file_name=`basename "$0"`
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "usage: '$this_file_name { d/dots | d+/dots+ | uf / upd-full [host]? | services | s/sw/software {update/install/search/orphans/uninstall} [host]? | us / upd-self | yay }'"
|
echo "usage: '$this_file_name { d/dots [h/hypr] | d+/dots+ | uf / upd-full [host]? | services | s/sw/software {update/install/search/orphans/uninstall} [host]? | us / upd-self | yay }'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ execute_script() {
|
|||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "d" ] || [ $operation == "dots" ] ; then
|
if [ $operation == "d" ] || [ $operation == "dots" ] ; then
|
||||||
|
|
||||||
execute_script 99_deploy.sh dots
|
execute_script 99_deploy.sh dots "${parameter_1}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
shopt -u extglob
|
shopt -u extglob
|
||||||
|
|||||||
Reference in New Issue
Block a user