mirror of
https://github.com/unman/shaker.git
synced 2025-01-25 22:15:55 -05:00
Multimedia - Handle image files in gpicview.
Correctly handle epub files in viewer.
This commit is contained in:
parent
7e4a574de3
commit
12598f904d
71
multimedia/create_multimedia.sls
Normal file
71
multimedia/create_multimedia.sls
Normal file
@ -0,0 +1,71 @@
|
||||
include:
|
||||
- multimedia.clone
|
||||
|
||||
qvm-present-id:
|
||||
qvm.present:
|
||||
- name: multimedia-dvm
|
||||
- template: template-multimedia
|
||||
- label: purple
|
||||
|
||||
qvm-prefs-id:
|
||||
qvm.prefs:
|
||||
- name: multimedia-dvm
|
||||
- netvm: none
|
||||
- memory: 300
|
||||
- maxmem: 800
|
||||
- vcpus: 2
|
||||
- template_for_dispvms: True
|
||||
- include_in_backups: false
|
||||
|
||||
qvm-features-id:
|
||||
qvm.features:
|
||||
- name: multimedia-dvm
|
||||
- disable:
|
||||
- service.cups
|
||||
- service.cups-browsed
|
||||
- service.tinyproxy
|
||||
|
||||
|
||||
multimedia:
|
||||
qvm.present:
|
||||
- name: multimedia
|
||||
- template: multimedia-dvm
|
||||
- class: DispVM
|
||||
- netvm: none
|
||||
- label: purple
|
||||
|
||||
multimedia-prefs:
|
||||
qvm.prefs:
|
||||
- name: multimedia
|
||||
- autostart: false
|
||||
- include_in_backups: false
|
||||
- netvm: none
|
||||
|
||||
multimedia-features:
|
||||
qvm.features:
|
||||
- name: multimedia
|
||||
- appemenus-dispvm: True
|
||||
- disable:
|
||||
- service.cups
|
||||
|
||||
media-present-id:
|
||||
qvm.present:
|
||||
- name: media
|
||||
- template: debian-11
|
||||
- label: purple
|
||||
|
||||
media-prefs:
|
||||
qvm.prefs:
|
||||
- name: media
|
||||
- autostart: false
|
||||
- include_in_backups: true
|
||||
- netvm: none
|
||||
|
||||
'qvm-volume extend media:private 40G' :
|
||||
cmd.run
|
||||
|
||||
|
||||
update_policy_file:
|
||||
file.prepend:
|
||||
- name: /etc/qubes/policy.d/30-user.policy
|
||||
- text: qubes.OpenInVM * media @dispvm allow target=multimedia
|
@ -22,8 +22,11 @@ vlc.packages:
|
||||
other.packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- qubes-app-shutdown-idle
|
||||
- audacious
|
||||
- calibre
|
||||
- gpicview
|
||||
- xpdf
|
||||
|
||||
/usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0:
|
||||
file.managed:
|
||||
@ -32,6 +35,86 @@ other.packages:
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
/etc/skel/.config/mimeapps.list:
|
||||
file.managed:
|
||||
- user: root
|
||||
- group: root
|
||||
- makedirs: True
|
||||
|
||||
mimeapps:
|
||||
file.append:
|
||||
- name: /etc/skel/.config/mimeapps.list
|
||||
- text: |
|
||||
[Default Applications]
|
||||
application/pdf=xpdf.desktop
|
||||
application/epub+zip=calibre-ebook-viewer.desktop
|
||||
application/epub=calibre-ebook-viewer.desktop
|
||||
image/avs=gpicview.desktop
|
||||
image/bie=gpicview.desktop
|
||||
image/bmp=gpicview.desktop
|
||||
image/cmyk=gpicview.desktop
|
||||
image/dcx=gpicview.desktop
|
||||
image/eps=gpicview.desktop
|
||||
image/fax=gpicview.desktop
|
||||
image/fits=gpicview.desktop
|
||||
image/g3fax=gpicview.desktop
|
||||
image/gif=gpicview.desktop
|
||||
image/gray=gpicview.desktop
|
||||
image/jpeg=gpicview.desktop
|
||||
image/miff=gpicview.desktop
|
||||
image/mono=gpicview.desktop
|
||||
image/mtv=gpicview.desktop
|
||||
image/pcd=gpicview.desktop
|
||||
image/pcx=gpicview.desktop
|
||||
image/pdf=gpicview.desktop
|
||||
image/pict=gpicview.desktop
|
||||
image/pjpeg=gpicview.desktop
|
||||
image/png=gpicview.desktop
|
||||
image/ps=gpicview.desktop
|
||||
image/rad=gpicview.desktop
|
||||
image/rgba=gpicview.desktop
|
||||
image/rla=gpicview.desktop
|
||||
image/rle=gpicview.desktop
|
||||
image/sgi=gpicview.desktop
|
||||
image/sun-raster=gpicview.desktop
|
||||
image/svg+xml=gpicview.desktop
|
||||
image/targa=gpicview.desktop
|
||||
image/tiff=gpicview.desktop
|
||||
image/uyvy=gpicview.desktop
|
||||
image/vid=gpicview.desktop
|
||||
image/viff=gpicview.desktop
|
||||
image/vnd.djvu=gpicview.desktop
|
||||
image/vnd.djvu+multipage=gpicview.desktop
|
||||
image/vnd.rn-realpix=gpicview.desktop
|
||||
image/x-bzeps=gpicview.desktop
|
||||
image/x-compressed-xcf=gpicview.desktop
|
||||
image/x-eps=gpicview.desktop
|
||||
image/x-fits=gpicview.desktop
|
||||
image/x-freehand=gpicview.desktop
|
||||
image/x-gimp-gbr=gpicview.desktop
|
||||
image/x-gimp-gih=gpicview.desktop
|
||||
image/x-gimp-pat=gpicview.desktop
|
||||
image/x-gzeps=gpicview.desktop
|
||||
image/x-icon=gpicview.desktop
|
||||
image/x-ms-bmp=gpicview.desktop
|
||||
image/x-pcx=gpicview.desktop
|
||||
image/x-portable-anymap=gpicview.desktop
|
||||
image/x-portable-bitmap=gpicview.desktop
|
||||
image/x-portable-graymap=gpicview.desktop
|
||||
image/x-portable-pixmap=gpicview.desktop
|
||||
image/x-psd=gpicview.desktop
|
||||
image/x-psp=gpicview.desktop
|
||||
image/x-rgb=gpicview.desktop
|
||||
image/x-sgi=gpicview.desktop
|
||||
image/x-tga=gpicview.desktop
|
||||
image/x-wmf=gpicview.desktop
|
||||
image/x-xbitmap=gpicview.desktop
|
||||
image/x-xcf=gpicview.desktop
|
||||
image/x-xcursor=gpicview.desktop
|
||||
image/x-xpixmap=gpicview.desktop
|
||||
image/x-xwindowdump=gpicview.desktop
|
||||
image/yuv=gpicview.desktop
|
||||
|
||||
ln -s /usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0 /usr/lib/x86_64-linux-gnu/libdvdcss.so:
|
||||
cmd.run
|
||||
|
||||
@ -40,3 +123,9 @@ ln -s /usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0 /usr/lib/x86_64-linux-gnu/lib
|
||||
|
||||
apt-get clean:
|
||||
cmd.run
|
||||
|
||||
trim_idleness:
|
||||
file.replace:
|
||||
- name: /usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py
|
||||
- pattern: TIMEOUT_SECONDS = 15 * 60
|
||||
- repl: TIMEOUT_SECONDS = 3 * 60
|
||||
|
Loading…
x
Reference in New Issue
Block a user