diff --git a/profiles/applications/slack.nix b/profiles/applications/slack.nix new file mode 100644 index 0000000..0eaa93e --- /dev/null +++ b/profiles/applications/slack.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: { + home-manager.users.balsoft.wayland.windowManager.sway.config.startup = [{ + command = toString (pkgs.writeShellScript "slack" '' + firefox https://tweag.slack.com & + sleep 10 + swaymsg '[title=Slack.*] move to workspace ' + swaymsg '[title=Slack.*] fullscreen disable' + ''); + }]; +} diff --git a/profiles/workspace/sway/default.nix b/profiles/workspace/sway/default.nix index 76f3a2d..281153f 100755 --- a/profiles/workspace/sway/default.nix +++ b/profiles/workspace/sway/default.nix @@ -93,18 +93,13 @@ in { }; startup = (map (command: { inherit command; }) config.startupApplications) ++ [ - { - command = toString (pkgs.writeShellScript "slack" '' - firefox https://tweag.slack.com & - sleep 10 - swaymsg '[title=Slack.*] move to workspace ' - swaymsg '[title=Slack.*] fullscreen disable' - ''); - } { command = "swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'"; } + { + command = "dbus-update-activation-environment --systemd WAYLAND_DISPLAY GDK_BACKEND"; + } ]; keybindings = let diff --git a/roles/desktop.nix b/roles/desktop.nix index 97addcd..4e3beab 100644 --- a/roles/desktop.nix +++ b/roles/desktop.nix @@ -34,6 +34,7 @@ gtk i3blocks qt + slack kdeconnect light mako