I3: Difference between revisions
Reformat layout, clean up wording, add links Tags: Mobile edit Mobile web edit Advanced mobile edit |
cleaned up and separated the example code for installing with home-manager into 2 properly-marked file boxes |
||
(3 intermediate revisions by 3 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 67: | Line 63: | ||
[[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 == | |||
=== i3blocks === | === i3blocks === |