doas instead of sudo.
This commit is contained in:
parent
437667c910
commit
199ad0f696
1 changed files with 2 additions and 2 deletions
|
@ -4,10 +4,10 @@ if [ "${1}" = "micmute" ]; then
|
||||||
state=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}')
|
state=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}')
|
||||||
case ${state} in
|
case ${state} in
|
||||||
yes)
|
yes)
|
||||||
echo 0 | sudo tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
echo 0 | doas tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
||||||
pactl set-source-mute @DEFAULT_SOURCE@ 0 ;;
|
pactl set-source-mute @DEFAULT_SOURCE@ 0 ;;
|
||||||
no)
|
no)
|
||||||
echo 1 | sudo tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
echo 1 | doas tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
||||||
pactl set-source-mute @DEFAULT_SOURCE@ 1 ;;
|
pactl set-source-mute @DEFAULT_SOURCE@ 1 ;;
|
||||||
esac
|
esac
|
||||||
kill -46 $(pidof dwmblocks)
|
kill -46 $(pidof dwmblocks)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue