diff options
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 |