Added mpv config

This commit is contained in:
ManOfGoldForever 2025-11-17 08:19:56 -05:00
parent 34e9f9cc83
commit eb701b9b24
5 changed files with 81 additions and 79 deletions

2
.config/mpv/mpv.conf Normal file
View file

@ -0,0 +1,2 @@
script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp
ytdl-raw-options=concurrent-fragments=5

View file

@ -1,25 +1,25 @@
watchhistory: loadpage watchhistory
exit: quit
r: reload
tpause: mpv tprop pause ;; echo success Toggled player pause
video: loadpage video
next: mpv playlist-next ;; echo mpv Skipped
feed: loadpage feed
v: version
sub: sync
cp: copy
back: mpv playlist-previous ;; echo mpv Skipped
playlist: loadpage playlist
q: quit
resume: mpv sprop pause no ;; echo mpv Player resumed
x: quit
exit: quit
print: echo
pause: mpv sprop pause yes ;; echo mpv Player paused
rc: reload configs
trending: loadpage trending
popular: loadpage popular
playlist: loadpage playlist
back: mpv playlist-previous ;; echo mpv Skipped
search: loadpage search
library: loadpage library
bookmarks: loadpage bookmarks
cp: copy
library: loadpage library
x: quit
sub: sync
resume: mpv sprop pause no ;; echo mpv Player resumed
video: loadpage video
q: quit
v: version
next: mpv playlist-next ;; echo mpv Skipped
popular: loadpage popular
h: help
pause: mpv sprop pause yes ;; echo mpv Player paused
channel: loadpage channel
tpause: mpv tprop pause ;; echo success Toggled player pause
rc: reload configs

View file

@ -1,25 +1,25 @@
global:
'f':
2: run ${browser} '${url}'
Right:
2: mpv seek 5 ;; echo mpv Fast forwarded 5 seconds
3: next ;; echo mpv Skipped
'c':
2: cp ${url}
'y':
0: cp ${url}
' ':
0: tpause ;; echo mpv Player pause toggled
Left:
2: mpv seek -5 ;; echo mpv Rewinded 5 seconds
3: back ;; echo mpv Unskipped
2: mpv seek -5 ;; echo mpv Rewinded 5 seconds
'f':
2: run ${browser} '${url}'
Right:
3: next ;; echo mpv Skipped
2: mpv seek 5 ;; echo mpv Fast forwarded 5 seconds
'c':
2: cp ${url}
search:
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'p':
2: parrun mpv '${hover-url}'
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
popular:
'p':
2: parrun mpv '${hover-url}'
@ -28,55 +28,55 @@ popular:
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
trending:
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-url}'
video: {}
playlist:
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-url}'
channel_main: {}
channel_videos:
'p':
2: parrun mpv '${hover-url}'
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'p':
2: parrun mpv '${hover-url}'
channel_playlists:
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
watchhistory:
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
feed:
'A':
1: parrun ${terminal-emulator} mpv '${hover-channel-url}/videos' --no-video --loop-playlist=inf --shuffle
'P':
1: parrun ${terminal-emulator} mpv '${hover-channel-url}/videos' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-video-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-video-url}' --no-video
'P':
1: parrun ${terminal-emulator} mpv '${hover-channel-url}/videos' --no-video --loop-playlist=inf --shuffle
'A':
1: parrun ${terminal-emulator} mpv '${hover-channel-url}/videos' --no-video --loop-playlist=inf --shuffle
library:
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle
'p':
2: parrun mpv '${hover-url}'
'a':
2: parrun ${terminal-emulator} mpv '${hover-url}' --no-video
'A':
1: parrun ${terminal-emulator} mpv '${hover-url}' --no-video --loop-playlist=inf --shuffle

View file

@ -1,52 +1,52 @@
Enter:
0: Select
'd':
4: RemoveWord
0: ClearHistory
End:
0: ClearHistory
'k':
0: MoveUp
Esc:
0: Deselect
Home:
0: FirstHistory
'k':
0: MoveUp
'q':
0: Exit
End:
0: ClearHistory
Up:
0: MoveUp
2: PreviousEntry
':':
0: StartCommandCapture
Down:
0: MoveDown
2: NextEntry
'v':
2: Paste
'h':
0: MoveLeft
F5:
0: Reload
Home:
0: FirstHistory
'j':
0: MoveDown
Up:
2: PreviousEntry
0: MoveUp
Backspace:
0: Back
Right:
2: NextWord
0: MoveRight
'a':
2: First
Enter:
0: Select
Left:
4: Back
2: PreviousWord
0: MoveLeft
'l':
0: MoveRight
'v':
2: Paste
'q':
0: Exit
'e':
2: End
'r':
2: Reload
':':
0: StartCommandCapture
Backspace:
0: Back
'u':
2: ClearLine
'a':
2: First
'h':
0: MoveLeft
Right:
0: MoveRight
2: NextWord
'w':
2: RemoveWord
'j':
0: MoveDown
'l':
0: MoveRight
'e':
2: End

View file

@ -22,9 +22,9 @@ api_key: YOUR API KEY HERE
shell: sh
legacy_input_handling: false
env:
browser: xdg-open
save-path: ~/.local/share/youtube-tui/saved/
terminal-emulator: konsole -e
youtube-downloader: yt-dlp
video-player: mpv
youtube-downloader: yt-dlp
browser: xdg-open
terminal-emulator: konsole -e
download-path: ~/Downloads/%(title)s-%(id)s.%(ext)s