nix-config/i3.nix
2022-10-05 19:42:30 -07:00

34 lines
734 B
Nix

{ pkgs, lib, ... }:
let
mod = "Mod4";
in {
xsession.windowManager.i3 = {
enable = true;
config = {
modifier = mod;
gaps.inner = 12;
startup = [
{
command = "systemctl --user restart polybar";
always = true;
notification = false;
}
];
keybindings = lib.mkOptionDefault {
"${mod}+Return" = "exec kitty";
"Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power";
};
keycodebindings = {
"133" = "--release exec rofi -show run -theme";
};
window.commands = [
{
command = "border pixel 0";
criteria = { class = "^.*"; };
}
];
bars = [];
};
};
}