aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mutt.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/mutt.sh b/scripts/mutt.sh
new file mode 100755
index 0000000..31702ca
--- /dev/null
+++ b/scripts/mutt.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# read the password file
+pwds=`gpg -d ~/.mutt/passwords`
+eval "$pwds"
+# execute mutt in a terminal if we are in a graphical session ( X or Wayland )
+# and TERM is linux => this script was started not from a terminal
+if [ "$DISPLAY" ] || [ "$WAYLAND_DISPLAY" ] && [ "$TERM" == "linux" ]
+then
+ # change font size on my main laptop
+ if [ "$(hostname)" = "fishtank" ]
+ then
+ exec urxvt -fn "xft: Terminess Powerline:pixelsize=18" -e "mutt"
+ else
+ exec urxvt -e "mutt"
+ fi
+else
+ exec mutt "$@"
+fi