Re: FYI: using logitech cordless keyboard extra keys in X4
# I left the mute key out, as I haven't found a way yet to actually
toggle
# it on and off (I know you can mute it with amixer set Master mute and
# unmute with amixer set Master unmute, but you'd need an extra script
to
# have it toggling between those values).
Here's a quick script to make mute-toggling work:
--- Start script ~/bin/toggle-mute.bash ---
#!/bin/sh
if [ -f /tmp/muted.${USER} ]; then
aumix <whatever flags unmute volume> && rm -f /tmp/muted.${USER}
else
aumix <whatever flags mute volume> && touch /tmp/muted.${USER}
fi
--- End script ~/bin/toggle-mute.bash ---
Reply to: