feat: enhance mpv performance

Fixes: https://github.com/ben-grande/qusal/issues/19
This commit is contained in:
Ben Grande 2024-02-23 20:48:49 +01:00
parent 766a430ba8
commit d984da54a0
3 changed files with 16 additions and 6 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0
vo=x11
profile=sw-fast

View File

@ -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