Hopefully fix systemd services
This commit is contained in:
parent
0a17179443
commit
71adb46aab
|
@ -48,8 +48,8 @@ in with lib; {
|
|||
config.home.sessionVariables))}
|
||||
|
||||
# Setup missing XDG variables
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
# env = XDG_SESSION_TYPE,wayland
|
||||
# env = XDG_SESSION_DESKTOP,Hyprland
|
||||
|
||||
# Make applications respect wayland
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
|
@ -203,8 +203,21 @@ in with lib; {
|
|||
bindr = CAPS, caps_lock, exec, swayosd --caps-lock
|
||||
|
||||
# systemd integration
|
||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && sleep 2 && systemctl --user start hyprland-session.target
|
||||
|
||||
exec-once=dbus-update-activation-environment --systemd ${
|
||||
lib.concatStringsSep "" ([
|
||||
"DISPLAY"
|
||||
"WAYLAND_DISPLAY"
|
||||
"HYPRLAND_INSTANCE_SIGNATURE"
|
||||
"XDG_CURRENT_DESKTOP"
|
||||
"XDG_SESSION_TYPE"
|
||||
"XDG_SESSION_DESKTOP"
|
||||
"XDG_DESKTOP_PORTAL_DIR"
|
||||
"GDK_BACKEND"
|
||||
"QT_QPA_PLATFORM"
|
||||
"SDL_VIDEODRIVER"
|
||||
"CLUTTER_BACKEND"
|
||||
] ++ builtins.attrNames config.home.sessionVariables)
|
||||
} && sleep 2 && systemctl --user start hyprland-session.target
|
||||
|
||||
## Window rules
|
||||
|
||||
|
|
Loading…
Reference in New Issue