From 85b4e34aaa5edada298492cf0da5733dd412e95d Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sun, 7 Jan 2024 14:36:10 +0100 Subject: [PATCH] removed mpv --- ansible/amd-gnome.yml | 1 - ansible/intel-gnome.yml | 1 - ansible/roles/mpv/files/mpv/input.conf | 183 ------------------------- ansible/roles/mpv/files/mpv/mpv.conf | 143 ------------------- ansible/roles/mpv/tasks/main.yml | 17 --- 5 files changed, 345 deletions(-) delete mode 100644 ansible/roles/mpv/files/mpv/input.conf delete mode 100644 ansible/roles/mpv/files/mpv/mpv.conf delete mode 100644 ansible/roles/mpv/tasks/main.yml diff --git a/ansible/amd-gnome.yml b/ansible/amd-gnome.yml index d09b17d..90bc25c 100644 --- a/ansible/amd-gnome.yml +++ b/ansible/amd-gnome.yml @@ -22,7 +22,6 @@ - browsers - privateinternetaccess - ufw - - mpv - pipewire - hostname - timezone diff --git a/ansible/intel-gnome.yml b/ansible/intel-gnome.yml index c2057c9..7a07a4b 100644 --- a/ansible/intel-gnome.yml +++ b/ansible/intel-gnome.yml @@ -22,7 +22,6 @@ - browsers - privateinternetaccess - ufw - - mpv - pipewire - hostname - timezone diff --git a/ansible/roles/mpv/files/mpv/input.conf b/ansible/roles/mpv/files/mpv/input.conf deleted file mode 100644 index 9185838..0000000 --- a/ansible/roles/mpv/files/mpv/input.conf +++ /dev/null @@ -1,183 +0,0 @@ -# mpv keybindings -# -# Location of user-defined bindings: ~/.config/mpv/input.conf -# -# Lines starting with # are comments. Use SHARP to assign the # key. -# Copy this file and uncomment and edit the bindings you want to change. -# -# List of commands and further details: DOCS/man/input.rst -# List of special keys: --input-keylist -# Keybindings testing mode: mpv --input-test --force-window --idle -# -# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore'). -# -# Strings need to be quoted and escaped: -# KEY show-text "This is a single backslash: \\ and a quote: \" !" -# -# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with -# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal). -# -# The default keybindings are hardcoded into the mpv binary. -# You can disable them completely with: --no-input-default-bindings - -# Developer note: -# On compilation, this file is baked into the mpv binary, and all lines are -# uncommented (unless '#' is followed by a space) - thus this file defines the -# default key bindings. - -# If this is enabled, treat all the following bindings as default. -#default-bindings start - -#MBTN_LEFT ignore # don't do anything -#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen -#MBTN_RIGHT cycle pause # toggle pause/playback mode -#MBTN_BACK playlist-prev # skip to the previous file -#MBTN_FORWARD playlist-next # skip to the next file - -# Mouse wheels, touchpad or other input devices that have axes -# if the input devices supports precise scrolling it will also scale the -# numeric value accordingly -#WHEEL_UP add volume 2 -#WHEEL_DOWN add volume -2 -#WHEEL_LEFT seek -10 # seek 10 seconds backward -#WHEEL_RIGHT seek 10 # seek 10 seconds forward - -## Seek units are in seconds, but note that these are limited by keyframes -l seek 5 # seek 5 seconds forward -h seek -5 # seek 5 seconds backward -L seek 60 # seek 1 minute forward -H seek -60 # seek 1 minute backward -# Do smaller, always exact (non-keyframe-limited), seeks with shift. -# Don't show them on the OSD (no-osd). -#Shift+RIGHT no-osd seek 1 exact # seek exactly 1 second forward -#Shift+LEFT no-osd seek -1 exact # seek exactly 1 second backward -#Shift+UP no-osd seek 5 exact # seek exactly 5 seconds forward -#Shift+DOWN no-osd seek -5 exact # seek exactly 5 seconds backward -#Ctrl+LEFT no-osd sub-seek -1 # seek to the previous subtitle -#Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle -#Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed -#Ctrl+Shift+RIGHT sub-step 1 # change subtitle timing such that the next subtitle is displayed -#Alt+left add video-pan-x 0.1 # move the video right -#Alt+right add video-pan-x -0.1 # move the video left -#Alt+up add video-pan-y 0.1 # move the video down -#Alt+down add video-pan-y -0.1 # move the video up -#Alt++ add video-zoom 0.1 # zoom in -#ZOOMIN add video-zoom 0.1 # zoom in -#Alt+- add video-zoom -0.1 # zoom out -#ZOOMOUT add video-zoom -0.1 # zoom out -#Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings -#PGUP add chapter 1 # seek to the next chapter -#PGDWN add chapter -1 # seek to the previous chapter -#Shift+PGUP seek 600 # seek 10 minutes forward -#Shift+PGDWN seek -600 # seek 10 minutes backward -#[ multiply speed 1/1.1 # decrease the playback speed -#] multiply speed 1.1 # increase the playback speed -#{ multiply speed 0.5 # halve the playback speed -#} multiply speed 2.0 # double the playback speed -#BS set speed 1.0 # reset the speed to normal -#Shift+BS revert-seek # undo the previous (or marked) seek -#Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek -#q quit -#Q quit-watch-later # exit and remember the playback position -#q {encode} quit 4 -#ESC set fullscreen no # leave fullscreen -#ESC {encode} quit 4 -#p cycle pause # toggle pause/playback mode -#. frame-step # advance one frame and pause -#, frame-back-step # go back by one frame and pause -#SPACE cycle pause # toggle pause/playback mode -#> playlist-next # skip to the next file -#ENTER playlist-next # skip to the next file -#< playlist-prev # skip to the previous file -#O no-osd cycle-values osd-level 3 1 # toggle displaying the OSD on user interaction or always -#o show-progress # show playback progress -#P show-progress # show playback progress -#i script-binding stats/display-stats # display information and statistics -#I script-binding stats/display-stats-toggle # toggle displaying information and statistics -#` script-binding console/enable # open the console -#z add sub-delay -0.1 # shift subtitles 100 ms earlier -#Z add sub-delay +0.1 # delay subtitles by 100 ms -#x add sub-delay +0.1 # delay subtitles by 100 ms -#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio -#ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier -#Shift+g add sub-scale +0.1 # increase the subtitle font size -#Shift+f add sub-scale -0.1 # decrease the subtitle font size -k add volume +5 -j add volume -5 -K add volume +10 -J add volume -10 -#0 add volume 2 -#* add volume 2 -#m cycle mute # toggle mute -#1 add contrast -1 -#2 add contrast 1 -#3 add brightness -1 -#4 add brightness 1 -#5 add gamma -1 -#6 add gamma 1 -#7 add saturation -1 -#8 add saturation 1 -#Alt+0 set current-window-scale 0.5 # halve the window size -#Alt+1 set current-window-scale 1.0 # reset the window size -#Alt+2 set current-window-scale 2.0 # double the window size -#d cycle deinterlace # toggle the deinterlacing filter -#r add sub-pos -1 # move subtitles up -#R add sub-pos +1 # move subtitles down -#t add sub-pos +1 # move subtitles down -#v cycle sub-visibility # hide or show the subtitles -#Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles -#V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer -#u cycle-values sub-ass-override "force" "yes" # toggle overriding SSA/ASS subtitle styles with the normal styles -#j cycle sub # switch subtitle track -#J cycle sub down # switch subtitle track backwards -#SHARP cycle audio # switch audio track -#_ cycle video # switch video track -#T cycle ontop # toggle placing the video on top of other windows -#f cycle fullscreen # toggle fullscreen -#s screenshot # take a screenshot of the video in its original resolution with subtitles -#S screenshot video # take a screenshot of the video in its original resolution without subtitles -#Ctrl+s screenshot window # take a screenshot of the window with OSD and subtitles -#Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots -#w add panscan -0.1 # decrease panscan -#W add panscan +0.1 # shrink black bars by cropping the video -#e add panscan +0.1 # shrink black bars by cropping the video -#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect) -#POWER quit -#PLAY cycle pause # toggle pause/playback mode -#PAUSE cycle pause # toggle pause/playback mode -#PLAYPAUSE cycle pause # toggle pause/playback mode -#PLAYONLY set pause no # unpause -#PAUSEONLY set pause yes # pause -#STOP quit -#FORWARD seek 60 # seek 1 minute forward -#REWIND seek -60 # seek 1 minute backward -#NEXT playlist-next # skip to the next file -#PREV playlist-prev # skip to the previous file -#VOLUME_UP add volume 2 -#VOLUME_DOWN add volume -2 -#MUTE cycle mute # toggle mute -#CLOSE_WIN quit -#CLOSE_WIN {encode} quit 4 -#ctrl+w quit -#E cycle edition # switch edition -#l ab-loop # set/clear A-B loop points -#L cycle-values loop-file "inf" "no" # toggle infinite looping -#ctrl+c quit 4 -#DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always -#ctrl+h cycle-values hwdec "auto-safe" "no" # toggle hardware decoding -#F8 show-text ${playlist} # show the playlist -#F9 show-text ${track-list} # show the list of video, audio and sub tracks - -# -# Legacy bindings (may or may not be removed in the future) -# -#! add chapter -1 # seek to the previous chapter -#@ add chapter 1 # seek to the next chapter - -# -# Not assigned by default -# (not an exhaustive list of unbound commands) -# - -# ? cycle sub-forced-events-only # display only DVD/PGS forced subtitle events -# ? stop # stop playback (quit or enter idle mode) diff --git a/ansible/roles/mpv/files/mpv/mpv.conf b/ansible/roles/mpv/files/mpv/mpv.conf deleted file mode 100644 index e2cbfeb..0000000 --- a/ansible/roles/mpv/files/mpv/mpv.conf +++ /dev/null @@ -1,143 +0,0 @@ -# -# Example mpv configuration file -# -# Warning: -# -# The commented example options usually do _not_ set the default values. Call -# mpv with --list-options to see the default values for most options. There is -# no builtin or example mpv.conf with all the defaults. -# -# -# Configuration files are read system-wide from /usr/local/etc/mpv.conf -# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override -# system-wide settings, all of which are overridden by the command line. -# -# Configuration file settings and the command line options use the same -# underlying mechanisms. Most options can be put into the configuration file -# by dropping the preceding '--'. See the man page for a complete list of -# options. -# -# Lines starting with '#' are comments and are ignored. -# -# See the CONFIGURATION FILES section in the man page -# for a detailed description of the syntax. -# -# Profiles should be placed at the bottom of the configuration file to ensure -# that settings wanted as defaults are not restricted to specific profiles. - -################## -# video settings # -################## - -# Start in fullscreen mode by default. -fs=yes - -# 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 -#autofit-larger=90%x90% - -# 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 fast video rendering preset (for --vo= only) -# Recommended for mobile devices or older hardware with limited processing power -#profile=fast - -# Specify high quality video rendering preset (for --vo= only) -# Offers superior image fidelity and visual quality for an enhanced viewing -# experience on capable hardware -#profile=high-quality - -# 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 - -################## -# audio settings # -################## - -# 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 - -################## -# other settings # -################## - -# 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" - -# cache settings -# -# Use a large seekable RAM cache even for local input. -#cache=yes -# -# Use extra large RAM cache (needs cache=yes to make it useful). -#demuxer-max-bytes=500M -#demuxer-max-back-bytes=100M -# -# Disable the behavior that the player will pause if the cache goes below a -# certain fill size. -#cache-pause=no -# -# Store cache payload on the hard disk instead of in RAM. (This may negatively -# impact performance unless used for slow input such as network.) -#cache-dir=~/.cache/ -#cache-on-disk=yes - -# Display English subtitles if available. -slang=fr,en - -# Play Finnish audio if available, fall back to English otherwise. -alang=fr,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 - -# You can also include other configuration files. -#include=/path/to/the/file/you/want/to/include - -############ -# Profiles # -############ - -# The options declared as part of profiles override global default settings, -# but only take effect when the profile is active. - -# The following profile can be enabled on the command line with: --profile=eye-cancer - -#[eye-cancer] -#sharpen=5 diff --git a/ansible/roles/mpv/tasks/main.yml b/ansible/roles/mpv/tasks/main.yml deleted file mode 100644 index 3616072..0000000 --- a/ansible/roles/mpv/tasks/main.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -- name: Install MPV (video player) - become: true - pacman: - name: mpv - state: present -- name: Synchronizes the configuration of MPV for the unprivileged user - synchronize: - src: mpv - dest: /$HOME/.config - delete: true -- name: Synchronizes the configuration of MPV for the root user - become: true - synchronize: - src: mpv - dest: /root/.config - delete: true