From 3082b05352fb26e554b66536bf072ffcb635de65 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Sat, 26 Nov 2022 20:51:54 -0700 Subject: [PATCH] Added tones to unmuting, and volume changes --- i38.sh | 4 ++-- scripts/mute-unmute.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/i38.sh b/i38.sh index f69a1cf..1792420 100755 --- a/i38.sh +++ b/i38.sh @@ -255,8 +255,8 @@ bindsym \$mod+Control+c exec clipster -s bindsym \$mod+Control+Delete exec --no-startup-id sgtk-bar # Use pactl to adjust volume in PulseAudio. -bindsym \$mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +${volumeJump}% -bindsym \$mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -${volumeJump}% +bindsym \$mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +${volumeJump}% & play -qnG synth 0.05 sin 440 +bindsym \$mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -${volumeJump}% & play -qnG synth 0.05 sin 440 bindsym \$mod+XF86AudioMute exec --no-startup-id ${i3Path}/scripts/mute-unmute.sh # Music player controls diff --git a/scripts/mute-unmute.sh b/scripts/mute-unmute.sh index 2708b4c..7edc899 100755 --- a/scripts/mute-unmute.sh +++ b/scripts/mute-unmute.sh @@ -4,5 +4,6 @@ spd-say -P important -Cw 'Muting!' pamixer -t else pamixer -t +play -qnG synth 0.05 sin 440 spd-say -P important -Cw 'Unmuted!' fi