From 6c91a8f361b2e5b05a6bfd809bb1e19454e1eea6 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Thu, 5 Feb 2026 12:35:46 +0100 Subject: i got no clue what i did --- modules/home/default.nix | 2 +- modules/home/i3wm/nord-blue/alacritty.nix | 4 ++-- modules/home/i3wm/nord-blue/i3.nix | 40 +++++++++++++++++-------------- modules/home/i3wm/nord-blue/variables.nix | 13 ++++------ 4 files changed, 30 insertions(+), 29 deletions(-) (limited to 'modules/home') diff --git a/modules/home/default.nix b/modules/home/default.nix index b05750c..aa77672 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -4,6 +4,6 @@ # Home environment orchestrator imports = [ ./i3wm/original/default.nix - ./i3wm/nord-blue/default.nix + #./i3wm/nord-blue/default.nix ]; } 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 +} -- cgit v1.2.3