diff --git a/overlays/sway.nix b/overlays/sway.nix index ad34f82..27fffc1 100644 --- a/overlays/sway.nix +++ b/overlays/sway.nix @@ -10,6 +10,7 @@ destination = "/bin/dbus-sway-environment"; executable = true; text = '' + systemctl --user import-environment 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 diff --git a/user/chat.nix b/user/chat.nix index 985bfcb..8864126 100644 --- a/user/chat.nix +++ b/user/chat.nix @@ -16,9 +16,10 @@ Unit = { Description = "Discord Internet voice chat"; PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session.target" ]; + After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ]; }; Service = { + ExecStartPre = "/usr/bin/env sleep 1s"; ExecStart = "${pkgs.webcord}/bin/webcord"; Restart = "on-failure"; }; @@ -28,10 +29,10 @@ Unit = { Description = "Telegram Internet chat"; PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session.target" "pipewire-pulse.service" ]; + After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ]; }; Service = { - ExecStart = "${pkgs.sway}/bin/swaymsg exec -- ${pkgs.tdesktop}/bin/telegram-desktop"; + ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop"; Restart = "on-failure"; }; Install = { WantedBy = [ "sway-session.target" ]; };