summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorYigit Sever2020-09-28 17:07:01 +0300
committerYigit Sever2020-09-28 17:07:01 +0300
commitffecadd5f1e55b29bdb792a90d3aafa7787b9fc1 (patch)
tree361cb2425ddee63346e6ec4fa2eeed8cc1a883e4 /.local
parentae5f78afb4b2b3cce5637eb476660bbf2e0103e1 (diff)
downloaddotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.tar.gz
dotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.tar.bz2
dotfiles-ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1.zip
handle rofi exit
diffstat (limited to '.local')
-rwxr-xr-x.local/bin/mailto_handler4
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
3set -e # we can now exit out from rofi, easily
4
3# rofi available mail accounts 5# rofi available mail accounts
4 6
5ACCOUNTSDIR=$HOME/.config/mutt/accounts 7ACCOUNTSDIR=$HOME/.config/mutt/accounts
@@ -21,4 +23,4 @@ done
21 23
22picked=$(printf "${choices}" | rofi -dmenu) 24picked=$(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" -- "$@" 26exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@"