summaryrefslogtreecommitdiff
path: root/dotfiles/Xsession
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/Xsession')
-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