Move Sway to systemd
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
7b5b1019cc
commit
2c3d93ebee
26 changed files with 264 additions and 131 deletions
10
home/.config/systemd/user/autorotate.service
Normal file
10
home/.config/systemd/user/autorotate.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Script for automatically rotating screen
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=%h/Scripts/autorotate.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/autotiling.service
Normal file
10
home/.config/systemd/user/autotiling.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Script for sway and i3 to automatically switch the horizontal / vertical window split orientation
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/autotiling
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -4,7 +4,7 @@ PartOf=graphical-session.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/clipman -d
|
||||
ExecStart=/usr/bin/wl-paste -t text --watch clipman store
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
||||
|
|
10
home/.config/systemd/user/gnome-keyring.service
Normal file
10
home/.config/systemd/user/gnome-keyring.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Stores passwords and encryption keys
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/gnome-keyring-daemon --start --components=secrets
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/kdeconnect-indicator.service
Normal file
10
home/.config/systemd/user/kdeconnect-indicator.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Indicator and UI for KDE Connect
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/kdeconnect-indicator
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/kdeconnectd.service
Normal file
10
home/.config/systemd/user/kdeconnectd.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=KDE Connect daemon
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/kdeconnectd
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/mpDris2.service
Normal file
10
home/.config/systemd/user/mpDris2.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=MPRIS2 support for MPD
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/mpDris2
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/polkit-gnome.service
Normal file
10
home/.config/systemd/user/polkit-gnome.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Legacy polkit authentication agent for GNOME
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/redshift-gtk-service
Normal file
10
home/.config/systemd/user/redshift-gtk-service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Adjusts the color temperature of your screen according to your surroundings.
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/redshift-gtk -m wayland
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -1,17 +1,31 @@
|
|||
[Unit]
|
||||
Description=sway - SirCmpwn's Wayland window manager
|
||||
Documentation=man:sway(5)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-%h/.config/sway/env
|
||||
ExecStart=/usr/bin/sway
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
TimeoutStopSec=10
|
||||
ExecStartPre=/usr/bin/chvt %I
|
||||
ExecStart=/usr/bin/dbus-launch --exit-with-session /usr/bin/sway
|
||||
TTYPath=/dev/tty%I
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
PAMName=login
|
||||
User=<user>
|
||||
WorkingDirectory=/home/<user>
|
||||
Environment=XDG_RUNTIME_DIR=/run/user/1000
|
||||
Environment=QT_WAYLAND_FORCE_DPI=100
|
||||
Environment=QT_PLUGIN_PATH=/usr/lib/kde4/plugins/
|
||||
Environment=QT_QPA_PLATFORM=wayland
|
||||
Environment=QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||
Environment=QT_QPA_PLATFORMTHEME=gtk3
|
||||
Environment=QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
||||
Environment=GDK_BACKEND=wayland
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
StandardInput=tty
|
||||
StandardError=journal
|
||||
StandardOutput=journal
|
||||
Nice=-5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=graphical.target
|
||||
Alias=display-manager.service
|
||||
|
|
10
home/.config/systemd/user/telegram-desktop.service
Normal file
10
home/.config/systemd/user/telegram-desktop.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Official Telegram Desktop client
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/telegram-desktop
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/thunderbird.service
Normal file
10
home/.config/systemd/user/thunderbird.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Standalone mail and news reader from mozilla.org
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/thunderbird
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
12
home/.config/systemd/user/wob.service
Normal file
12
home/.config/systemd/user/wob.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=A lightweight overlay volume/backlight/progress/anything bar for Wayland
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/usr/bin/mkfifo /tmp/sway.wob
|
||||
ExecStart=/usr/bin/tail -f /tmp/sway.wob | wob
|
||||
ExecStop=/usr/bin/rm /tmp/sway.wob
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
10
home/.config/systemd/user/ydotoold.service
Normal file
10
home/.config/systemd/user/ydotoold.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Generic command-line automation tool
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/ydotoold
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
Loading…
Add table
Add a link
Reference in a new issue