summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f2cb3d)
raw | patch | inline | side by side (parent: 5f2cb3d)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 08:32:47 +0000 (08:32 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 08:32:47 +0000 (08:32 +0000) |
command.c | patch | blob | history | |
command.h | patch | blob | history | |
doc/ncmpc.lirc | patch | blob | history | |
screen_help.c | patch | blob | history |
diff --git a/command.c b/command.c
index 75dd75ee938d313b1194a1ccdc85d7a4e783c744..2ad85d0cef4d7406fcc8fa0780f545013f25186b 100644 (file)
--- a/command.c
+++ b/command.c
"Next track" },
{ { '<', 0, 0 }, CMD_TRACK_PREVIOUS, "prev",
"Previous track" },
+ { { 'f', 0, 0 }, CMD_SEEK_FORWARD, "seek-forward",
+ "Seek forward" },
+ { { 'b', 0, 0 }, CMD_SEEK_BACKWARD, "seek-backward",
+ "Seek backward" },
{ { '+', RGHT, 0 }, CMD_VOLUME_UP, "volume-up",
"Increase volume" },
"Toggle repeat mode" },
{ { 'z', 0, 0 }, CMD_RANDOM, "random",
"Toggle random mode" },
+ { { 'x', 0, 0 }, CMD_CROSSFADE, "crossfade",
+ "Toggle crossfade mode" },
{ { 'S', 0, 0 }, CMD_SAVE_PLAYLIST, "save",
"Save playlist" },
"Update screen" },
#ifdef ENABLE_KEYDEF_SCREEN
{ {'K', 0, 0 }, CMD_SCREEN_KEYDEF, "screen-keyedit",
- "Key edit screen" },
+ "Key configuration screen" },
#endif
{ { 'q', 0, 0 }, CMD_QUIT, "quit",
diff --git a/command.h b/command.h
index d0ec67f2422d6acf3e36952af1641e70a5126cf2..7b6bf3098eb666cc28ecebf8176adf7c86358d84 100644 (file)
--- a/command.h
+++ b/command.h
CMD_STOP,
CMD_TRACK_NEXT,
CMD_TRACK_PREVIOUS,
+ CMD_SEEK_FORWARD,
+ CMD_SEEK_BACKWARD,
CMD_SHUFFLE,
CMD_RANDOM,
CMD_CLEAR,
CMD_DELETE,
CMD_REPEAT,
+ CMD_CROSSFADE,
CMD_VOLUME_UP,
CMD_VOLUME_DOWN,
CMD_SAVE_PLAYLIST,
diff --git a/doc/ncmpc.lirc b/doc/ncmpc.lirc
index bdf7b7dc65b1775e4b3b841b95aacb5a7d1b6b2b..409b95182e05a1f044594123c9fb4b2dff506a60 100644 (file)
--- a/doc/ncmpc.lirc
+++ b/doc/ncmpc.lirc
config = +
end
+Begin
+ remote = *
+ button = CD_SEEK_BACK
+ prog = irpty
+ repeat = 1
+ config = b
+end
+
+begin
+ remote = *
+ button = CD_SEEL_FORW
+ prog = irpty
+ repeat = 1
+ config = f
+end
+
begin
remote = *
button = CD_STOP
config = r
end
+# crossfade
+begin
+ remote = *
+ button = CD_TIME_FADE
+ prog = irpty
+ repeat = 0
+ config = x
+end
+
+begin
+ remote = *
+ button = CD_TIME
+ prog = irpty
+ repeat = 0
+ config = t
+end
diff --git a/screen_help.c b/screen_help.c
index c19049717677cc88aeb2a3e422d0928229ab703d..d69aff0bc6fc321baf4c6b91f7cc30b5bd74cf14 100644 (file)
--- a/screen_help.c
+++ b/screen_help.c
#include "screen_utils.h"
#include "screen_help.h"
+
typedef struct
{
signed char highlight;
static help_text_row_t help_text[] =
{
- { 1, CMD_NONE, " Keys " },
- { 0, CMD_NONE, " --------" },
- { 0, CMD_STOP, NULL },
- { 0, CMD_PAUSE, NULL },
- { 0, CMD_TRACK_NEXT, NULL },
- { 0, CMD_TRACK_PREVIOUS, NULL },
- { 0, CMD_VOLUME_DOWN, NULL },
- { 0, CMD_VOLUME_UP, NULL },
- { 0, CMD_NONE, NULL },
+ { 1, CMD_NONE, " Movement keys " },
+ { 0, CMD_NONE, " -----------------" },
{ 0, CMD_LIST_PREVIOUS, NULL },
{ 0, CMD_LIST_NEXT, NULL },
{ 0, CMD_LIST_PREVIOUS_PAGE, NULL },
{ 0, CMD_LIST_NEXT_PAGE, NULL },
{ 0, CMD_LIST_FIRST, NULL },
{ 0, CMD_LIST_LAST, NULL },
-
- { 0, CMD_LIST_FIND, NULL },
- { 0, CMD_LIST_RFIND, NULL },
- { 0, CMD_LIST_FIND_NEXT, NULL },
- { 0, CMD_LIST_RFIND_NEXT, NULL },
- { 0, CMD_TOGGLE_FIND_WRAP, NULL },
{ 0, CMD_NONE, NULL },
{ 0, CMD_SCREEN_NEXT, NULL },
{ 0, CMD_SCREEN_HELP, NULL },
#ifdef ENABLE_KEYDEF_SCREEN
{ 0, CMD_SCREEN_KEYDEF, NULL },
#endif
+
+ { 0, CMD_NONE, NULL },
+ { 0, CMD_NONE, NULL },
+ { 1, CMD_NONE, " General keys " },
+ { 0, CMD_NONE, " ----------------" },
+ { 0, CMD_STOP, NULL },
+ { 0, CMD_PAUSE, NULL },
+ { 0, CMD_TRACK_NEXT, NULL },
+ { 0, CMD_TRACK_PREVIOUS, NULL },
+ { 0, CMD_SEEK_FORWARD, NULL },
+ { 0, CMD_SEEK_BACKWARD, NULL },
+ { 0, CMD_VOLUME_DOWN, NULL },
+ { 0, CMD_VOLUME_UP, NULL },
+ { 0, CMD_NONE, NULL },
+ { 0, CMD_SHUFFLE, NULL },
+ { 0, CMD_REPEAT, NULL },
+ { 0, CMD_RANDOM, NULL },
+ { 0, CMD_CROSSFADE, NULL },
+ { 0, CMD_NONE, NULL },
{ 0, CMD_QUIT, NULL },
+
{ 0, CMD_NONE, NULL },
{ 0, CMD_NONE, NULL },
- { 1, CMD_NONE, " Keys - Playlist screen " },
- { 0, CMD_NONE, " --------------------------" },
+ { 1, CMD_NONE, " Keys - Playlist screen " },
+ { 0, CMD_NONE, " --------------------------" },
{ 0, CMD_PLAY, "Play" },
{ 0, CMD_DELETE, NULL },
- { 0, CMD_SHUFFLE, NULL },
{ 0, CMD_CLEAR, NULL },
{ 0, CMD_SAVE_PLAYLIST, NULL },
- { 0, CMD_REPEAT, NULL },
- { 0, CMD_RANDOM, NULL },
{ 0, CMD_SCREEN_UPDATE, "Center" },
{ 0, CMD_TOGGLE_AUTOCENTER, NULL },
+
{ 0, CMD_NONE, NULL },
{ 0, CMD_NONE, NULL },
- { 1, CMD_NONE, " Keys - Browse screen " },
- { 0, CMD_NONE, " ------------------------" },
+ { 1, CMD_NONE, " Keys - Browse screen " },
+ { 0, CMD_NONE, " ------------------------" },
{ 0, CMD_PLAY, "Enter directory" },
{ 0, CMD_SELECT, NULL },
{ 0, CMD_DELETE, NULL },
{ 0, CMD_SCREEN_UPDATE, NULL },
+
+ { 0, CMD_NONE, NULL },
+ { 0, CMD_NONE, NULL },
+ { 1, CMD_NONE, " Find keys " },
+ { 0, CMD_NONE, " -------------" },
+ { 0, CMD_LIST_FIND, NULL },
+ { 0, CMD_LIST_RFIND, NULL },
+ { 0, CMD_LIST_FIND_NEXT, NULL },
+ { 0, CMD_LIST_RFIND_NEXT, NULL },
+ { 0, CMD_TOGGLE_FIND_WRAP, NULL },
+ { 0, CMD_TOGGLE_FIND_WRAP, NULL },
+
+ { 0, CMD_NONE, NULL },
{ 0, CMD_NONE, NULL },
+ { 1, CMD_NONE, " ncmpc build information " },
+ { 0, CMD_NONE, " ---------------------------" },
+ { 0, CMD_NONE, " Version : " VERSION },
+ { 0, CMD_NONE, " Configuration dirs : ~/.ncmpc, " SYSCONFDIR "/" PACKAGE },
+#ifdef ENABLE_KEYDEF_SCREEN
+ { 0, CMD_NONE, " Key Editor : yes" },
+#else
+ { 0, CMD_NONE, " Key Editor : no" },
+#endif
+
{ 0, CMD_NONE, NULL },
- { 1, CMD_NONE, " " PACKAGE " version " VERSION },
{-1, CMD_NONE, NULL }
};
}
if( help_text[index].text )
snprintf(buf, 256,
- "%20s : %s",
+ "%20s : %s ",
get_key_names(help_text[index].command, TRUE),
help_text[index].text);
else
snprintf(buf, 256,
- "%20s : %s",
+ "%20s : %s ",
get_key_names(help_text[index].command, TRUE),
get_key_description(help_text[index].command));
return buf;