From efeaebd8b1a8d9c4eecac51ee22f66b9bb307948 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 26 Jun 2021 08:21:58 +0200 Subject: Add Xsession. --- desktop.conf.yaml | 1 + dotfiles/Xsession | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 dotfiles/Xsession diff --git a/desktop.conf.yaml b/desktop.conf.yaml index 24700c8..fa2eb13 100644 --- a/desktop.conf.yaml +++ b/desktop.conf.yaml @@ -9,3 +9,4 @@ ~/.urxvt/ext/reselect: urxvt/reselect/reselect ~/.xscreensaver: dotfiles/xscreensaver ~/.Xresources: dotfiles/Xresources + ~/.Xsession: dotfiles/Xsession 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 -- cgit v1.2.3