git scripts

This commit is contained in:
Miguel Palhas
2024-10-06 14:36:09 +01:00
parent 1585865544
commit a436a816b6
14 changed files with 181 additions and 456 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
if command -v pamixer &>/dev/null; then
if [ true == $(pamixer --get-mute) ]; then
echo 0
exit
else
pamixer --get-volume
fi
else
amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}'
fi