diff options
| author | 2023-12-20 19:28:19 +0000 | |
|---|---|---|
| committer | 2023-12-20 19:28:19 +0000 | |
| commit | d8675dd83b3fc73dc6d77f5c98421f0d10659534 (patch) | |
| tree | 8f89200c0634a566078f5df299a0829717d15bf7 /install.sh | |
| parent | ea9b0a4a5bdf369c8078b69ced7395758dc38a6e (diff) | |
update files
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 25 |
1 files changed, 20 insertions, 5 deletions
@@ -2,7 +2,6 @@ dirArchIsoFiles=~/archisofiles dotfiles=~/.dotfiles counterAbortedPkg=0 - setStatusE () { if [ "$1" = true ]; then set +e @@ -23,8 +22,17 @@ yaySetupPkg () { yay -S --needed - < "$dirArchIsoFiles"/pkglist.txt } +openKeepass () { + entryKey=$(keepassxc-cli show "$dirArchIsoFiles"/Passwords.kdbx github) +} + cloneDotfiles () { - keepassxc-cli show "$dirArchIsoFiles"/Passwords.kdbx github | grep "Notes:" | awk '{ print $2 }' | wl-copy + # Сделать повторный ввод пароля + if [] + notesKey=$(echo "$entryKey" | grep "Notes:") + + echo "$notesKey" | awk '{ print $2 }' | wl-copy + echo "Пароль скопирован и находится в буфере обмена" git clone https://github.com/blueingreen68/.dotfiles } @@ -93,16 +101,23 @@ stowUpdateNoFoldingPkg () { done } +swaySetup () { + mkdir -p ~/.config/sway + cp /etc/sway/config ~/.config/sway/ + + echo "[ "$(tty)" = "/dev/tty1" ] && exec sway" >> .bash_profile +} + startSetup () { select event in Pacman Stow StowUpdate; do case $event in - Pacman) + Yay) yaySetupPkg + swaySetup break ;; Stow) - yaySetupPkg cloneDotfiles readArrays stowPkgExtract @@ -130,4 +145,4 @@ startSetup () { } # Установка -startSetup +cloneDotfiles |
