X1 Carbon Gen 7 Sway Desktop

This commit is contained in:
Vladan Popovic 2021-06-17 00:49:38 +02:00 committed by Vladan Popovic
parent 2f37aae96f
commit f8790aa337
22 changed files with 702 additions and 269 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,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
[Install]
WantedBy=sway-session.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=swaylock - Screen locker for Wayland
Documentation=man:swaylock(1)
[Service]
Type=forking
ExecStart=/usr/bin/swaylock -f
Restart=on-failure
[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