„bHELPER.sh“ ändern
This commit is contained in:
parent
d5252413a0
commit
3aefa8b5f3
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
SkriptVersion="2023-04-18 01:35"
|
||||
SkriptVersion="2023-04-21 19:25"
|
||||
|
||||
gl_SkriptName=$(basename "${0}")
|
||||
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
||||
|
@ -143,8 +143,6 @@ gl__lautstaerkeprozent=$(amixer | grep "%" | head -1 | grep -o "\[[0-9]\{1,3\}%\
|
|||
### MIKROFONE
|
||||
|
||||
function mic_status {
|
||||
#pacmd list-sources | grep "index:\|device.string\|name:\|muted" | grep -B1 -A1 "alsa_input" | grep -o "muted: .*$" | uniq | sed "s/muted: //g" | grep yes &> /dev/null && gl__mic_mutestatus="aus" || gl__mic_mutestatus="an"
|
||||
#gl__mic_mutestatus=$(amixer set Capture toggle | grep -o "\[on\]\|\[off\]" | head -n 1 | sed "s/\[//g" | sed "s/\]//g")
|
||||
gl__mic_mutestatus=$(amixer | grep -A 5 "Simple mixer control .Capture." | grep -o "\[on\]\|\[off\]" | head -n 1 | sed "s/\[//g" | sed "s/\]//g")
|
||||
}
|
||||
mic_status
|
||||
|
@ -942,10 +940,7 @@ amixer set Master 10%-
|
|||
################################################################################
|
||||
|
||||
m|M)
|
||||
|
||||
amixer set Capture toggle
|
||||
#pacmd list-sources | grep "alsa_input" | sed -e "s/name: <//g" -e "s/>//g" -e "s/^[ \t]*//;s/[ \t]*$//" | xargs -I{} pactl set-source-mute {} toggle
|
||||
|
||||
;;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue