diff options
author | Julian T <julian@jtle.dk> | 2019-07-14 20:27:59 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2019-07-14 20:27:59 +0200 |
commit | cf26b4ffe9745b2c758ff2e65da328a10885e608 (patch) | |
tree | 99a98a52794c2ef58c773198a7ac29c5960962c8 /i3/Scripts | |
parent | 70d4f254f14fd832442ab5d588a31aac53f44baa (diff) |
Added isync+notmuch+alot+msmtp email setup
Diffstat (limited to 'i3/Scripts')
-rwxr-xr-x | i3/Scripts/lc | 9 |
1 files changed, 7 insertions, 2 deletions
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 |