Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if amixer get Capture,0 | grep -q '\[on\]'
- then
- amixer -q set Capture,0 nocap
- echo 1 > "/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness"
- else
- amixer -q set Capture,0 cap
- echo 0 > "/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement