Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: changed default actions for some commands #266

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/USER_OPTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ Customize the button function based on mouse actions.

| Type | Option | Function |
| ----------------------------- | -------------------------------- | ------------------------------------------------------------------------------- |
| Title (above seekbar) | title_mbtn_left_command | `script-binding select/select-playlist; script-message-to modernz osc-hide` |
| | title_mbtn_right_command | `script-binding stats/display-page-5` |
| Title (above seekbar) | title_mbtn_left_command | `script-binding stats/display-page-5` |
| | title_mbtn_right_command | `show-text ${path}` |
| Playlist Button | playlist_mbtn_left_command | `script-binding select/select-playlist; script-message-to modernz osc-hide` |
| | playlist_mbtn_right_command | `show-text ${playlist} 3000` |
| Volume Control | vol_ctrl_mbtn_right_command | `script-binding select/select-audio-device; script-message-to modernz osc-hide` |
Expand All @@ -193,9 +193,9 @@ Customize the button function based on mouse actions.
| | sub_track_mbtn_right_command | `cycle sub` |
| | sub_track_wheel_down_command | `cycle sub` |
| | sub_track_wheel_up_command | `cycle sub down` |
| Chapter Skip Buttons | chapter_prev_mbtn_left_command | `no-osd add chapter -1` |
| Chapter Skip Buttons | chapter_prev_mbtn_left_command | `osd-msg add chapter -1` |
| | chapter_prev_mbtn_right_command | `script-binding select/select-chapter; script-message-to modernz osc-hide` |
| | chapter_next_mbtn_left_command | `no-osd add chapter 1` |
| | chapter_next_mbtn_left_command | `osd-msg add chapter 1` |
| | chapter_next_mbtn_right_command | `script-binding select/select-chapter; script-message-to modernz osc-hide` |
| Chapter Title (below seekbar) | chapter_title_mbtn_left_command | `script-binding select/select-chapter; script-message-to modernz osc-hide` |
| | chapter_title_mbtn_right_command | `show-text ${chapter-list} 3000` |
Expand Down
16 changes: 8 additions & 8 deletions modernz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ local user_opts = {
-- customize the button function based on mouse action

-- title above seekbar mouse actions
title_mbtn_left_command = "script-binding select/select-playlist; script-message-to modernz osc-hide",
title_mbtn_right_command = "script-binding stats/display-page-5",
title_mbtn_left_command = "script-binding stats/display-page-5",
title_mbtn_right_command = "show-text ${path}",

-- playlist button mouse actions
playlist_mbtn_left_command = "script-binding select/select-playlist; script-message-to modernz osc-hide",
Expand All @@ -185,15 +185,15 @@ local user_opts = {

-- audio button mouse actions
audio_track_mbtn_left_command = "script-binding select/select-aid; script-message-to modernz osc-hide",
audio_track_mbtn_right_command = "osd-msg cycle audio",
audio_track_wheel_down_command = "osd-msg cycle audio",
audio_track_wheel_up_command = "osd-msg cycle audio down",
audio_track_mbtn_right_command = "cycle audio",
audio_track_wheel_down_command = "cycle audio",
audio_track_wheel_up_command = "cycle audio down",

-- subtitle button mouse actions
sub_track_mbtn_left_command = "script-binding select/select-sid; script-message-to modernz osc-hide",
sub_track_mbtn_right_command = "osd-msg cycle sub",
sub_track_wheel_down_command = "osd-msg cycle sub",
sub_track_wheel_up_command = "osd-msg cycle sub down",
sub_track_mbtn_right_command = "cycle sub",
sub_track_wheel_down_command = "cycle sub",
sub_track_wheel_up_command = "cycle sub down",

-- chapter skip buttons mouse actions
chapter_prev_mbtn_left_command = "osd-msg add chapter -1",
Expand Down