aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2016-06-01 19:28:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2016-06-01 19:28:25 +0200
commit59d37ada838e8233a65c4527c79c8624a4cb0ee6 (patch)
tree40e06d10eef0f402e7876d3cd42127f20b335fbf /scripts
parent7fd121ad1846158c2f420c7f77d9706ae3bb2679 (diff)
downloaddotfiles-59d37ada838e8233a65c4527c79c8624a4cb0ee6.tar.gz
dotfiles-59d37ada838e8233a65c4527c79c8624a4cb0ee6.zip
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
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