From 03b3aaa86a13217d00fee5d3bf68e7643a53ba9e Mon Sep 17 00:00:00 2001 From: eoli3n Date: Mon, 18 May 2020 23:19:00 +0200 Subject: [PATCH] added mpv config for wayland ha --- roles/fish/files/fish/desktop/conf.d/desktop.fish | 1 + roles/mpv/files/mpv.conf | 7 +++++++ roles/mpv/tasks/main.yml | 11 +++++++++++ 3 files changed, 19 insertions(+) create mode 100644 roles/mpv/files/mpv.conf create mode 100644 roles/mpv/tasks/main.yml diff --git a/roles/fish/files/fish/desktop/conf.d/desktop.fish b/roles/fish/files/fish/desktop/conf.d/desktop.fish index 42e46e9..69a8457 100644 --- a/roles/fish/files/fish/desktop/conf.d/desktop.fish +++ b/roles/fish/files/fish/desktop/conf.d/desktop.fish @@ -4,4 +4,5 @@ if test "$hostname" = "osz" set -x fish_user_paths $HOME/bin $HOME/go/bin $HOME/.gem/ruby/2.7.0/bin end +set -gx LIBVA_DRIVER_NAME 'iHD' set -x VAGRANT_DEFAULT_PROVIDER 'libvirt' diff --git a/roles/mpv/files/mpv.conf b/roles/mpv/files/mpv.conf new file mode 100644 index 0000000..342f829 --- /dev/null +++ b/roles/mpv/files/mpv.conf @@ -0,0 +1,7 @@ +gpu-context=wayland +hwdec=vaapi +vo=gpu +ao=pulse +audio-channels=2 +alang=eng,en,anglais,english +slang=fr,fre,french,francais diff --git a/roles/mpv/tasks/main.yml b/roles/mpv/tasks/main.yml new file mode 100644 index 0000000..411132d --- /dev/null +++ b/roles/mpv/tasks/main.yml @@ -0,0 +1,11 @@ +--- + +- name: create mpv config dir + file: + path: ~/.config/mpv + state: directory + +- name: copy mpv config file + copy: + src: mpv.conf + dest: ~/.config/mpv