blob: 4ae235c9aac4ff511e677ec5da19f21bd6b4e202 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env fish
wpctl set-volume @DEFAULT_AUDIO_SINK@ $argv[1]
# Get the volume level and convert it to a percentage
set volume (math -s0 -mround (wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}') "*" 100)
notify-send -t 1000 -a 'wp-vol' -h int:value:$volume " $volume"
|