Clone shirenn's configuration
This commit is contained in:
30
roles/multimedia/tasks/main.yml
Normal file
30
roles/multimedia/tasks/main.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
- name: Queries package manager for multimedia installation
|
||||
package:
|
||||
name:
|
||||
- feh
|
||||
- mpv
|
||||
- vlc
|
||||
- zathura
|
||||
- zathura-pdf-poppler
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
become: yes
|
||||
|
||||
- name: Create multimedia folder hierarchy
|
||||
file:
|
||||
path: '.config/{{ item }}'
|
||||
state: directory
|
||||
with_items :
|
||||
- 'mpv/'
|
||||
- 'zathura/'
|
||||
|
||||
- name: Copy multimedia configuration files
|
||||
template:
|
||||
src: '{{ item.src }}'
|
||||
dest: '.config/{{ item.dest }}'
|
||||
with_items:
|
||||
- { src: 'zathurarc.j2', dest: 'zathura/zathurarc' }
|
||||
- { src: 'mpv.conf.j2', dest: 'mpv/mpv.conf' }
|
28
roles/multimedia/templates/mpv.conf.j2
Normal file
28
roles/multimedia/templates/mpv.conf.j2
Normal file
@ -0,0 +1,28 @@
|
||||
##################
|
||||
# video settings #
|
||||
##################
|
||||
|
||||
# force starting with centered window
|
||||
geometry=50%:50%
|
||||
|
||||
# no window title bar
|
||||
no-border
|
||||
|
||||
##################
|
||||
# audio settings #
|
||||
##################
|
||||
|
||||
# Specify pulse audio as audio output
|
||||
ao=pulse
|
||||
|
||||
##################
|
||||
# other settings #
|
||||
##################
|
||||
|
||||
# Display English subtitles if available.
|
||||
slang=fr,en
|
||||
|
||||
# Play Finnish audio if available, fall back to English otherwise.
|
||||
alang=fr,en
|
||||
|
||||
force-window=yes
|
3
roles/multimedia/templates/zathurarc.j2
Normal file
3
roles/multimedia/templates/zathurarc.j2
Normal file
@ -0,0 +1,3 @@
|
||||
set selection-clipboard clipboard
|
||||
set recolor true
|
||||
set recolor-lightcolor "#121212"
|
Reference in New Issue
Block a user