From 78704fa1e41a6ad8c496af3c9c44d7a263989d19 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Wed, 20 Jan 2021 17:19:39 +0100 Subject: [PATCH] sway: add sound to sway_volume --- bin/drip.ogg | Bin 0 -> 8495 bytes bin/sway_volume | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 bin/drip.ogg diff --git a/bin/drip.ogg b/bin/drip.ogg new file mode 100644 index 0000000000000000000000000000000000000000..144d2b3670e8e294ee7cfe343355bf90123cb687 GIT binary patch literal 8495 zcmbVx2{@G9+xSCei6qHVvV<7>TF73uK{AYe$)2?sOSY(FU&7e8EJI^WS+e&gJ43di zFhxwVOb9WS?-}0S-}1k%@4K%5xsEgEzR!K`=iJ-5&pGs*oD2YR;O`=+JrhXkQsTa^ zkg=2b-uJR~MvxHXx5`OBU|BsTeoLlDn)y#5%_IXM+bZGH^umY#Q9Mr^GrA0pn>atX zC!*)&#Oda2Yjnh(Q;SnVOzgVYH3WKT4_@ z80x~o;$vy->wxw3!TJW9rav=(8*KXanfb&s%k5`2Ea89G-@&+TQauu#lMHylEt@(A zDY$a6U{Z6-ZK{RoBJ;m-W)5X;49L=D&c8r2W{vz6Wthd+fKJakvY;D= zbq=&8q&K7EMaEDj0;5Hni8}82Gh|U#poc*mD?Xd9lhp>Ka~{s5L{FN4b4`ab7hX0n zg1snY7GG_H;W59z-2!cujrmLVD>x(SQzbmlza z434L;W#lU6N@n*?pi6!s-VG^YkBe7_qMzP@vGSq3pBzcf2>@aAM_&A=IdbJ=FD^=o z7U<=F(=X8{L~6?0F>*_<+Ual7ii2J(Bn^6TTzm72t+&V_$dEG@sA) z&nzc=aM)lRHqM$k{J$ORpU45gpb0yQNu+J8cvtq*+p5&Z2L2N{o{U|IY(0rQ+OK(Z zhlK{#rSvwWKAu<8m(n%3VEOTa&j^!)!8OYfX@?QG!;E$h`iRacz;xSFS>YwTqm5I*CT|^h0{;$Zn7hRGbT@o3M zkBsM!N_CFPENv)o>#baB{6FhI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b7f..3ef4acf 100755 --- a/bin/sway_volume +++ b/bin/sway_volume @@ -2,6 +2,7 @@ source $HOME/.config/sway/bin/sway_helpers SINK=$(pacmd list-sinks | grep "* index" | grep -oE '[0-9]*') APP="pavucontrol" +SOUND=$HOME/.config/sway/bin/drip.ogg ## helpers function _toggle() { @@ -22,12 +23,15 @@ fi case $1 in d*) pactl set-sink-volume $SINK -5% + paplay $SOUND ;; i*) pactl set-sink-volume $SINK +5% + paplay $SOUND ;; m*) pactl set-sink-mute $SINK toggle + paplay $SOUND ;; gui) _check_app $APP