diff options
author | Yigit Sever | 2020-09-16 15:22:27 +0300 |
---|---|---|
committer | Yigit Sever | 2020-09-16 15:22:27 +0300 |
commit | 7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0 (patch) | |
tree | dbc1e308cfbb398f77c784b7ea52c08e5aeb8332 /bin/mailto_handler | |
parent | 44ff427c77e4c3848d273b0bc3484435ec9528c7 (diff) | |
download | dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.tar.gz dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.tar.bz2 dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.zip |
move bin to .local/bin
Diffstat (limited to 'bin/mailto_handler')
-rwxr-xr-x | bin/mailto_handler | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/mailto_handler b/bin/mailto_handler deleted file mode 100755 index b85d0e4..0000000 --- a/bin/mailto_handler +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # rofi available mail accounts | ||
4 | |||
5 | ACCOUNTSDIR=$HOME/.config/mutt/accounts | ||
6 | |||
7 | choices='' | ||
8 | first='0' | ||
9 | |||
10 | for account in "${ACCOUNTSDIR}"/*.muttrc; do | ||
11 | BASENAME=$(basename -- "${account}") | ||
12 | pick="${BASENAME%.muttrc}" | ||
13 | if [ $first -eq '0' ]; then | ||
14 | choices="${pick}" | ||
15 | first='1' | ||
16 | else | ||
17 | choices="${choices}\n${pick}" | ||
18 | fi | ||
19 | |||
20 | done | ||
21 | |||
22 | picked=$(printf "${choices}" | rofi -dmenu) | ||
23 | |||
24 | exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" | ||