commit 7c5237a240000f605d3611a6cb2022c45ff4a21b
parent a8863a750a360bad6759f5f2c4df5d2001b31e18
Author: Jake Koroman <jakekoroman@gmail.com>
Date: Sat, 23 Mar 2024 17:43:44 -0400
updated colour scheme and mailsync notifications
Diffstat:
2 files changed, 6 insertions(+), 21 deletions(-)
diff --git a/bin/mailsync b/bin/mailsync
@@ -31,24 +31,9 @@ export GPG_TTY="$(tty)"
lastrun="${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun"
-# Settings are different for MacOS (Darwin) systems.
-case "$(uname)" in
- Darwin) notify() { osascript -e "display notification \"$2\" with title \"$1\"" ;} ;;
- *)
- case "$(readlink -f /sbin/init)" in
- *systemd*|*openrc*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;;
- esac
- # remember if a display server is running since `ps` doesn't always contain a display
- pgrepoutput="$(pgrep -ax X\(\|org\|wayland\))"
- displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
- [ -z "$displays" ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done)
-
- notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do
- export DISPLAY="$x"
- notify-send --app-name="mutt-wizard" "$1" "$2"
- done ;}
- ;;
-esac
+notify () {
+ $HOME/scripts/swaymsg_exec.sh notify-send -t 5000 --app-name="mutt-wizard" "$(echo "$1" | sed 's/ /\\ /g')" "$(echo "$2" | sed 's/ /\\ /g')"
+}
# Check account for new mail. Notify if there is new content.
syncandnotify() {
diff --git a/share/mutt-wizard.muttrc b/share/mutt-wizard.muttrc
@@ -119,8 +119,8 @@ bind index,pager \Cn sidebar-next-new
bind index,pager B sidebar-toggle-visible
# Default index colors:
-color index yellow default '.*'
-color index_author red default '.*'
+color index green default '.*'
+color index_author blue default '.*'
color index_number blue default
color index_subject cyan default '.*'
@@ -145,7 +145,7 @@ mono underline underline
mono indicator reverse
mono error bold
color normal default default
-color indicator brightblack white
+color indicator white black
color sidebar_highlight red default
color sidebar_divider brightblack black
color sidebar_flagged red black