Permalink
Browse files

Additional pause keybinding

Allowing multiple keys per command would be nice, but this works for
now. See #228.
  • Loading branch information...
1 parent 845cf4c commit e95baabbb45f20318b5df3010202e3c3c9cf0715 @PromyLOPh committed Jun 24, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −0 contrib/pianobar.1
  2. +2 −1 src/settings.h
  3. +3 −1 src/ui_dispatch.h
View
@@ -114,6 +114,7 @@ Skip current song.
.TP
.B act_songpause = p
+.B act_songpause2 = <Space>
Pause/Continue
.TP
View
@@ -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'
View
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2010-2011
+Copyright (c) 2010-2012
Lars-Dominik Braun <lars@6xq.net>
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 <piano.h>

0 comments on commit e95baab

Please sign in to comment.