yubikey-touch-detector can now properly use Notify widget without helpers.

This commit is contained in:
Bartek Stalewski 2022-11-07 00:05:36 +01:00
parent f340ed7c15
commit 00a2734c84
8 changed files with 5 additions and 20 deletions

View file

@ -51,7 +51,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
# If there's only one screen
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
{ onescreen "$screens" "native"; postrun; notify-send -u critical ' no device to switch'; exit ;}
{ onescreen "$screens" "native"; postrun; notify-send -t 2000 -u critical ' no device to switch'; exit ;}
# Get user choice including both and manual selection:
chosen=$(printf -- "%s\\nmulti" "$screens" | dmenu -c -l 5 -i -p "select output") &&