diff options
| author | 2023-12-28 18:40:51 +0500 | |
|---|---|---|
| committer | 2023-12-28 18:40:51 +0500 | |
| commit | 13eb5f3cfb004e5910c8e007bf1e23333c846e4e (patch) | |
| tree | 48c50decc561cd3c675338eba0817ca3402c84ff /library | |
| parent | 05b8c6f68cb99ef215fd7b4cf362fe9f7be09e38 (diff) | |
update files
Diffstat (limited to 'library')
| -rwxr-xr-x | library/cloneDotfiles.sh | 12 | ||||
| -rw-r--r-- | library/setupPkgPipx.sh | 11 | ||||
| -rwxr-xr-x | library/setupPkgYay.sh | 29 | ||||
| -rwxr-xr-x | library/yaySetupPkg.sh | 20 |
4 files changed, 48 insertions, 24 deletions
diff --git a/library/cloneDotfiles.sh b/library/cloneDotfiles.sh index 2268498..36c30fc 100755 --- a/library/cloneDotfiles.sh +++ b/library/cloneDotfiles.sh @@ -1,9 +1,12 @@ #!/bin/bash -wget https://yadi.sk/d/o4TMFnHFobxTsw -O "$dirArchIsoFiles"/Passwords.html +getKdbxFile () { + read -r passwordFile < <(yadisk-direct https://yadi.sk/d/o4TMFnHFobxTsw) -openKeepass () { + wget "$passwordFile" -O $HOME/"$dirArchIsoFiles"/Passwords.kbdx +} +openKeepass () { setStatusE true keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli @@ -11,14 +14,14 @@ openKeepass () { cloneDotfiles () { while : - do openKeepass + do + openKeepass if [ $? -eq 0 ]; then setStatusE false echo -e "Пароль скопирован!\n" break fi - done cd @@ -26,4 +29,5 @@ cloneDotfiles () { wl-copy -c } +source $HOME/"$dirArchIsoFiles"/setupPkgPipx.sh cloneDotfiles diff --git a/library/setupPkgPipx.sh b/library/setupPkgPipx.sh new file mode 100644 index 0000000..c208805 --- /dev/null +++ b/library/setupPkgPipx.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +setupPkgPipx () { + readarray -t pipxPkg < <(cat $HOME/archisofiles/pkglists/pipxpkglist.txt) + + for pkg in ${pipxPkg[@]}; do + pipx install "$pkg" + done +} + +setupPkgPipx diff --git a/library/setupPkgYay.sh b/library/setupPkgYay.sh new file mode 100755 index 0000000..2c3e547 --- /dev/null +++ b/library/setupPkgYay.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +setupPkgYay () { + cd + git clone https://aur.archlinux.org/yay + + cd $HOME/yay + makepkg -isr + + cd + rm -rf $HOME/yay + + if [ "$1" = "pc" ]; then + yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglist.txt + elif [ "$1" = "notebook" ]; then + yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglistnote.txt + fi +} + +select platform in "pc" "notebook"; do + + if [ "$platform" = "" ]; then + echo "Invalid option" + break + else + setupPkgYay "$platform" + fi + +done diff --git a/library/yaySetupPkg.sh b/library/yaySetupPkg.sh deleted file mode 100755 index 326a3b4..0000000 --- a/library/yaySetupPkg.sh +++ /dev/null @@ -1,20 +0,0 @@ -yaySetupPkg () { - cd - git clone https://aur.archlinux.org/yay - - cd $HOME/yay - makepkg -isr - - cd - rm -rf $HOME/yay - - if [ "$1" = "pc" ]; then - yay -S --needed - < "$dirArchIsoFiles"/pkglist.txt - elif [ "$1" = "notebook" ]; then - yay -S --needed - < "$dirArchIsoFiles"/pkglistnote.txt - fi -} - -select platform in "pc" "notebook"; do - yaySetupPkg "$platform" -done |
