blob: 31702ca010d824e2fb9a6f9f229fc58d056ec5d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|