From 11bfdb58a17945e1cb48395ffe06bee52be0968b Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 18 Oct 2022 22:37:43 +0200 Subject: [PATCH] Revert: I've found a way to keep dunst and notify about yubikey in the statusbar. --- _desktop/_scripts/sb-yubikey | 6 ++++++ _desktop/_scripts/yubikey-detector-helper | 3 +++ 2 files changed, 9 insertions(+) create mode 100755 _desktop/_scripts/sb-yubikey create mode 100755 _desktop/_scripts/yubikey-detector-helper diff --git a/_desktop/_scripts/sb-yubikey b/_desktop/_scripts/sb-yubikey new file mode 100755 index 0000000..278d643 --- /dev/null +++ b/_desktop/_scripts/sb-yubikey @@ -0,0 +1,6 @@ +#!/bin/sh + +case $(cat $XDG_CACHE_HOME/yubikey.status) in + *_1) printf "  touch the yubikey" ;; + *) printf "" ;; +esac diff --git a/_desktop/_scripts/yubikey-detector-helper b/_desktop/_scripts/yubikey-detector-helper new file mode 100755 index 0000000..9b1a50f --- /dev/null +++ b/_desktop/_scripts/yubikey-detector-helper @@ -0,0 +1,3 @@ +#!/bin/sh + +yubikey-touch-detector --stdout 2>/dev/null| while read cmd; do echo $cmd > $XDG_CACHE_HOME/yubikey.status; done