diff options
author | Julian T <julian@jtle.dk> | 2020-10-01 16:10:07 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-10-01 16:10:07 +0200 |
commit | 89f768fb2e70de4c46272b1e9fb6eb56f1bda857 (patch) | |
tree | a609ac3a5c08130661105293cb7f99635d01aa6f /scripts/Scripts/lc | |
parent | c5063ddd79c759248a04bf2ab99f0c853b2c838a (diff) |
Cleaned up lc
Diffstat (limited to 'scripts/Scripts/lc')
-rwxr-xr-x | scripts/Scripts/lc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/scripts/Scripts/lc b/scripts/Scripts/lc index 1f6aaab..d3cb320 100755 --- a/scripts/Scripts/lc +++ b/scripts/Scripts/lc @@ -3,7 +3,7 @@ LOGFILE=.lc.log DMENU="rofi -dmenu" -Commands="sync lock common update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf win pass wall stat mic mail region" +Commands="s sync lock common update poweroff suspend set-keyboard caps-lock battery cups-website scrot overleaf-render overleaf win pass wall stat mic mail region" statScripts="ram.sh status.sh net.sh mic.sh" handle_stuff() { @@ -29,7 +29,7 @@ handle_stuff() { fi # POWER COMMANDS - if [ "$1" = "s" ] || [ "$1" = "suspend" ]; then + if [ "$1" = "suspend" ]; then systemctl suspend fi if [ "$1" = "poweroff" ]; then @@ -66,15 +66,9 @@ handle_stuff() { fi # Launch - if [ "$1" = "vi" ] || [ "$1" = "vim" ]; then - st -e nvim - fi - if [ "$1" = "emacs" ]; then - st -e emacs - fi - if [ "$1" = "ht" ] || [ "$1" = "htop" ]; then - st -e htop - fi + if [ "$1" = "s" ]; then + $HOME/Scripts/guiworkspace.sh + fi if [ "$1" = "cups" ] || [ "$1" = "cups-website" ]; then firefox "http://localhost:631/" fi |