sway: fix systemd variables
This commit is contained in:
parent
b361e7f352
commit
ba18c4944b
|
@ -38,6 +38,16 @@ let
|
|||
systemctl --user start swayidle.service
|
||||
fi
|
||||
'';
|
||||
dbus-sway-environment = pkgs.writeTextFile {
|
||||
name = "dbus-sway-environment";
|
||||
destination = "/bin/dbus-sway-environment";
|
||||
executable = true;
|
||||
text = ''
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||
'';
|
||||
};
|
||||
in {
|
||||
config = {
|
||||
wayland.windowManager.sway = let
|
||||
|
@ -311,6 +321,7 @@ in {
|
|||
};
|
||||
extraConfig = ''
|
||||
for_window [title=.*] inhibit_idle fullscreen
|
||||
exec ${dbus-sway-environment}/bin/dbus-sway-environment
|
||||
'';
|
||||
};
|
||||
services.swayidle = {
|
||||
|
|
Loading…
Reference in a new issue