mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 18:49:45 +00:00
Updated lockselect() function and argument -s (#69)
You can just remove second argument in lockselect() function and execute suspend command directly from the case.
This commit is contained in:
parent
2753996e88
commit
441d091da6
1 changed files with 6 additions and 5 deletions
|
@ -93,28 +93,28 @@ lockselect() {
|
||||||
"")
|
"")
|
||||||
# default lockscreen
|
# default lockscreen
|
||||||
prelock
|
prelock
|
||||||
lock "$l_resized" && $2
|
lock "$l_resized"
|
||||||
postlock
|
postlock
|
||||||
;;
|
;;
|
||||||
|
|
||||||
dim)
|
dim)
|
||||||
# lockscreen with dimmed background
|
# lockscreen with dimmed background
|
||||||
prelock
|
prelock
|
||||||
lock "$l_dim" && $2
|
lock "$l_dim"
|
||||||
postlock
|
postlock
|
||||||
;;
|
;;
|
||||||
|
|
||||||
blur)
|
blur)
|
||||||
# set lockscreen with blurred background
|
# set lockscreen with blurred background
|
||||||
prelock
|
prelock
|
||||||
lock "$l_blur" && $2
|
lock "$l_blur"
|
||||||
postlock
|
postlock
|
||||||
;;
|
;;
|
||||||
|
|
||||||
dimblur)
|
dimblur)
|
||||||
# set lockscreen with dimmed + blurred background
|
# set lockscreen with dimmed + blurred background
|
||||||
prelock
|
prelock
|
||||||
lock "$l_dimblur" && $2
|
lock "$l_dimblur"
|
||||||
postlock
|
postlock
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -221,7 +221,8 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-s | --suspend)
|
-s | --suspend)
|
||||||
lockselect "$2" "systemctl suspend"
|
lockselect "$2"
|
||||||
|
systemctl suspend
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-w | --wall)
|
-w | --wall)
|
||||||
|
|
Loading…
Reference in a new issue