Simplify MPV config
automatic put video on screen corner
This commit is contained in:
parent
5d0ab5c2c3
commit
018bc6044d
1
i3.org
1
i3.org
@ -131,6 +131,7 @@ To display names or symbols instead of plain workspace numbers you can use somet
|
|||||||
for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460
|
for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460
|
||||||
for_window [class="Sxiv"] floating enable, resize set 800 600, move position center
|
for_window [class="Sxiv"] floating enable, resize set 800 600, move position center
|
||||||
for_window [title="nmtui"] floating enable, resize set 800 600
|
for_window [title="nmtui"] floating enable, resize set 800 600
|
||||||
|
for_window [class="mpv"] floating enable
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Scratchpad
|
* Scratchpad
|
||||||
|
97
video.org
97
video.org
@ -7,103 +7,24 @@
|
|||||||
:header-args+: :comments both :mkdirp yes
|
:header-args+: :comments both :mkdirp yes
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
** Video settings
|
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
# Start in fullscreen mode by default.
|
# When Floating, put MPV on the bottom right corner
|
||||||
#fs=yes
|
geometry=99%:98%
|
||||||
|
|
||||||
# force starting with centered window
|
|
||||||
#geometry=50%:50%
|
|
||||||
|
|
||||||
# don't allow a new window to have a size larger than 90% of the screen size
|
# don't allow a new window to have a size larger than 90% of the screen size
|
||||||
#autofit-larger=90%x90%
|
autofit-larger=40%x40%
|
||||||
|
|
||||||
# Do not close the window on exit.
|
|
||||||
#keep-open=yes
|
|
||||||
|
|
||||||
# Do not wait with showing the video window until it has loaded. (This will
|
|
||||||
|
|
||||||
# resize the window once video is loaded. Also always shows a window with
|
|
||||||
# audio.)
|
|
||||||
#force-window=immediate
|
|
||||||
|
|
||||||
# Disable the On Screen Controller (OSC).
|
|
||||||
#osc=no
|
|
||||||
|
|
||||||
# Keep the player window on top of all other windows.
|
|
||||||
#ontop=yes
|
|
||||||
|
|
||||||
# Specify high quality video rendering preset (for --vo=gpu only)
|
|
||||||
# Can cause performance problems with some drivers and GPUs.
|
|
||||||
#profile=gpu-hq
|
|
||||||
|
|
||||||
# Force video to lock on the display's refresh rate, and change video and audio
|
|
||||||
# speed to some degree to ensure synchronous playback - can cause problems
|
|
||||||
# with some drivers and desktop environments.
|
|
||||||
#video-sync=display-resample
|
|
||||||
|
|
||||||
# Enable hardware decoding if available. Often, this does not work with all
|
|
||||||
# video outputs, but should work well with default settings on most systems.
|
|
||||||
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
|
|
||||||
# may or may not help.
|
|
||||||
#hwdec=auto
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Audio settings
|
|
||||||
#+begin_src conf
|
|
||||||
# Specify default audio device. You can list devices with: --audio-device=help
|
|
||||||
# The option takes the device string (the stuff between the '...').
|
|
||||||
#audio-device=alsa/default
|
|
||||||
|
|
||||||
# Do not filter audio to keep pitch when changing playback speed.
|
|
||||||
#audio-pitch-correction=no
|
|
||||||
|
|
||||||
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
|
|
||||||
#audio-channels=5.1
|
|
||||||
# Disable any automatic remix, _if_ the audio output accepts the audio format.
|
|
||||||
# of the currently played file. See caveats mentioned in the manpage.
|
|
||||||
# (The default is "auto-safe", see manpage.)
|
|
||||||
#audio-channels=auto
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Other settings
|
|
||||||
#+begin_src conf
|
|
||||||
# Pretend to be a web browser. Might fix playback with some streaming sites,
|
|
||||||
# but also will break with shoutcast streams.
|
|
||||||
#user-agent="Mozilla/5.0"
|
|
||||||
|
|
||||||
|
# Do not run the screensaver when playing videos
|
||||||
stop-screensaver="yes"
|
stop-screensaver="yes"
|
||||||
|
|
||||||
|
# Automatically load subtitle file with filename same to the video
|
||||||
sub-auto=fuzzy
|
sub-auto=fuzzy
|
||||||
|
|
||||||
# cache settings
|
# Display French subtitles if available.
|
||||||
#
|
slang=fr
|
||||||
# Use 150MB input cache by default. The cache is enabled for network streams only.
|
|
||||||
#cache-default=153600
|
|
||||||
#
|
|
||||||
# Use 150MB input cache for everything, even local files.
|
|
||||||
#cache=153600
|
|
||||||
#
|
|
||||||
# Disable the behavior that the player will pause if the cache goes below a
|
|
||||||
# certain fill size.
|
|
||||||
#cache-pause=no
|
|
||||||
#
|
|
||||||
# Read ahead about 5 seconds of audio and video packets.
|
|
||||||
#demuxer-readahead-secs=5.0
|
|
||||||
#
|
|
||||||
# Raise readahead from demuxer-readahead-secs to this value if a cache is active.
|
|
||||||
#cache-secs=50.0
|
|
||||||
|
|
||||||
# Display English subtitles if available.
|
# Play English audio if available, fall back to French otherwise.
|
||||||
#slang=en
|
alang=en,fr
|
||||||
|
|
||||||
# Play Finnish audio if available, fall back to English otherwise.
|
|
||||||
#alang=fi,en
|
|
||||||
|
|
||||||
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
|
||||||
# If the file seems to be valid UTF-8, prefer UTF-8.
|
|
||||||
# (You can add '+' in front of the codepage to force it.)
|
|
||||||
#sub-codepage=cp1256
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* =input.conf= - MPV Key Bindings
|
* =input.conf= - MPV Key Bindings
|
||||||
|
Loading…
Reference in New Issue
Block a user