From 59d37ada838e8233a65c4527c79c8624a4cb0ee6 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 1 Jun 2016 19:28:25 +0200 Subject: include a password file for mutt and other misc changes config.fish: 1) include ~/.local/bin in the PATH variable 2) prepend new PATH components muttrc: 1) write comment about new password file 2) use variables exported by mutt.sh 3) use dmenu instead of rofi to select links from urlscan mutt.sh: 1) mutt wrapper script that decrypts and reads the password file 2) start mutt dependend on the calling context (Termial|XSession) password: new password file. The Layout is explained in muttrc setup.py: include mutt.sh in the mutt target --- scripts/mutt.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/mutt.sh (limited to 'scripts/mutt.sh') 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 -- cgit v1.2.3