forked from colonelpanic/dotfiles
Tweaks to mu4e.
This commit is contained in:
parent
d0d9421e6b
commit
3634febc1d
@ -8,13 +8,13 @@ function mu4e_alert_for_filename {
|
|||||||
local title="$(echo $message | grep From | sed 's/From: //')"
|
local title="$(echo $message | grep From | sed 's/From: //')"
|
||||||
local subject="$(echo $message | grep Subject | sed 's/Subject: //')"
|
local subject="$(echo $message | grep Subject | sed 's/Subject: //')"
|
||||||
local mu4e_message_id="$(mu4e_get_msg_id_from_file $1)"
|
local mu4e_message_id="$(mu4e_get_msg_id_from_file $1)"
|
||||||
local view_file_command="$(which zsh) -c \"refresh_config && emacs_make_frame_if_none_exists && mu4e_view_message $mu4e_message_id\""
|
local view_message_command="$(which zsh) -c \"refresh_config && emacs_make_frame_if_none_exists && mu4e_view_message $mu4e_message_id\""
|
||||||
local app_icon_argument=''
|
local app_icon_argument=''
|
||||||
test -e "$APP_ICON" && app_icon_argument="-appIcon '$APP_ICON'"
|
test -e "$APP_ICON" && app_icon_argument="-appIcon \"$APP_ICON\""
|
||||||
reattach-to-user-namespace $(which terminal-notifier) \
|
reattach-to-user-namespace $(which terminal-notifier) \
|
||||||
-title "$title" \
|
-title "$title" \
|
||||||
-message "$subject" \
|
-message "$subject" \
|
||||||
-execute "$view_file_command" \
|
-execute "$view_message_command" \
|
||||||
-activate "org.gnu.Emacs" \
|
-activate "org.gnu.Emacs" \
|
||||||
$app_icon_argument
|
$app_icon_argument
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user