summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-26 08:21:58 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-26 08:21:58 +0200
commitefeaebd8b1a8d9c4eecac51ee22f66b9bb307948 (patch)
tree742073eb9ae445bbc065937e9b5094e5ffd1ba9a /dotfiles
parent9aec9a2832125076eb2f2ebbfb212ef2d79bc799 (diff)
Add Xsession.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/Xsession13
1 files changed, 13 insertions, 0 deletions
diff --git a/dotfiles/Xsession b/dotfiles/Xsession
new file mode 100644
index 0000000..45c1c27
--- /dev/null
+++ b/dotfiles/Xsession
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# screen locker
+xscreensaver &
+
+# on FIDO HW key add/remove, update the SSH agent
+udev_match --subsystem=hidraw --match=ACTION=remove --match=ID_FIDO_TOKEN=1 ssh_sk_clean &
+udev_match --subsystem=hidraw --match=ACTION=add --match=ID_FIDO_TOKEN=1 "ssh-add -K" &
+
+# source the machine-local configuration
+[ -r "$HOME/.config/Xsession_local" ] && . "$HOME/.config/Xsession_local"
+
+/usr/bin/awesome