From 75baf55d5bfa175cc0edc3d5321b6136eab69ea2 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sun, 8 Sep 2024 14:06:07 -0700 Subject: [PATCH] Setup sway config --- home/home-default.nix | 7 ++++--- home/modules/window_managers/i3/default.nix | 2 ++ home/modules/window_managers/sway/default.nix | 12 ++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 home/modules/window_managers/sway/default.nix diff --git a/home/home-default.nix b/home/home-default.nix index 7723c9c..fa6fd65 100644 --- a/home/home-default.nix +++ b/home/home-default.nix @@ -106,9 +106,10 @@ in nixpkgs.config.allowUnfree = true; imports = [ - ./modules/applications/emacs/default.nix - ./modules/games/lutris/default.nix - ./modules/window_managers/i3/default.nix + ./modules/applications/emacs + ./modules/games/lutris + ./modules/window_managers/i3 + ./modules/window_managers/sway ]; programs.bash.enable = true; diff --git a/home/modules/window_managers/i3/default.nix b/home/modules/window_managers/i3/default.nix index 7e15cdc..61d6661 100644 --- a/home/modules/window_managers/i3/default.nix +++ b/home/modules/window_managers/i3/default.nix @@ -5,6 +5,8 @@ enable = true; config = { modifier = "Mod4"; + terminal = "kitty"; + defaultWorkspace = "workspace number 1"; }; }; } diff --git a/home/modules/window_managers/sway/default.nix b/home/modules/window_managers/sway/default.nix new file mode 100644 index 0000000..004df3d --- /dev/null +++ b/home/modules/window_managers/sway/default.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: + +{ + wayland.windowManager.sway = { + enable = true; + config = { + modifier = "Mod4"; + terminal = "kitty"; + defaultWorkspace = "workspace number 1"; + }; + }; +}