diff options
author | Yigit Sever | 2020-09-28 17:07:01 +0300 |
---|---|---|
committer | Yigit Sever | 2020-09-28 17:07:01 +0300 |
commit | ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1 (patch) | |
tree | 361cb2425ddee63346e6ec4fa2eeed8cc1a883e4 /.local/bin/mailto_handler | |
parent | ae5f78afb4b2b3cce5637eb476660bbf2e0103e1 (diff) | |
download | dotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.tar.gz dotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.tar.bz2 dotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.zip |
handle rofi exit
Diffstat (limited to '.local/bin/mailto_handler')
-rwxr-xr-x | .local/bin/mailto_handler | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/mailto_handler b/.local/bin/mailto_handler index b85d0e4..9493558 100755 --- a/.local/bin/mailto_handler +++ b/.local/bin/mailto_handler | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | set -e # we can now exit out from rofi, easily | ||
4 | |||
3 | # rofi available mail accounts | 5 | # rofi available mail accounts |
4 | 6 | ||
5 | ACCOUNTSDIR=$HOME/.config/mutt/accounts | 7 | ACCOUNTSDIR=$HOME/.config/mutt/accounts |
@@ -21,4 +23,4 @@ done | |||
21 | 23 | ||
22 | picked=$(printf "${choices}" | rofi -dmenu) | 24 | picked=$(printf "${choices}" | rofi -dmenu) |
23 | 25 | ||
24 | exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" | 26 | exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" |