-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to UWSM to automatically manage systemd session. Many services wrongfully require `graphical-session-pre.target` while also requiring WAYLAND_DISPLAY to work. Will need to change this in HM. Part 2 will encompass switching from run-as-service (see home/terminal/programs/transient-services) to `uwsm app` or some [other helper](https://github.com/Vladimir-csp/app2unit).
- Loading branch information
Showing
7 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
{lib, ...}: { | ||
services.kdeconnect = { | ||
enable = true; | ||
indicator = true; | ||
}; | ||
|
||
systemd.user.services = { | ||
kdeconnect.Unit.After = lib.mkForce ["graphical-session.target"]; | ||
kdeconnect-indicator.Unit.After = lib.mkForce ["graphical-session.target"]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,6 @@ in { | |
]; | ||
}; | ||
}; | ||
|
||
systemd.user.services.hypridle.Unit.After = lib.mkForce "graphical-session.target"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For Hyprland this may not be needed if Hyprland itself puts env vars along with
WAYLAND_DESKTOP
into systemd activation environment. It did in 0.41, but does not in 0.44.1. (related? hyprwm/Hyprland#8204).Anyway, it does not hurt to have this. Better safe than sorry.