aboutsummaryrefslogtreecommitdiff
path: root/betterlockscreen
diff options
context:
space:
mode:
authorGNUxeava <bluenerd@protonmail.com>2022-03-09 07:08:01 +0530
committerGNUxeava <bluenerd@protonmail.com>2022-03-09 07:08:01 +0530
commit8652b68c40d4866e9185f7ef2ac5fe7aa672e897 (patch)
tree8da218d3d93277ca1f64eea1899fd6153eb5e1f4 /betterlockscreen
parentcd65bd1d0b697e6d7b088ee8c809fb4a19adb1bc (diff)
parent1d2b1e4a9e4c926d7b6a99ab4fc5ea2f7215b06c (diff)
resolved merge conflictnext
Diffstat (limited to 'betterlockscreen')
-rwxr-xr-xbetterlockscreen15
1 files changed, 7 insertions, 8 deletions
diff --git a/betterlockscreen b/betterlockscreen
index e05145b..0725ac5 100755
--- a/betterlockscreen
+++ b/betterlockscreen
@@ -1,8 +1,7 @@
#!/usr/bin/env bash
-# Author : Copyright (c) 2017-2021 Pavan Jadhaw, and others (https://github.com/pavanjadhaw/betterlockscreen/graphs/contributors)
-# Github Profile : https://github.com/pavanjadhaw
-# Project Repository : https://github.com/pavanjadhaw/betterlockscreen
+# Author : Copyright (c) 2017-2022 Pavan Jadhaw, and others (https://github.com/betterlockscreen/betterlockscreen/graphs/contributors)
+# Project Repository : https://github.com/betterlockscreen/betterlockscreen
cmd_exists () {
command -v "$1" >/dev/null
@@ -278,7 +277,7 @@ postlock() {
lockselect() {
echof act "Running prelock..."
- prelock &
+ prelock
case "$1" in
dim) if [ -f "$CUR_L_DIM" ]; then lock "$CUR_L_DIM"; else failsafe; fi ;;
@@ -291,7 +290,7 @@ lockselect() {
esac
echof act "Running postlock..."
- postlock &
+ postlock
}
# calculate adjustments for hidpi displays
@@ -607,8 +606,8 @@ update () {
local geometry="${dinfo[2]}"
read -r -a cols <<< "${geometry//[x+-]/ }"
- local position="${geometry#*${cols[1]}}"
- local resolution="${geometry%${position}*}"
+ local position="${geometry#*"${cols[1]}"}"
+ local resolution="${geometry%"${position}"*}"
if [[ $id -eq "$display_on" ]] || [[ "$display_on" -eq 0 ]]; then
@@ -788,7 +787,7 @@ usage() {
echo " Scale image to span multiple displays"
echo
echo " --off <N>"
- echo " Turn display off after N minutes"
+ echo " Turn display off after N seconds"
echo
echo " --fx <EFFECT,EFFECT,EFFECT>"
echo " List of effects to generate"