Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of @ is required if want to omit the command in media mode #4

Open
jeetu7 opened this issue May 3, 2014 · 0 comments
Open

Use of @ is required if want to omit the command in media mode #4

jeetu7 opened this issue May 3, 2014 · 0 comments

Comments

@jeetu7
Copy link

jeetu7 commented May 3, 2014

First a special thanks. I just moved from Debian Wheezy to Debian Jessie. I was previously using lineakd but now moved to triggerhappy :)

  1. For using the nameless mode i have to append one @ symbol after the key. Otherwise it is executing both commands of nameless mode and media mode
    Without the @ it is executing 2 commands

Device /dev/input/event9 not suitable.
Executing trigger action: /home/jeetu/bin/gm_keys.sh playPause
Executing trigger action: @media
Changing trigger mode to
Executing trigger action: /home/jeetu/bin/gm_keys.sh playPause
Executing trigger action: ncmpcpp toggle

  1. Also i think that spaces/tabs and comments are not overlooked properly in line consisting for changing modes.

Following config is working now. You might want to reflect this sort of thing in the man page.

KEY_PREVIOUSSONG@ 1 /home/jeetu/bin/gm_keys.sh prev
KEY_PREVIOUSSONG@ 2 /home/jeetu/bin/gm_keys.sh prev
KEY_STOPCD@ 1 /home/jeetu/bin/gm_keys.sh stop
KEY_PLAYPAUSE@ 1 /home/jeetu/bin/gm_keys.sh playPause
KEY_NEXTSONG@ 1 /home/jeetu/bin/gm_keys.sh next
KEY_NEXTSONG@ 2 /home/jeetu/bin/gm_keys.sh next
KEY_MIN_INTERESTING 1 /home/jeetu/bin/pulse_vol.sh mute
KEY_VOLUMEDOWN 1 /home/jeetu/bin/pulse_vol.sh decrease
KEY_VOLUMEDOWN 2 /home/jeetu/bin/pulse_vol.sh decrease
KEY_VOLUMEUP 1 /home/jeetu/bin/pulse_vol.sh increase
KEY_VOLUMEUP 2 /home/jeetu/bin/pulse_vol.sh increase
KEY_MEDIA 1 rox -d /home/jeetu/

Only trigger commands when in "media" mode

KEY_PREVIOUSSONG@media 1 ncmpcpp prev
KEY_PREVIOUSSONG@media 2 ncmpcpp prev
KEY_STOPCD@media 1 ncmpcpp stop
KEY_PLAYPAUSE@media 1 ncmpcpp toggle
KEY_NEXTSONG@media 1 ncmpcpp next
KEY_NEXTSONG@media 2 ncmpcpp next

Switch to media mode

KEY_NUMLOCK@ 1 @media

Switch back to nameless mode

KEY_NUMLOCK@media 1 @

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant