From 9e533dcb56f3d34a85b5ba7f279c2870ebcc4034 Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Fri, 5 May 2023 01:30:18 +0000 Subject: init --- components/volume | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 components/volume (limited to 'components/volume') diff --git a/components/volume b/components/volume new file mode 100644 index 0000000..3249774 --- /dev/null +++ b/components/volume @@ -0,0 +1,4 @@ +#!/bin/sh + +vol="$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')" +[ "$vol" = "0" ] && echo "ﱝ muted" || echo "墳 ${vol}%" -- cgit v1.2.3