u
This commit is contained in:
@@ -29,7 +29,7 @@ operation=$1
|
|||||||
|
|
||||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
|
|
||||||
# helper function
|
# helper functions
|
||||||
download_repo() {
|
download_repo() {
|
||||||
|
|
||||||
_targz_url=$1
|
_targz_url=$1
|
||||||
@@ -46,6 +46,16 @@ download_repo() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deploy_file() {
|
||||||
|
_src_path=$1
|
||||||
|
_trg_path=$2
|
||||||
|
|
||||||
|
cp -f ${_src_path} ${_trg_path}
|
||||||
|
chown ${user}:${user} ${_trg_path}
|
||||||
|
ls -al ${_trg_path}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# download all dots (dot files) from repo
|
# download all dots (dot files) from repo
|
||||||
if [ ${operation} == "dots" ] ; then
|
if [ ${operation} == "dots" ] ; then
|
||||||
@@ -53,21 +63,14 @@ if [ ${operation} == "dots" ] ; then
|
|||||||
download_repo ${targz_dots_url}
|
download_repo ${targz_dots_url}
|
||||||
tree ${clone_trg}/lnx-arch
|
tree ${clone_trg}/lnx-arch
|
||||||
|
|
||||||
target_file_name=hyprland.conf
|
file_name=hyprland.conf
|
||||||
target_file_path=/home/${user}/.config/hypr/${target_file_name}
|
deploy_file ${dots_trg}/hyprland/${file_name} /home/${user}/.config/hypr/${file_name}
|
||||||
cp -f ${dots_trg}/hyprland/${target_file_name} ${target_file_path}
|
|
||||||
chown ${user}:${user} ${target_file_path}
|
|
||||||
ls -al ${target_file_path}
|
|
||||||
|
|
||||||
target_file_name=hyprpaper.conf
|
file_name=hyprpaper.conf
|
||||||
target_file_path=/home/${user}/.config/hypr/${target_file_name}
|
deploy_file ${dots_trg}/hyprland/${file_name} /home/${user}/.config/hypr/${file_name}
|
||||||
cp -f ${dots_trg}/hyprpaper/${target_file_name} ${target_file_path}
|
|
||||||
chown ${user}:${user} ${target_file_path}
|
|
||||||
ls -al ${target_file_path}
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# download wallpapers from repo
|
# download wallpapers from repo
|
||||||
if [ ${operation} == "wp" ] ; then
|
if [ ${operation} == "wp" ] ; then
|
||||||
echo "***** ${operation} *****"
|
echo "***** ${operation} *****"
|
||||||
|
|||||||
Reference in New Issue
Block a user