Switching to built-in qtile's notification system.
This commit is contained in:
parent
58e39e049a
commit
f340ed7c15
5 changed files with 10 additions and 6 deletions
|
@ -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}')
|
||||
dunstify -u low -h int:value:$volume -r 20 -t 800 "volume: $volume"
|
||||
notify-send -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue