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

@ -6,7 +6,7 @@ if [ $1 ]; then
dec) pactl set-sink-volume @DEFAULT_SINK@ -5%;;
esac
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk -F' / *' '{print $2}')
notify-send -u low "volume: $volume"
notify-send -t 2000 -u low "volume: $volume"
else
mic=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F' / ' '{print $2}' | tr -d '%')
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micmute="\uf131" || micmute=""