Add user systemd services (sway, redshift, nm-applet...)

This commit is contained in:
Vladan Popovic 2021-06-17 09:43:23 +02:00
parent 284dd752dc
commit 145b8ddcd3
11 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Firefox nightly
PartOf=graphical-session.target
[Service]
Type=exec
ExecStart=/opt/firefox/firefox
[Install]
WantedBy=graphical-session.target

View File

@ -0,0 +1,15 @@
[Unit]
Description=Lightweight Wayland notification daemon
Documentation=man:mako(1)
PartOf=sway-session.target
After=sway-session.target
[Service]
Type=dbus
BusName=org.freedesktop.Notifications
ExecCondition=/bin/sh -c '[ -n "$WAYLAND_DISPLAY" ]'
ExecStart=/usr/bin/mako
ExecReload=/usr/bin/makoctl reload
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=network monitor and control GUI applet
Documentation=man:nm-applet(1)
PartOf=wayland-session.target
After=wayland-session.target
# requires nm-applet compiled with -D appindicator=yes
[Service]
Type=dbus
BusName=org.freedesktop.network-manager-applet
ExecStart=/usr/bin/nm-applet --indicator
[Install]
WantedBy=wayland-session.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=Adds communication between KDE and your smartphone
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=dbus
BusName=org.kde.kdeconnect
ExecStart=/usr/lib/kdeconnectd
[Install]
WantedBy=graphical-session.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=Scream IVSHMEM pulse receiver
After=pulseaudio.service
Wants=pulseaudio.service
[Service]
Type=simple
ExecStartPre=/usr/bin/truncate -s 0 /dev/shm/scream-ivshmem
ExecStartPre=/usr/bin/dd if=/dev/zero of=/dev/shm/scream-ivshmem bs=1M count=2
ExecStart=/usr/bin/scream -m /dev/shm/scream-ivshmem
[Install]
WantedBy=default.target

View File

@ -0,0 +1,6 @@
[Unit]
Description=sway compositor session
Documentation=man:systemd.special(7)
BindsTo=graphical-session.target wayland-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=sway - i3-compatible Wayland compositor
Documentation=man:sway(5)
Before=graphical-session.service
Wants=graphical-session-pre.service
After=graphical-session-pre.service
[Service]
Type=simple
EnvironmentFile=-%h/.config/sway/env
ExecStart=/usr/bin/sway
Restart=on-failure
RestartSec=1
TimeoutStopSec=10

View File

@ -0,0 +1,13 @@
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
Documentation=https://github.com/gdamjan/swayidle - fork with sd-notify and autolock
PartOf=graphical-session.target
After=sway-session.target
[Service]
Type=notify
ExecStart=/usr/bin/swayidle -w -l
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Keyboard layout per window
PartOf=graphical-session.target
After=sway-session.target
[Service]
Type=exec
ExecStart=/usr/bin/swaykbdd
[Install]
WantedBy=sway-session.target

View File

@ -0,0 +1,16 @@
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is inspired from systemd's `graphical-session.target`
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Current wayland user session
Documentation=man:systemd.special(7)
Requires=basic.target
RefuseManualStart=yes
StopWhenUnneeded=yes
BindsTo=graphical-session.target

View File

@ -0,0 +1 @@
/home/vladan/.config/systemd/user/nm-applet.service