From 3a451c7d9c68f1ab1fb4958927cf848f93850738 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:17:12 +0200 Subject: [PATCH] feat: add autostart and key bindings --- home-manager/sway/default.nix | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 223f0f2..b86c8fd 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -79,10 +79,32 @@ in }]; menu = "${pkgs.fuzzel}/bin/fuzzel"; - }; - extraConfig = '' - ''; + keybindings = + let + modifier = config.wayland.windowManager.sway.config.modifier; + in + lib.mkOptionDefault { + "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; + }; + + assigns = { + "6" = [{ class = "^\.zoom $"; }]; + }; + + startup = [ + { command = "keepassxc"; } + { command = "nextcloud"; } + { command = "swaymsg 'workspace 1"; } + { command = "kitty"; } + { command = "swaymsg 'workspace 2"; } + { command = "element-desktop"; } + { command = "swaymsg 'workspace 4"; } + { command = "thunderbird"; } + { command = "swaymsg 'workspace 5"; } + { command = "firefox"; } + ]; + }; }; }