diff --git a/flake.nix b/flake.nix index c18f8f0..46a0f23 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,7 @@ "steam" "steam-unwrapped" "stm32cubemx" + "obsidian" ]; }; }; diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 590d1cb..7f10384 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -55,6 +55,7 @@ in { ripgrep-all stm32cubemx flatpak + obsidian ]; }; } diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix index b5654e8..45c5b09 100644 --- a/modules/home/sway/default.nix +++ b/modules/home/sway/default.nix @@ -151,6 +151,7 @@ in { "${modifier}+2" = "workspace term"; "${modifier}+3" = "workspace msg"; "${modifier}+4" = "workspace music"; + "${modifier}+o" = "workspace obsidian"; "${modifier}+Shift+1" = "move container to workspace main"; "${modifier}+Shift+2" = "move container to workspace term"; "${modifier}+Shift+3" = "move container to workspace msg"; @@ -185,6 +186,7 @@ in { {app_id = "Element";} ]; "music" = [{app_id = "org.rncbc.qpwgraph";}]; + "obsidian" = [{app_id = "obsidian";}]; }; bars = []; @@ -207,6 +209,7 @@ in { {command = "${pkgs.wezterm}/bin/wezterm start --class start-terminal";} {command = "${pkgs.networkmanagerapplet}/bin/nm-applet";} {command = "${pkgs.firefox}/bin/firefox";} + {command = "${pkgs.obsidian}/bin/obsidian";} ] ++ lib.optionals cfg.laptop [ {command = "${pkgs.squeekboard}/bin/squeekboard";} @@ -242,6 +245,10 @@ in { workspace = "5"; output = ["DP-3" "DP-4" "DP-6" "HDMI-A-1" "eDP-1"]; } + { + workspace = "obsidian"; + output = ["eDP-1"]; + } ]; floating.criteria = [