#! /bin/sh
-default_sink=`cat "$HOME"/.config/pulse/default`
+default_sink=`pactl list sinks | awk '/Name:/ {print $2; exit}'`
default_source=`echo $default_sink | sed s/output/input/`
pactl set-source-mute $default_source 1 &&
#! /bin/sh
-default_sink=`cat "$HOME"/.config/pulse/default`
+default_sink=`pactl list sinks | awk '/Name:/ {print $2; exit}'`
default_source=`echo $default_sink | sed s/output/input/`
pactl set-card-profile 0 $default_source &&
#! /bin/sh
-default_sink=`cat "$HOME"/.config/pulse/default`
+default_sink=`pactl list sinks | awk '/Name:/ {print $2; exit}'`
"`dirname \"$0\"`"/pa-kill
sleep 1
# From http://crunchbanglinux.org/forums/topic/11392/pulseaudio-volume-control-with-media-keys/
declare -i CURVOL=`cat ~/.config/pulse/volume` #Reads in the current volume
-default_sink=`cat ~/.config/pulse/default`
+default_sink=`pactl list sinks | awk '/Name:/ {print $2; exit}'`
if [[ $1 == "increase" ]]
then