diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-09 23:06:02 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-09 23:06:02 +0530 |
commit | 86339c76d98cc0f150e147bcc5cdd5fdfe956a01 (patch) | |
tree | dd10286487d6f1f4cc48d1996d5200fdade79e34 /.scripts/volumecurr | |
parent | 9e4565b838df7949d6c60f21d3e06cdc0ef8d2a3 (diff) |
.scripts: Adding old pdfconv,pidkillall and get current pipewire volume script
Diffstat (limited to '.scripts/volumecurr')
-rwxr-xr-x | .scripts/volumecurr | 10 |
1 files changed, 10 insertions, 0 deletions
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" |