#!/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"