diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-06 09:12:45 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-06 09:12:45 +0800 |
commit | 7b216a5bd117a048283acae113253e19f905e6dc (patch) | |
tree | d8b36589b0ec33412b8a0b3a998b825882115075 | |
parent | 1aca31103361b456c33e99fa46e54e7a7821fa71 (diff) |
Improve pass script
-rwxr-xr-x | X11/rofi/pass.get | 5 | ||||
-rw-r--r-- | alias | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/X11/rofi/pass.get b/X11/rofi/pass.get index 9aaf542..18230fe 100755 --- a/X11/rofi/pass.get +++ b/X11/rofi/pass.get | |||
@@ -48,7 +48,10 @@ if [ -n "$RESULT" ]; then | |||
48 | coproc ( rofi -e "Copied: $1$EXTRA" ) | 48 | coproc ( rofi -e "Copied: $1$EXTRA" ) |
49 | 49 | ||
50 | elif [ -f "$HOME/.password-store/$1.gpg" ]; then | 50 | elif [ -f "$HOME/.password-store/$1.gpg" ]; then |
51 | coproc ( rofi -e "GPG passphase is not chached" ) | 51 | coproc ( |
52 | rofi -e "GPG passphase is not chached" \ | ||
53 | -theme-str '#window { font: "hacker 40"; }' | ||
54 | ) | ||
52 | else | 55 | else |
53 | # Password doesn't exist yet | 56 | # Password doesn't exist yet |
54 | # Go to next rofi execution | 57 | # Go to next rofi execution |
@@ -564,6 +564,8 @@ fix() { which $1 && grep -Po 'FIXME.*' $(which $1); } | |||
564 | alias ffmpeg='ffmpeg -hide_banner' | 564 | alias ffmpeg='ffmpeg -hide_banner' |
565 | alias md='reveal' | 565 | alias md='reveal' |
566 | alias terminal.color='printf "\e[%dm%d dark\e[0m \e[%d;1m%d bold\e[0m\n" {30..37}{,,,}' | 566 | alias terminal.color='printf "\e[%dm%d dark\e[0m \e[%d;1m%d bold\e[0m\n" {30..37}{,,,}' |
567 | alias gpg.bye='gpg-connect-agent reloadagent /bye' | ||
568 | |||
567 | 569 | ||
568 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 570 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
569 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' | 571 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' |