#!/bin/bash signal=30 # signal dwmblocks to update volume block send_signal() { pkill -RTMIN+$signal dwmblocks } case $1 in inc) pactl set-sink-volume @DEFAULT_SINK@ +$delta% ;; dec) pactl set-sink-volume @DEFAULT_SINK@ -$delta% ;; mutetoggle) pactl set-sink-mute @DEFAULT_SINK@ toggle ;; deafentoggle) pactl set-source-mute @DEFAULT_SOURCE@ toggle ;; *) echo Wifi: echo -e "\nBluetooth:" bluetoothctl show echo -e "\nEthernet:" ;; esac send_signal