From cf26b4ffe9745b2c758ff2e65da328a10885e608 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 14 Jul 2019 20:27:59 +0200 Subject: Added isync+notmuch+alot+msmtp email setup --- i3/Scripts/lc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'i3') diff --git a/i3/Scripts/lc b/i3/Scripts/lc index a54f234..26b4c13 100755 --- a/i3/Scripts/lc +++ b/i3/Scripts/lc @@ -1,6 +1,8 @@ #!/bin/bash -Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf win pass wall stat mic" +LOGFILE=.lc.log + +Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf win pass wall stat mic mail" statScripts="ram.sh status.sh net.sh mic.sh" handle_stuff() { @@ -55,6 +57,9 @@ handle_stuff() { if [ "$1" = "mic" ]; then amixer set Capture toggle fi + if [ "$1" = "mail" ]; then + Scripts/mailSync + fi # Launch if [ "$1" = "vi" ] || [ "$1" = "vim" ]; then @@ -88,4 +93,4 @@ handle_stuff() { } -handle_stuff $* & +handle_stuff $* 2>&1 | tee -a $LOGFILE -- cgit v1.2.3