History

osc.lua: move title mbtn script-opts below playlist_next's

Sort mbtn script-opts according to how they are shown to the user in bar layout instead of how they are defined in osc_init().

Guido Cella committed 1 year ago

Commit f4a35a01 parent 53554f52 files · +10 −10Browse files

Unified · Split

2 files
  1. DOCS/man/osc.rst +6 −6
  2. player/lua/osc.lua +4 −4
DOCS/man/osc.rst+6−6
@@ -501,12 +501,6 @@ Configurable Options · 500 unmodified lines
501The following options configure what commands are run when the buttons are501The following options configure what commands are run when the buttons are
502clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.502clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.
503 503
504``title_mbtn_left_command=script-binding stats/display-page-5``
505
506``title_mbtn_mid_command=show-text ${filename}``
507
508``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``
509
510``playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000``504``playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000``
511 505
512``playlist_prev_mbtn_mid_command=show-text ${playlist} 3000``506``playlist_prev_mbtn_mid_command=show-text ${playlist} 3000``
@@ -519,6 +513,12 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. · 6 unmodified lines
519 513
520``playlist_next_mbtn_right_command=show-text ${playlist} 3000``514``playlist_next_mbtn_right_command=show-text ${playlist} 3000``
521 515
516``title_mbtn_left_command=script-binding stats/display-page-5``
517
518``title_mbtn_mid_command=show-text ${filename}``
519
520``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``
521
522``play_pause_mbtn_left_command=cycle pause``522``play_pause_mbtn_left_command=cycle pause``
523 523
524``play_pause_mbtn_mid_command=``524``play_pause_mbtn_mid_command=``
player/lua/osc.lua+4−4
@@ -71,10 +71,6 @@ local user_opts = { · 70 unmodified lines
71 71
72 -- luacheck: push ignore72 -- luacheck: push ignore
73 -- luacheck: max line length73 -- luacheck: max line length
74 title_mbtn_left_command = "script-binding stats/display-page-5",
75 title_mbtn_mid_command = "show-text ${filename}",
76 title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide",
77
78 playlist_prev_mbtn_left_command = "playlist-prev",74 playlist_prev_mbtn_left_command = "playlist-prev",
79 playlist_prev_mbtn_mid_command = "show-text ${playlist} 3000",75 playlist_prev_mbtn_mid_command = "show-text ${playlist} 3000",
80 playlist_prev_mbtn_right_command = "show-text ${playlist} 3000",76 playlist_prev_mbtn_right_command = "show-text ${playlist} 3000",
@@ -83,6 +79,10 @@ local user_opts = { · 2 unmodified lines
83 playlist_next_mbtn_mid_command = "show-text ${playlist} 3000",79 playlist_next_mbtn_mid_command = "show-text ${playlist} 3000",
84 playlist_next_mbtn_right_command = "show-text ${playlist} 3000",80 playlist_next_mbtn_right_command = "show-text ${playlist} 3000",
85 81
82 title_mbtn_left_command = "script-binding stats/display-page-5",
83 title_mbtn_mid_command = "show-text ${filename}",
84 title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide",
85
86 play_pause_mbtn_left_command = "cycle pause",86 play_pause_mbtn_left_command = "cycle pause",
87 play_pause_mbtn_mid_command = "",87 play_pause_mbtn_mid_command = "",
88 play_pause_mbtn_right_command = "cycle-values loop-file inf no",88 play_pause_mbtn_right_command = "cycle-values loop-file inf no",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t