#!/bin/sh
INCREMENT="2"

if [ "$1" = "up" ]; then
  wpctl set-volume @DEFAULT_SINK@ $INCREMENT%+
elif [ "$1" = "down" ]; then
  wpctl set-volume @DEFAULT_SINK@ $INCREMENT%-
elif [ "$1" = "mute" ]; then
  wpctl set-mute @DEFAULT_SINK@ toggle
fi

kill -35 $(pidof dwmblocks)
