This commit is contained in:
2026-08-01 20:30:16 +01:00
parent 21fe0c40e9
commit d9bbfff120
2 changed files with 28 additions and 9 deletions

View File

@@ -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
}

View File

@@ -1,5 +1,4 @@
{
self,
inputs,
moduleWithSystem,
...
@@ -7,7 +6,6 @@
flake.nixosModules.i3 = moduleWithSystem ({
pkgs,
self',
inputs',
...
}: {
services.xserver = {
@@ -20,7 +18,8 @@
windowManager.i3 = {
enable = true;
package = self'.packages.i3;
extraPackages = with pkgs; [
extraPackages = with pkgs;
[
dmenu
i3status
xinit
@@ -28,10 +27,19 @@
};
};
});
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;
};