mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-03 23:04:21 +02:00
Instead of trying to mess with xautolock to trigger locking, just invoke i3lock directly.
11 lines
219 B
Bash
Executable file
11 lines
219 B
Bash
Executable file
#!/bin/sh
|
|
|
|
icon="$1"
|
|
notify=$(dirname $(readlink -f "$0"))/notify-lock
|
|
locker=$(dirname $(readlink -f "$0"))/locker
|
|
|
|
exec xautolock \
|
|
-time 4 \
|
|
-locker "$locker" \
|
|
-notify 10 \
|
|
-notifier "$notify $icon"
|