summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-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