dotfiles

configurations and scripts
git clone https://riazj.com/git/dotfiles
Log | Files | Refs | LICENSE

commit 766079dc41d0619c7a9dbfafb2aff84b455f365f
parent 1036a058eb2ac1c1263cfb01a3e08551f5c1cdce
Author: Riaz <riaz@riazj.com>
Date:   Wed, 23 Jul 2025 19:43:31 -0700

Switch from pass to custom shell script

Diffstat:
M.config/zsh/.zshenv | 1-
A.local/bin/pw | 16++++++++++++++++
A.local/bin/pwm | 3+++
3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv @@ -7,7 +7,6 @@ export PULSE_COOKIE="$XDG_CACHE_HOME/pulse" export PARALLEL_HOME="$XDG_CACHE_HOME/parallel" export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" export CALCHISTFILE="$XDG_RUNTIME_DIR/calc" -export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" export GNUPGHOME="$XDG_DATA_HOME/gnupg" export XINITRC="$XDG_CONFIG_HOME/xinitrc" export W3M_DIR="$XDG_CONFIG_HOME/w3m" diff --git a/.local/bin/pw b/.local/bin/pw @@ -0,0 +1,16 @@ +#!/bin/sh -e + +PWDIR="${XDG_DATA_HOME:-$HOME/.local/share}/pw" +KEYID="riaz@riazj.com" + +umask 0177 +mkdir -p "$PWDIR" + +case "$1" in + ls) ls -1 "$PWDIR" ;; + rm) rm "$PWDIR/$2" ;; + mv) mv "$PWDIR/$2" "$PWDIR/$3";; + get) gpg -qd "$PWDIR/$2" ;; + set) gpg -qer "$KEYID" -o "$PWDIR/$2" ;; + *) echo "usage: pw <set|get|rm|mv|ls> password" >&2; exit 1 ;; +esac diff --git a/.local/bin/pwm b/.local/bin/pwm @@ -0,0 +1,3 @@ +#!/bin/sh -e + +pw get "$(pw ls | dmenu -l 10)" | xdotool type --clearmodifiers --file -