aboutsummaryrefslogtreecommitdiff
path: root/modules/home
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-05 12:35:46 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-05 12:35:46 +0100
commit6c91a8f361b2e5b05a6bfd809bb1e19454e1eea6 (patch)
treec517b1b5c367ef1c6937d124b186d57a8b12d270 /modules/home
parent3a88f3e7fdd9aa41e44f4407d21679b9116155d5 (diff)
i got no clue what i did
Diffstat (limited to 'modules/home')
-rw-r--r--modules/home/default.nix2
-rw-r--r--modules/home/i3wm/nord-blue/alacritty.nix4
-rw-r--r--modules/home/i3wm/nord-blue/i3.nix40
-rw-r--r--modules/home/i3wm/nord-blue/variables.nix13
4 files changed, 30 insertions, 29 deletions
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
+}