Add user systemd services (sway, redshift, nm-applet...)
This commit is contained in:
parent
284dd752dc
commit
145b8ddcd3
11 changed files with 125 additions and 0 deletions
10
.config/systemd/user/firefox.service
Normal file
10
.config/systemd/user/firefox.service
Normal 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
|
15
.config/systemd/user/mako.service
Normal file
15
.config/systemd/user/mako.service
Normal 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
|
14
.config/systemd/user/nm-applet.service
Normal file
14
.config/systemd/user/nm-applet.service
Normal 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
|
12
.config/systemd/user/org.kde.kdeconnect.service
Normal file
12
.config/systemd/user/org.kde.kdeconnect.service
Normal 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
|
13
.config/systemd/user/scream-ivshmem-pulse.service
Normal file
13
.config/systemd/user/scream-ivshmem-pulse.service
Normal 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
|
6
.config/systemd/user/sway-session.target
Normal file
6
.config/systemd/user/sway-session.target
Normal 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
|
14
.config/systemd/user/sway.service
Normal file
14
.config/systemd/user/sway.service
Normal 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
|
13
.config/systemd/user/swayidle.service
Normal file
13
.config/systemd/user/swayidle.service
Normal 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
|
11
.config/systemd/user/swaykbdd.service
Normal file
11
.config/systemd/user/swaykbdd.service
Normal 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
|
16
.config/systemd/user/wayland-session.target
Normal file
16
.config/systemd/user/wayland-session.target
Normal 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
|
|
@ -0,0 +1 @@
|
||||||
|
/home/vladan/.config/systemd/user/nm-applet.service
|
Loading…
Add table
Reference in a new issue