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().
Unified · Split
| @@ -501,12 +501,6 @@ Configurable Options · 500 unmodified lines | |||
| 501 | The following options configure what commands are run when the buttons are | 501 | The following options configure what commands are run when the buttons are |
| 502 | clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. | 502 | clicked. ``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=`` |
| @@ -71,10 +71,6 @@ local user_opts = { · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | -- luacheck: push ignore | 72 | -- luacheck: push ignore |
| 73 | -- luacheck: max line length | 73 | -- 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", |