Better mic indicator in bar
This commit is contained in:
parent
4624d539dc
commit
959db1b24f
|
@ -58,7 +58,7 @@ border-size = 0
|
||||||
border-color = #00000000
|
border-color = #00000000
|
||||||
|
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
padding-right = 2
|
padding-right = 0
|
||||||
|
|
||||||
module-margin-left = 1
|
module-margin-left = 1
|
||||||
module-margin-right = 1
|
module-margin-right = 1
|
||||||
|
@ -390,6 +390,7 @@ type = custom/script
|
||||||
exec = $DOTFILES_PATH/apps/de/polybar/mic.sh
|
exec = $DOTFILES_PATH/apps/de/polybar/mic.sh
|
||||||
tail = true
|
tail = true
|
||||||
format = <label>
|
format = <label>
|
||||||
label-foreground = ${colors.icon}
|
label-foreground = ${colors.background}
|
||||||
label = %output%
|
label = %output%
|
||||||
click-left = kill -USR1 %pid%
|
click-left = kill -USR1 %pid%
|
||||||
|
format-margin = 0
|
||||||
|
|
|
@ -14,10 +14,10 @@ cleanup() {
|
||||||
print_status() {
|
print_status() {
|
||||||
if amixer get Capture | grep -q '\[off\]'; then
|
if amixer get Capture | grep -q '\[off\]'; then
|
||||||
# red means recording
|
# red means recording
|
||||||
echo "%{F$(xrdb -query | grep -Po 'color4:.*#\K\w[0-9a-f]+')}"
|
echo "%{B$(xrdb -query | grep -Po 'color4:.*#\K\w[0-9a-f]+')} "
|
||||||
else
|
else
|
||||||
# blue means nobody can hear you scream
|
# blue means nobody can hear you scream
|
||||||
echo "%{F$(xrdb -query | grep -Po 'color1:.*#\K\w[0-9a-f]+')}"
|
echo "%{B$(xrdb -query | grep -Po 'color1:.*#\K\w[0-9a-f]+')} "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue