mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add i3
This commit is contained in:
parent
5a376db0da
commit
97e5f1fe15
2 changed files with 25 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ let
|
||||||
cfg = osConfig.mods.desktop;
|
cfg = osConfig.mods.desktop;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./i3.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./social.nix
|
./social.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
24
modules/home/desktop/i3.nix
Normal file
24
modules/home/desktop/i3.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, lib, config, ... }: {
|
||||||
|
options.mods.i3.enable = lib.mkEnableOption "enables bspwm";
|
||||||
|
|
||||||
|
config = lib.mkIf config.mods.bspwm.enable {
|
||||||
|
programs.rofi.enable = true;
|
||||||
|
|
||||||
|
xsession.windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
terminal = "alacritty";
|
||||||
|
menu = "rofi";
|
||||||
|
|
||||||
|
keybindings = let
|
||||||
|
modifier = config.xsession.windowManager.i3.config.modifier;
|
||||||
|
in lib.mkOptionDefault {
|
||||||
|
"${modifier}+h" = "move left";
|
||||||
|
"${modifier}+j" = "move down";
|
||||||
|
"${modifier}+k" = "move up";
|
||||||
|
"${modifier}+l" = "move right";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue