From 86339c76d98cc0f150e147bcc5cdd5fdfe956a01 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 9 Jul 2023 23:06:02 +0530 Subject: .scripts: Adding old pdfconv,pidkillall and get current pipewire volume script --- .scripts/volumecurr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .scripts/volumecurr (limited to '.scripts/volumecurr') diff --git a/.scripts/volumecurr b/.scripts/volumecurr new file mode 100755 index 0000000..7b08cab --- /dev/null +++ b/.scripts/volumecurr @@ -0,0 +1,10 @@ +#!/bin/sh + +volume="$(wpctl get-volume @DEFAULT_SINK@)" +volume=${volume#Volume: *} + +case "$volume" + in (*MUTED*) volume=0;; +esac + +printf "%0.0f%%\n" "${volume%% *}e+2" -- cgit v1.2.3