From 2f4a0ee0d5b6f5ece46274ef96441d93c09482b5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 10 Apr 2015 23:08:15 +0300 Subject: [PATCH] Move .pulse to .config/pulse --- audio/pa-bt | 4 ++-- audio/pa-speaker | 2 +- audio/pa-toggle-mute | 6 +++--- audio/pa-volume | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/audio/pa-bt b/audio/pa-bt index 775eca1..bccd88e 100755 --- a/audio/pa-bt +++ b/audio/pa-bt @@ -10,5 +10,5 @@ set-default-source btheadset.monitor set-sink-volume btheadset 45858 " | pacmd && -echo 0 > "$HOME"/.pulse/mute && -echo 45858 > "$HOME"/.pulse/volume +echo 0 > "$HOME"/.config/pulse/mute && +echo 45858 > "$HOME"/.config/pulse/volume diff --git a/audio/pa-speaker b/audio/pa-speaker index a5466a8..4624574 100755 --- a/audio/pa-speaker +++ b/audio/pa-speaker @@ -1,6 +1,6 @@ #! /bin/sh -default_sink=`cat "$HOME"/.pulse/default` +default_sink=`cat "$HOME"/.config/pulse/default` "`dirname \"$0\"`"/pa-kill sleep 1 diff --git a/audio/pa-toggle-mute b/audio/pa-toggle-mute index 8ae6b83..041146a 100755 --- a/audio/pa-toggle-mute +++ b/audio/pa-toggle-mute @@ -1,18 +1,18 @@ #! /usr/bin/env bash # From http://crunchbanglinux.org/forums/topic/11392/pulseaudio-volume-control-with-media-keys/ -MUTE=`cat ~/.pulse/mute` +MUTE=`cat ~/.config/pulse/mute` test "$MUTE" = "1" RETURN=$? if [[ $RETURN -eq 0 ]] then "`dirname \"$0\"`"/pa-volume unmute - echo "0" > ~/.pulse/mute + echo "0" > ~/.config/pulse/mute exit fi if [[ $RETURN -eq 1 ]] then "`dirname \"$0\"`"/pa-volume mute - echo "1" > ~/.pulse/mute + echo "1" > ~/.config/pulse/mute exit fi diff --git a/audio/pa-volume b/audio/pa-volume index 8210dd1..3e7507f 100755 --- a/audio/pa-volume +++ b/audio/pa-volume @@ -1,8 +1,8 @@ #! /usr/bin/env bash # From http://crunchbanglinux.org/forums/topic/11392/pulseaudio-volume-control-with-media-keys/ -declare -i CURVOL=`cat ~/.pulse/volume` #Reads in the current volume -default_sink=`cat ~/.pulse/default` +declare -i CURVOL=`cat ~/.config/pulse/volume` #Reads in the current volume +default_sink=`cat ~/.config/pulse/default` if [[ $1 == "increase" ]] then @@ -25,6 +25,6 @@ fi if [[ $CURVOL -ge 0 && $CURVOL -le 65540 ]] # Check to see if the volume is a valid number (65540 was needed in this case because of how I rounded the increment) then pactl set-sink-volume "$default_sink" $CURVOL - echo $CURVOL > ~/.pulse/volume # Write the new volume to disk to be read the next time the script is run. + echo $CURVOL > ~/.config/pulse/volume # Write the new volume to disk to be read the next time the script is run. exit fi -- 2.39.5