aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xorg_lock10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/xorg_lock b/bin/xorg_lock
index 648099e..6ddeb0c 100755
--- a/bin/xorg_lock
+++ b/bin/xorg_lock
@@ -2,13 +2,13 @@
set -euo pipefail
-lock=${XDG_RUNTIME_DIR}/xorg_autolock.lock
-lockcmd="i3lock -n -e -c 000000 -f"
+lock_file=${XDG_RUNTIME_DIR}/xorg_autolock.lock
+lock_cmd="i3lock -n -e -c 000000 -f"
if [ -x "/usr/bin/i3lock" ]; then
- touch ${lock}
- ${lockcmd}
- rm -f ${lock}
+ touch "${lock_file}"
+ ${lock_cmd}
+ rm -f "${lock_file}"
else
echo "i3lock is not installed!"
exit 1