diff --git a/salt/media/README.md b/salt/media/README.md index 7e79169..fe54d3e 100644 --- a/salt/media/README.md +++ b/salt/media/README.md @@ -43,12 +43,7 @@ automatically running scripts saved in the home directory. You are open to forward files from the "media" qube to "disp-media" by running `xdg-open /path/file` or more explicitly, `qvm-open-in-dvm /path/file`. -To get a decent performance with `mpv`, you will need to configure it in -`/etc/mpv/mpv.conf`: -```cfg -vo=x11 -profile=sw-fast -``` +You can personalize `mpv` by editing `$XDG_CONFIG_HOME/mpv/mpv.conf`. ## Credits diff --git a/salt/media/files/browser/mpv.conf b/salt/media/files/browser/mpv.conf new file mode 100644 index 0000000..d662e89 --- /dev/null +++ b/salt/media/files/browser/mpv.conf @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. +# +# SPDX-License-Identifier: CC0-1.0 + +vo=x11 +profile=sw-fast diff --git a/salt/media/install.sls b/salt/media/install.sls index c26317a..c03791a 100644 --- a/salt/media/install.sls +++ b/salt/media/install.sls @@ -43,6 +43,15 @@ include: - group: root - makedirs: True +"{{ slsdotpath }}-etc-mpv.conf": + file.managed: + - name: /etc/mpv/mpv.conf + - source: salt://{{ slsdotpath }}/files/browser/mpv.conf + - mode: '0644' + - user: root + - group: root + - makedirs: True + "{{ slsdotpath }}-idle-trimleness": file.replace: - name: /usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py