diff options
Diffstat (limited to 'xss-lock')
-rwxr-xr-x | xss-lock/.bin/on-lock | 6 | ||||
-rw-r--r-- | xss-lock/.config/systemd/user/xss-lock.service | 6 | ||||
-rw-r--r-- | xss-lock/Makefile | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/xss-lock/.bin/on-lock b/xss-lock/.bin/on-lock new file mode 100755 index 0000000..3de3724 --- /dev/null +++ b/xss-lock/.bin/on-lock @@ -0,0 +1,6 @@ +#!/bin/sh + +sudo -K +ssh-add -D +echo RELOADAGENT | gpg-connect-agent +type rbw >/dev/null 2>&1 && rbw lock diff --git a/xss-lock/.config/systemd/user/xss-lock.service b/xss-lock/.config/systemd/user/xss-lock.service new file mode 100644 index 0000000..8885dfc --- /dev/null +++ b/xss-lock/.config/systemd/user/xss-lock.service @@ -0,0 +1,6 @@ +[Service] +ExecStart=xss-lock -n /usr/lib/xsecurelock/dimmer -l -- sh -c 'on-lock; env XSECURELOCK_BLANK_TIMEOUT=1 XSECURELOCK_SHOW_DATETIME=1 xsecurelock' +Restart=always + +[Install] +WantedBy=default.target diff --git a/xss-lock/Makefile b/xss-lock/Makefile new file mode 100644 index 0000000..ae8dbc8 --- /dev/null +++ b/xss-lock/Makefile @@ -0,0 +1,9 @@ +include ../Makefile.include + +install: + @systemctl --user enable xss-lock + @systemctl --user start xss-lock + +uninstall: + @systemctl --user stop xss-lock + @systemctl --user disable xss-lock |