Skip to content

Commit

Permalink
systemd/hyprland-session: add OnFailure and OnSuccess commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Nov 3, 2024
1 parent 2c63c1e commit d78bc75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions systemd/hyprland-session.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ Type=notify
ExecStart=@BINDIR@/Hyprland
ExecStop=@BINDIR@/hyprctl dispatch exit
ExecStopPost=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
OnFailure=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
OnSuccess=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
Restart=on-failure
Slice=session.slice

0 comments on commit d78bc75

Please sign in to comment.