1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Compare commits

..

3 Commits

Author SHA1 Message Date
f16cd95a0f
mimeapps: update GNOME .desktop names
Fixes using eog/evince as default image/pdf viewer applications with
xdg-open/gio open.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:23:18 +01:00
21f7a2b75c
systemd: nm-applet requires NetworkManger to run
Require NetworkManager tmp files before attempting to start nm-applet,
else it will fail to start if NetworkManager is not actually running.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:22:04 +01:00
a912db8044
systemd: add gphoto2-ffmpeg user service
Streams 720p25 video from a gphoto2-compatible camera through ffmpeg
into /dev/video* for use as a generic video/camera device.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:21:01 +01:00
3 changed files with 36 additions and 20 deletions

View File

@ -1,27 +1,27 @@
[Default Applications] [Default Applications]
# eog for images # eog for images
image/bmp=eog.desktop image/bmp=org.gnome.eog.desktop
image/gif=eog.desktop image/gif=org.gnome.eog.desktop
image/jpeg=eog.desktop image/jpeg=org.gnome.eog.desktop
image/jpg=eog.desktop image/jpg=org.gnome.eog.desktop
image/pjpeg=eog.desktop image/pjpeg=org.gnome.eog.desktop
image/png=eog.desktop image/png=org.gnome.eog.desktop
image/svg+xml-compressed=eog.desktop image/svg+xml-compressed=org.gnome.eog.desktop
image/svg+xml=eog.desktop image/svg+xml=org.gnome.eog.desktop
image/tiff=eog.desktop image/tiff=org.gnome.eog.desktop
image/x-bmp=eog.desktop image/x-bmp=org.gnome.eog.desktop
image/x-gray=eog.desktop image/x-gray=org.gnome.eog.desktop
image/x-icb=eog.desktop image/x-icb=org.gnome.eog.desktop
image/x-ico=eog.desktop image/x-ico=org.gnome.eog.desktop
image/x-png=eog.desktop image/x-png=org.gnome.eog.desktop
image/x-portable-anymap=eog.desktop image/x-portable-anymap=org.gnome.eog.desktop
image/x-portable-bitmap=eog.desktop image/x-portable-bitmap=org.gnome.eog.desktop
image/x-portable-graymap=eog.desktop image/x-portable-graymap=org.gnome.eog.desktop
image/x-portable-pixmap=eog.desktop image/x-portable-pixmap=org.gnome.eog.desktop
# evince for pdfs # evince for pdfs
application/pdf=evince.desktop application/pdf=org.gnome.Evince.desktop
# vim for textual files # vim for textual files
application/x-shellscript=vim.desktop application/x-shellscript=vim.desktop
@ -29,7 +29,7 @@ text/english=vim.desktop
text/plain=vim.desktop text/plain=vim.desktop
text/x-makefile=vim.desktop text/x-makefile=vim.desktop
# Chromium for web/html # Firefox for web/html
text/html=firefox.desktop text/html=firefox.desktop
x-scheme-handler/about=firefox.desktop x-scheme-handler/about=firefox.desktop
x-scheme-handler/http=firefox.desktop x-scheme-handler/http=firefox.desktop

View File

@ -0,0 +1,15 @@
[Unit]
Description=GPhoto2 capture with ffmpeg encoding
[Service]
Type=simple
ExecStartPre=gphoto2 --abilities
ExecStart=/bin/sh -c 'exec gphoto2 --set-config /main/capturesettings/continuousaf=1 --set-config /main/capturesettings/focusmode="AI Servo" --set-config /main/imgsettings/whitesbalance=Tungsten --capture-movie --stdout --set-config viewfinder=0 | ffmpeg -i - -f rawvideo -vf "crop=iw:iw*9/16" -pix_fmt yuv420p -threads 0 -s:v 1280x720 -r 25 -f v4l2 /dev/video%i'
ExecStop=/bin/kill $MAINPID
ExecStop=-/usr/bin/gphoto2 --set-config viewfinder=0
Restart=always
RestartSec=5
Slice=app.slice
[Install]
WantedBy=default.target

View File

@ -2,6 +2,7 @@
Description=NetworkManager Applet Description=NetworkManager Applet
After=graphical-session.target NetworkManager.service After=graphical-session.target NetworkManager.service
Requires=graphical-session.target Requires=graphical-session.target
ConditionPathExists=/run/NetworkManager
[Service] [Service]
Type=simple Type=simple