add service that compress mpv screenshots
parent
f6e1e88d82
commit
469bd8cf64
13
config.scm
13
config.scm
|
@ -18,10 +18,12 @@
|
||||||
(gnu packages audio)
|
(gnu packages audio)
|
||||||
(gnu packages librewolf)
|
(gnu packages librewolf)
|
||||||
(gnu packages gdb)
|
(gnu packages gdb)
|
||||||
|
(gnu packages graphics)
|
||||||
(gnu packages java)
|
(gnu packages java)
|
||||||
(gnu packages fcitx5)
|
(gnu packages fcitx5)
|
||||||
(gnu packages ibus)
|
(gnu packages ibus)
|
||||||
(gnu packages gnuzilla)
|
(gnu packages gnuzilla)
|
||||||
|
(gnu services mcron)
|
||||||
(gnu packages haskell)
|
(gnu packages haskell)
|
||||||
(gnu packages ebook)
|
(gnu packages ebook)
|
||||||
(gnu packages lisp-xyz)
|
(gnu packages lisp-xyz)
|
||||||
|
@ -162,8 +164,10 @@ KERNEL==\"xpad\", SUBSYSTEM==\"drivers\", ACTION==\"add\", ATTR{new_id}=\"2dc8 3
|
||||||
ibus
|
ibus
|
||||||
dconf
|
dconf
|
||||||
gimp
|
gimp
|
||||||
|
blender
|
||||||
gimp-resynthesizer
|
gimp-resynthesizer
|
||||||
wmctrl
|
wmctrl
|
||||||
|
libwebp
|
||||||
libreoffice
|
libreoffice
|
||||||
librewolf
|
librewolf
|
||||||
;; audio
|
;; audio
|
||||||
|
@ -299,6 +303,15 @@ KERNEL==\"xpad\", SUBSYSTEM==\"drivers\", ACTION==\"add\", ATTR{new_id}=\"2dc8 3
|
||||||
(set-xorg-configuration
|
(set-xorg-configuration
|
||||||
(xorg-configuration (keyboard-layout keyboard-layout)))
|
(xorg-configuration (keyboard-layout keyboard-layout)))
|
||||||
(udev-rules-service '8bitdo %8bitdo-udev-rules)
|
(udev-rules-service '8bitdo %8bitdo-udev-rules)
|
||||||
|
|
||||||
|
|
||||||
|
#| Compress my mpv screenshots periodically |#
|
||||||
|
(service mcron-service-type
|
||||||
|
(mcron-configuration
|
||||||
|
(jobs (list #~(job "0 14 * * *"
|
||||||
|
"find /mnt/Data/mpv-screenshots/ -type f \\( -iname '.png' -o -iname '.jpg' \\) -exec sh -c 'cwebp -q 80 \"$0\" -o \"${0%.*}.webp\" && rm \"$0\"' {} \\;")))))
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
%desktop-services)
|
%desktop-services)
|
||||||
|
|
Loading…
Reference in New Issue