mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
xss-lock: no need to prefix variables with $
This commit is contained in:
parent
a2a2a44f5a
commit
30ffe45ca1
1 changed files with 3 additions and 3 deletions
|
@ -6,15 +6,15 @@ notify=10
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
xset s $(($timeout - $notify)) $notify
|
xset s $((timeout - notify)) $notify
|
||||||
xset dpms $(($timeout * 3)) $(($timeout * 4)) $(($timeout * 5))
|
xset dpms $((timeout * 3)) $((timeout * 4)) $((timeout * 5))
|
||||||
exec xss-lock -n "$me notify" -l $me lock
|
exec xss-lock -n "$me notify" -l $me lock
|
||||||
;;
|
;;
|
||||||
dim|notify)
|
dim|notify)
|
||||||
echo "$(date --rfc-3339=seconds) $me: notify: start"
|
echo "$(date --rfc-3339=seconds) $me: notify: start"
|
||||||
trap 'exit 0' TERM INT
|
trap 'exit 0' TERM INT
|
||||||
trap "kill %% ; wait" EXIT
|
trap "kill %% ; wait" EXIT
|
||||||
notify-send "Lock screen" -t $(($notify * 1000)) \
|
notify-send "Lock screen" -t $((notify * 1000)) \
|
||||||
"Screen will be locked in 10 seconds..."
|
"Screen will be locked in 10 seconds..."
|
||||||
echo "$(date --rfc-3339=seconds) $me: notify: end"
|
echo "$(date --rfc-3339=seconds) $me: notify: end"
|
||||||
sleep 2147483647 &
|
sleep 2147483647 &
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue