add password management

This commit is contained in:
kento2 2026-02-05 06:54:50 +01:00
parent 136aa8bbc7
commit dcfa7425dc
4 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec chpst -e "$TURNSTILE_ENV_DIR" sh -c "pass-sync && sleep 60 || sleep 360"

3
files/.ideavimrc Normal file
View file

@ -0,0 +1,3 @@
set clipboard=unnamedplus " Use the OS clipboard by default
set ideajoin

8
files/.local/bin/pass-sync Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -e
{
ping -c1 -W3 1.1.1.1 >/dev/null || exit # no network conncetion
pass git pull
pass git push -u --all
date
} > "$HOME/.last-sync" 2>&1

View file

@ -17,6 +17,8 @@ alias xi='xi -y'
alias vi='vis' alias vi='vis'
alias nvi='vis' alias nvi='vis'
alias xr='doas xbps-remove -y' alias xr='doas xbps-remove -y'
alias pc='pass -c'
alias pe='pass edit'
date date
printf 'BAT %s%%\n' "$(cat /sys/class/power_supply/BAT0/capacity)" printf 'BAT %s%%\n' "$(cat /sys/class/power_supply/BAT0/capacity)"