#!/bin/bash run_if_exists() { bin=$1 binpath=$(which "$bin") [ -x "$binpath" ] && "$binpath" & } # screen locker run_if_exists xscreensaver # keyboard layout indicator run_if_exists fbxkb # clipboard manager run_if_exists parcellite # if any FIDO HW tokens are plugged in, add them to SSH agent (which fido2-token > /dev/null) && [ $(fido2-token -L | wc -l) -gt 0 ] && (ssh_sk_add < /dev/null &) # 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_sk_add & # source the machine-local configuration [ -r "$HOME/.config/Xsession_local" ] && . "$HOME/.config/Xsession_local" /usr/bin/awesome