Add mpv setup

This commit is contained in:
Sonny Bakker 2020-11-29 17:07:16 +01:00
parent 2105119e2e
commit e64c4a9879
4 changed files with 21 additions and 2 deletions

View file

@ -28,7 +28,7 @@
# - pacman setup depending on platform (see include section for common options)
# - laptop power saving configuration
- include_tasks: mpv.yml # TODO
- include_tasks: mpv.yml
- include_tasks: mpd.yml # TODO
- include_tasks: nfs.yml # TODO
- include_tasks: postgres.yml # TODO

View file

@ -0,0 +1,20 @@
- name: create configuration directory
file:
path: "{{ ansible_env.HOME }}/.config/mpv"
state: directory
mode: "0700"
- name: copy configuration files
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "0644"
loop:
- {
src: "mpv/input.j2",
dest: "{{ ansible_env.HOME }}/.config/mpv/input.conf",
}
- {
src: "mpv/config.j2",
dest: "{{ ansible_env.HOME }}/.config/mpv/mpv.conf",
}

View file

@ -25,4 +25,3 @@ j cycle sub # cycle through subtitles
f cycle fullscreen # toggle fullscreen
s screenshot # take a screenshot
S screenshot video # ...without subtitles