rice

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 98f01d94ee182d13b44b146aa5b9bd50a6264ce3
parent b65b7e3a03506310f95bddae5599587ef25e7fa3
Author: Mark Feller <mark.feller@member.fsf.org>
Date:   Fri, 27 Sep 2019 11:39:34 -0600

add volume changer script

Diffstat:
Adots/.local/bin/volume-change | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/dots/.local/bin/volume-change b/dots/.local/bin/volume-change @@ -0,0 +1,9 @@ +#!/bin/sh + +SINK=$( pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 ) + +pactl -- set-sink-volume $SINK $1 + +NOW=$( pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ) + +notify-send "<b>Volume</b> ${NOW}%"