On Fri, 25 Feb 2011, Eitan Goldshtrom wrote:
> I've put the following directly into the events() function of my
> wmiirc script in the KeyGroup Other section
>
> Key $MODKEY-z
> amixer sset PCM 4+ &
> Key $MODKEY-v
> eval wmiir setsid amixer sset PCM 4+ &
>
> I've since quit wmii, logged out, logged back in, and started X and
> wmii again. Still the key bindings don't work. When I test each of
> those commands in a terminal it has the desired effect. I'm at a loss
> at this point as to why it doesn't work. Is there a way for me to
> check and see if anything is happening at all, even though my volume
> isn't actually changing?
Try something interactive to see that keys are being reloaded (maybe
you're editing the wrong wmiirc?):
Key $MODKEY-z
xmessage blahblah &
or something that creates an obvious change:
Key $MODKEY-z
wmiir xwrite /ctl view "CHANGED"
Maybe amixer isn't in your $PATH by the time wmii starts:
Key $MODKEY-z
$HOME/local-stuff/amixer sset PCM 4+ &
Or just log the errors, and go from there:
Key $MODKEY-z
amixer sset PCM 4+ >$HOME/amixer.stdout 2>$HOME/amixer.stderr &
-- Best, BenReceived on Fri Feb 25 2011 - 18:50:17 CET
This archive was generated by hypermail 2.2.0 : Fri Feb 25 2011 - 19:00:05 CET