diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-05 12:35:46 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-05 12:35:46 +0100 |
| commit | 6c91a8f361b2e5b05a6bfd809bb1e19454e1eea6 (patch) | |
| tree | c517b1b5c367ef1c6937d124b186d57a8b12d270 /modules/home/i3wm | |
| parent | 3a88f3e7fdd9aa41e44f4407d21679b9116155d5 (diff) | |
i got no clue what i did
Diffstat (limited to 'modules/home/i3wm')
| -rw-r--r-- | modules/home/i3wm/nord-blue/alacritty.nix | 4 | ||||
| -rw-r--r-- | modules/home/i3wm/nord-blue/i3.nix | 40 | ||||
| -rw-r--r-- | modules/home/i3wm/nord-blue/variables.nix | 13 |
3 files changed, 29 insertions, 28 deletions
diff --git a/modules/home/i3wm/nord-blue/alacritty.nix b/modules/home/i3wm/nord-blue/alacritty.nix index beccbd9..1f6aa49 100644 --- a/modules/home/i3wm/nord-blue/alacritty.nix +++ b/modules/home/i3wm/nord-blue/alacritty.nix @@ -3,5 +3,5 @@ { programs.alacritty = { enable = true; - } -}
\ No newline at end of file + }; +} diff --git a/modules/home/i3wm/nord-blue/i3.nix b/modules/home/i3wm/nord-blue/i3.nix index e3a3e17..e6dd3a4 100644 --- a/modules/home/i3wm/nord-blue/i3.nix +++ b/modules/home/i3wm/nord-blue/i3.nix @@ -1,23 +1,27 @@ { pkgs, config, lib, ... }: let - vars = import ./variables.nix {inherit ...; }; + vars = import ./variables.nix; + mod = "Mod4"; in { - packages = with pkgs; [ - feh # Wallpaper - ]; - programs = { + xsession.windowManager = { i3 = { enable = true; config = { - modifier = "Mod4"; + modifier = mod; + + startup = [ + { command = "sh -c 'feh --bg-fill ${vars.wallpaper}'"; } + ]; keybindings = lib.mkOptionDefault { "${mod}+Enter" = "exec ${pkgs.alacritty}/bin/alacritty"; # Lanuch alacritty as a terminal "${mod}+m" = "exec ${pkgs.dmenu}/bin/dmenu"; # Launch dmenu (app launcher) "${mod}+q" = "kill"; # Close an app (kill the process) - "${mod}+Alt+l" = "exec sh -c '${pkgs.lock-screen}/bin/lock-screen' ${wallpaper}"; + "${mod}+Alt+l" = "exec sh -c 'lock-screen ${vars.wallpaper}'"; # Lock screen + "${mod}+Shift+r" = "restart"; + "${mod}+Ctrl+Shift+e" = "exec sh -c 'i3-msg exit'"; # === FOCUS === # @@ -49,14 +53,14 @@ in "${mod}+Shift+Right" = "focus right"; }; }; - - extraPackages = with pkgs; [ - dmenu # App launcher - i3-lock # Lock screen - imagemagick # Handle wallpaper resizing for i3-lock - polybar # Status bar - alacritty # Terminal Emulator - ]; - } - } -}
\ No newline at end of file + }; + }; + home.packages = with pkgs; [ + dmenu # App launcher + i3lock # Lock screen + imagemagick # Handle wallpaper resizing for i3-lock + polybar # Status bar + alacritty # Terminal Emulator + feh # Wallpaper utility + ]; +} diff --git a/modules/home/i3wm/nord-blue/variables.nix b/modules/home/i3wm/nord-blue/variables.nix index 0a5d027..b023e75 100644 --- a/modules/home/i3wm/nord-blue/variables.nix +++ b/modules/home/i3wm/nord-blue/variables.nix @@ -1,12 +1,9 @@ -{ ... }: - { colors = { - main = #2D333F - + main = "#2D333F"; + # Add other colours }; - wallpaper = { - wave = import ./wallpapers/wave-minimal.jpeg + + wallpaper = "~/Documents/4. Configuration/modules/home/i3wm/nord-blue/wallpapers/wave-minimal.png # Add other wallpapers eventually - } -}
\ No newline at end of file +} |
