Merge pull request #6 from GabubuAvailable/master
added module_mic_alsa
This commit is contained in:
commit
a8f980392d
@ -18,7 +18,8 @@ export maildir=""
|
|||||||
#module_uptime "Up: " " | "
|
#module_uptime "Up: " " | "
|
||||||
#module_ram "RAM: " " | "
|
#module_ram "RAM: " " | "
|
||||||
#module_user "User: " " | "
|
#module_user "User: " " | "
|
||||||
#module_vol_pa/alsa "Vol: " "% | "
|
#module_vol_pa/alsa "Vol: " " | "
|
||||||
|
#module_mic_pa/alsa " " " | "
|
||||||
#module_kernel "Kernel: " " | "
|
#module_kernel "Kernel: " " | "
|
||||||
#module_loadavg "Load Avg.: " " | "
|
#module_loadavg "Load Avg.: " " | "
|
||||||
#module_weather "Weather: " " | "
|
#module_weather "Weather: " " | "
|
||||||
|
@ -34,6 +34,10 @@ module_mic_pa() {
|
|||||||
export bar="${bar}${1}$(if pamixer --source 1 --get-mute | grep -q 'true'; then echo "OFF"; else echo "ON"; fi)${2}"
|
export bar="${bar}${1}$(if pamixer --source 1 --get-mute | grep -q 'true'; then echo "OFF"; else echo "ON"; fi)${2}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module_mic_alsa() {
|
||||||
|
export bar="${bar}${1}$(if amixer sget Capture | grep -q 'off'; 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}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user