From e95baabbb45f20318b5df3010202e3c3c9cf0715 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 24 Jun 2012 15:24:09 +0200 Subject: Additional pause keybinding Allowing multiple keys per command would be nice, but this works for now. See #228. --- contrib/pianobar.1 | 1 + src/settings.h | 3 ++- src/ui_dispatch.h | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/pianobar.1 b/contrib/pianobar.1 index 856db4d..ddfd5e2 100644 --- a/contrib/pianobar.1 +++ b/contrib/pianobar.1 @@ -114,6 +114,7 @@ Skip current song. .TP .B act_songpause = p +.B act_songpause2 = Pause/Continue .TP diff --git a/src/settings.h b/src/settings.h index 59dd7b6..346551d 100644 --- a/src/settings.h +++ b/src/settings.h @@ -55,8 +55,9 @@ typedef enum { BAR_KS_VOLDOWN = 21, BAR_KS_VOLUP = 22, BAR_KS_MANAGESTATION = 23, + BAR_KS_PLAYPAUSE2 = 24, /* insert new shortcuts _before_ this element and increase its value */ - BAR_KS_COUNT = 24, + BAR_KS_COUNT = 25, } BarKeyShortcutId_t; #define BAR_KS_DISABLED '\x00' diff --git a/src/ui_dispatch.h b/src/ui_dispatch.h index acd0f67..d43642a 100644 --- a/src/ui_dispatch.h +++ b/src/ui_dispatch.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2010-2011 +Copyright (c) 2010-2012 Lars-Dominik Braun Permission is hereby granted, free of charge, to any person obtaining a copy @@ -93,6 +93,8 @@ static const BarUiDispatchAction_t dispatchActions[BAR_KS_COUNT] = { "act_volup"}, {'=', BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback", "act_managestation"}, + {' ', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, NULL, + "act_songpause2"}, }; #include -- cgit v1.2.3