added module_mic (sadly uses only pulseaudio)

This commit is contained in:
Gabubu 2022-04-12 16:41:17 +00:00 committed by GitHub
parent 8383207c0f
commit 1f70822e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ module_vol() {
export bar="${bar}${1}$(if command -v pamixer > NULL; then pamixer --get-volume; else amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }'; fi)${2}" export bar="${bar}${1}$(if command -v pamixer > NULL; then pamixer --get-volume; else amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }'; fi)${2}"
} }
module_mic() {
export bar="${bar}${1}$(if pamixer --source 1 --get-mute | grep -q 'true'; then echo "OFF"; else echo "ON"; fi)${2}"
}
module_kernel() { module_kernel() {
export bar="${bar}${1}$(sed "s/version // ; s/ (.*//" /proc/version)${2}" export bar="${bar}${1}$(sed "s/version // ; s/ (.*//" /proc/version)${2}"
} }