Guest User

Untitled

a guest
Mar 31st, 2012
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. if amixer get Capture,0 | grep -q '\[on\]'
  3. then
  4. amixer -q set Capture,0 nocap
  5. echo 1 > "/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness"
  6. else
  7. amixer -q set Capture,0 cap
  8. echo 0 > "/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness"
  9. fi
RAW Paste Data