Merge branch '94-maximize-mpv-playback-to-1080p-for-added-links' into 'master'
Resolve "Maximize mpv playback to 1080p for added links" Closes #94 See merge request marty-oehme/dotfiles!32
This commit is contained in:
commit
b439e7fabb
2 changed files with 4 additions and 3 deletions
|
@ -90,7 +90,7 @@ else:
|
||||||
os.mkfifo(FIFO, 0o600)
|
os.mkfifo(FIFO, 0o600)
|
||||||
|
|
||||||
opts = (os.getenv("MPV") or "mpv").split()
|
opts = (os.getenv("MPV") or "mpv").split()
|
||||||
opts.extend(["--no-terminal", "--force-window", "--input-file=" + FIFO,
|
opts.extend(["--no-terminal", "--force-window=immediate", "--input-file=" + FIFO,
|
||||||
"--"])
|
"--"])
|
||||||
opts.extend(files)
|
opts.extend(files)
|
||||||
|
|
|
@ -91,8 +91,9 @@ config.bind(leader + 'tV', 'set tabs.position left')
|
||||||
|
|
||||||
# [M]edia shortcuts - watch, queue, download media
|
# [M]edia shortcuts - watch, queue, download media
|
||||||
# bind mpv to play the current page/links, using a single instance which queues the next link passed
|
# bind mpv to play the current page/links, using a single instance which queues the next link passed
|
||||||
config.bind(leader + 'M', 'spawn umpv {url}')
|
streamingformat = '--ytdl-format="bestvideo[height<=1080]+bestaudio/best[height<=1080]"'
|
||||||
config.bind(leader + 'm', 'hint links spawn umpv {hint-url}')
|
config.bind(leader + 'M', 'spawn umpv ' + streamingformat + ' {url}')
|
||||||
|
config.bind(leader + 'm', 'hint links spawn umpv ' + streamingformat + ' {hint-url}')
|
||||||
# bind youtube-dl to download the current page/links
|
# bind youtube-dl to download the current page/links
|
||||||
config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
||||||
config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
|
||||||
|
|
Loading…
Reference in a new issue