I3: Difference between revisions
remove i3-gaps as i3-gaps has been merged into i3 as of i3 v4.22 (NixOS 25.05 includes i3 v4.24) |
cleaned up and separated the example code for installing with home-manager into 2 properly-marked file boxes |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:i3}} | ||
{{Expansion|there are a lot more [https://search.nixos.org/options/?query=i3 options]}} | {{Expansion|there are a lot more [https://search.nixos.org/options/?query=i3 options]}} | ||
[https://i3wm.org/ i3] is a tiling window manager for [[Xorg|X Window System]]. | [https://i3wm.org/ i3] is a tiling window manager for [[Xorg|X Window System]]. | ||
| Line 34: | Line 34: | ||
=== Using home-manager === | === Using home-manager === | ||
{{file| | {{file|/etc/nixos/configuration.nix|nix| | ||
<nowiki> | <nowiki> | ||
services.xserver = { | services.xserver = { | ||
enable = true; | enable = true; | ||
windowManager.i3.enable = true; | windowManager.i3.enable = true; | ||
}; | |||
services.displayManager.defaultSession = "none+i3"; | |||
</nowiki> | |||
}} | |||
{{file|home.nix|nix| | |||
<nowiki> | |||
xsession.windowManager.i3 = { | |||
enable = true; | |||
config = { | |||
modifier = "Mod4"; | |||
# See home-manager documentation for everything you can add here. | |||
}; | }; | ||
}; | |||
</nowiki> | </nowiki> | ||
}} | }} | ||
| Line 66: | Line 62: | ||
keys. This is what is usually delegated to a desktop manager. To use xfce as a desktop manager on top of i3, see | keys. This is what is usually delegated to a desktop manager. To use xfce as a desktop manager on top of i3, see | ||
[[Xfce#Using_as_a_desktop_manager_and_not_a_window_manager]]. | [[Xfce#Using_as_a_desktop_manager_and_not_a_window_manager]]. | ||
== Common issues == | |||
=== i3lock doesn't recognize my password === | |||
As of nixos 25.05, i3lock is no longer automatically configured to be able to use PAM to check passwords. If you installed i3 through nixos options, this is handled for you, but if you installed it elsewhere, such as through home-manager, then at minimum, you need to set: | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
security.pam.services.i3lock.enable = true; | |||
</nowiki> | |||
}} | |||
== Tips & tricks == | == Tips & tricks == | ||