From d9bbfff1205bc4ef395ffc14912949b47fd5049a Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 1 Aug 2026 20:30:16 +0100 Subject: [PATCH] fixed i3 --- modules/features/i3/config | 13 ++++++++++++- modules/features/i3/default.nix | 24 ++++++++++++++++-------- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/modules/features/i3/config b/modules/features/i3/config index c84e601..17aff20 100644 --- a/modules/features/i3/config +++ b/modules/features/i3/config @@ -2,7 +2,7 @@ set $mod Mod4 set $term kitty set $menu dmenu_run -exec_always --no-startup-id xrandr --output DP-1 --mode 1920x1080 --rate 60 --pos 0x0 --rotate normal --output DP-2 --mode 1920x1080 --rate 60 --pos 1920x0 --rotate normal --output HDMI-A-1 --mode 1920x1080 --rate 60 --pos -1920x0 --rotate normal +exec --no-startup-id xrandr --output HDMI-1 --mode 1920x1080 --rate 60 --pos -1920x0 --output DP-1 --mode 1920x1080 --rate 60 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 60 --pos 1920x0 font pango:FiraMono Nerd Font 10 @@ -58,3 +58,14 @@ bindsym $mod+Shift+p move container to workspace number 10 # Logout menu bindsym $mod+Shift+a exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# Reload +bindsym $mod+Shift+m reload + +# Drag windows with titlebar +tiling_drag modifier titlebar + +# Bar +bar { + status_command i3status +} diff --git a/modules/features/i3/default.nix b/modules/features/i3/default.nix index 9ee52db..5551d1a 100644 --- a/modules/features/i3/default.nix +++ b/modules/features/i3/default.nix @@ -1,5 +1,4 @@ { - self, inputs, moduleWithSystem, ... @@ -7,7 +6,6 @@ flake.nixosModules.i3 = moduleWithSystem ({ pkgs, self', - inputs', ... }: { services.xserver = { @@ -20,18 +18,28 @@ windowManager.i3 = { enable = true; package = self'.packages.i3; - extraPackages = with pkgs; [ - dmenu - i3status - xinit - ]; + extraPackages = with pkgs; + [ + dmenu + i3status + xinit + ]; }; }; }); - perSystem = {pkgs, ...}: { + perSystem = {pkgs, self', ...}: { packages.i3 = inputs.wrappers.lib.wrapPackage ({...}: { inherit pkgs; package = pkgs.i3; + runtimePkgs = with pkgs; + [ + xrandr + firefox + ] + ++ (with self'.packages; [ + kitty + nemo + ]); flags = { "-c" = ./config; };