diff options
author | dunCan <f0uad.f@hotmail.com> | 2018-08-13 04:53:40 +0100 |
---|---|---|
committer | Pavan Jadhaw <pavanjadhaw96@gmail.com> | 2018-08-13 09:23:40 +0530 |
commit | 441d091da6215da83e4dee1c4c39bab6bd467b20 (patch) | |
tree | 68583ff6f6eccfb039eed17bed2b978b86d59533 | |
parent | 2753996e8824721223dbaa85f81418621509f9c8 (diff) |
Updated lockselect() function and argument -s (#69)
You can just remove second argument in lockselect() function and execute suspend command directly from the case.
-rwxr-xr-x | betterlockscreen | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/betterlockscreen b/betterlockscreen index 7b9f85b..4644c58 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -93,28 +93,28 @@ lockselect() { "") # default lockscreen prelock - lock "$l_resized" && $2 + lock "$l_resized" postlock ;; dim) # lockscreen with dimmed background prelock - lock "$l_dim" && $2 + lock "$l_dim" postlock ;; blur) # set lockscreen with blurred background prelock - lock "$l_blur" && $2 + lock "$l_blur" postlock ;; dimblur) # set lockscreen with dimmed + blurred background prelock - lock "$l_dimblur" && $2 + lock "$l_dimblur" postlock ;; esac @@ -221,7 +221,8 @@ case "$1" in ;; -s | --suspend) - lockselect "$2" "systemctl suspend" + lockselect "$2" + systemctl suspend ;; -w | --wall) |