From ec0ec5c2674d174bcd7538149c88249d40465e41 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 6 Jun 2021 13:25:25 +0100 Subject: [PATCH] Remove enpass and nextcloud --- .config/x11/xautostart | 9 +++++++++ .config/x11/xprofile | 3 +-- .local/bin/setup/setup | 12 +++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100755 .config/x11/xautostart diff --git a/.config/x11/xautostart b/.config/x11/xautostart new file mode 100755 index 0000000..60214a5 --- /dev/null +++ b/.config/x11/xautostart @@ -0,0 +1,9 @@ +#! /bin/bash + + enpass & # start password manager and hide window + nextcloud & # start Nextcloud and hide window + + sleep 2 + + dwmc killnamedclient Enpass + dwmc killnamedclient Nextcloud diff --git a/.config/x11/xprofile b/.config/x11/xprofile index e58e2a0..4a5052d 100644 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -19,9 +19,8 @@ export SSH_AUTH_SOCK #source /etc/X11/xinit/xinitrc.d/50-systemd-user.h setbg "$HOME/.local/share/wallpapers/" & # set the background -enpass & # start password manager -nextcloud & # start Nextcloud xcompmgr & # xcompmgr for transparency dunst & # dunst for notifications xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle + diff --git a/.local/bin/setup/setup b/.local/bin/setup/setup index 4318075..c14b05d 100755 --- a/.local/bin/setup/setup +++ b/.local/bin/setup/setup @@ -2,12 +2,22 @@ export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g') -echo "$MASTERPW" | xclip -loops 5 -selection clipboard -i +echo "https://tower.scarif.space" | xclip -selection clipboard -i enpass & +dwmc toggleview 32 + +read -n 1 -r -s -p $'Press enter for next clip...\n' + +echo "$MASTERPW" | xclip -selection clipboard -i + read -n 1 -r -s -p $'Press enter when you have synced enpass...\n' +dwmc toggleview 0 + +echo "" | xclip -selection clipboard -i + CHECKPW=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort list 2>&1) while [[ "$CHECKPW" == *level=fatal* ]]; do