aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJL2210 <[email protected]>2024-08-19 09:02:09 -0400
committerGitHub <[email protected]>2024-08-19 14:02:09 +0100
commit01e3da4d51927427860368c88a523f47c479b710 (patch)
treed9abdfee09a03657c74d9fc286fb68f2469d1847
parent33015546c62a7b73793d62983a84b097362cec1a (diff)
downloadHyprland-01e3da4d51927427860368c88a523f47c479b710.tar.gz
Hyprland-01e3da4d51927427860368c88a523f47c479b710.zip
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.
-rw-r--r--example/hyprland-session.service14
-rw-r--r--example/hyprland-systemd.desktop5
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