diff options
| author | JL2210 <larrowe.semaj11@gmail.com> | 2024-08-19 09:02:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 14:02:09 +0100 |
| commit | 01e3da4d51927427860368c88a523f47c479b710 (patch) | |
| tree | d9abdfee09a03657c74d9fc286fb68f2469d1847 /example | |
| parent | 33015546c62a7b73793d62983a84b097362cec1a (diff) | |
examples: more systemd examples (#7409)
These allow launching hyprland with a systemd service. They provide
graphical-session.target which allows enabling services such as the
ones for Waybar and Mako.
Diffstat (limited to 'example')
| -rw-r--r-- | example/hyprland-session.service | 14 | ||||
| -rw-r--r-- | example/hyprland-systemd.desktop | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/example/hyprland-session.service b/example/hyprland-session.service new file mode 100644 index 00000000..7d33f5b3 --- /dev/null +++ b/example/hyprland-session.service @@ -0,0 +1,14 @@ +[Unit] +Description=Hyprland - Tiling compositor with the looks +Documentation=man:Hyprland(1) +BindsTo=graphical-session.target +Before=graphical-session.target +Wants=graphical-session-pre.target +After=graphical-session-pre.target + +[Service] +Type=notify +ExecStart=/usr/bin/Hyprland +ExecStop=/usr/bin/hyprctl dispatch exit +Restart=on-failure +Slice=session.slice diff --git a/example/hyprland-systemd.desktop b/example/hyprland-systemd.desktop new file mode 100644 index 00000000..b36a87b2 --- /dev/null +++ b/example/hyprland-systemd.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Hyprland +Comment=An intelligent dynamic tiling Wayland compositor +Exec=systemctl --user start --wait hyprland-session +Type=Application |
