Qtile tweaks.
This commit is contained in:
parent
29788d6fec
commit
b164f74c04
11
_desktop/_scripts/key-micmute
Executable file
11
_desktop/_scripts/key-micmute
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
state=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}')
|
||||
case ${state} in
|
||||
yes)
|
||||
echo 0 | doas tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
||||
pactl set-source-mute @DEFAULT_SOURCE@ 0 ;;
|
||||
no)
|
||||
echo 1 | doas tee /sys/devices/platform/thinkpad_acpi/leds/platform::micmute/brightness
|
||||
pactl set-source-mute @DEFAULT_SOURCE@ 1 ;;
|
||||
esac
|
@ -73,7 +73,7 @@ keys = [
|
||||
Key([mod, "control", "shift"], "r", lazy.reload_config()),
|
||||
# media keys
|
||||
Key([], "XF86AudioMute", lazy.spawn("pactl set-sink-mute @DEFAULT_SINK@ toggle")),
|
||||
Key([], "XF86AudioMicMute", lazy.spawn("sb-vol-in micmute")),
|
||||
Key([], "XF86AudioMicMute", lazy.spawn("key-micmute")),
|
||||
Key([], "XF86AudioRaiseVolume", lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ +5%")),
|
||||
Key([], "XF86AudioLowerVolume", lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ -5%")),
|
||||
Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight -inc 10")),
|
||||
|
Loading…
Reference in New Issue
Block a user