Revert: I've found a way to keep dunst and notify about yubikey in the statusbar.

This commit is contained in:
Bartek Stalewski 2022-10-18 22:35:05 +02:00
parent b45a8b3c70
commit ee352e389e
5 changed files with 16 additions and 21 deletions

View file

@ -1,13 +1,12 @@
#!/bin/bash
icon='\uf028'
if [ $1 ]; then
case $1 in
inc) pactl set-sink-volume @DEFAULT_SINK@ +5%;;
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 -t 1000 " volume: $volume"
dunstify -u low -h int:value:$volume -r 20 -t 800 "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="<span foreground='#ffffff' background='#770000'> \uf131 </span> " || micmute=""