dotfiles/dot_bin/executable_with_gpg_mount

15 lines
232 B
Plaintext
Raw Normal View History

2021-02-15 20:53:16 -05:00
#! /bin/bash
## with_gpg_mount: call a program after mounting GNUPGHOME
bin="$1"
shift
alias="gnupg"
2021-02-15 20:53:16 -05:00
if rofi-dev -c "$XDG_CONFIG_HOME/rofi/devices.yml" -m "$alias"; then
"$bin" "$@"
else
echo "Could not mount $alias"
fi