mostly usable i3 config
This commit is contained in:
parent
8a2a6b4ec5
commit
69954d71ca
|
@ -85,7 +85,7 @@
|
||||||
windowManager.i3 = {
|
windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
i3-auto-layout
|
autotiling
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -94,7 +94,9 @@
|
||||||
console.keyMap = "us";
|
console.keyMap = "us";
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
# services.printing.enable = true;
|
||||||
|
|
||||||
|
programs.seahorse.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
mod = "Mod4";
|
||||||
|
term = "kitty";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
modifier = mod;
|
||||||
|
terminal = term;
|
||||||
|
fonts = {
|
||||||
|
names = [ "CaskaydiaCove Nerd Font" ];
|
||||||
|
size = 10.0;
|
||||||
|
};
|
||||||
|
keybindings = lib.mkOptionDefault {
|
||||||
|
# defaults
|
||||||
|
# launch programs
|
||||||
|
## start a rofi launcher
|
||||||
|
"${mod}+d" = "exec rofi -combi-modi window#drun#ssh -show-icons -show combi -modi combi";
|
||||||
|
## run a terminal
|
||||||
|
"${mod}+Returnm" = "exec ${term}";
|
||||||
|
|
||||||
|
# windows
|
||||||
|
## focus
|
||||||
|
"${mod}+h" = "focus left";
|
||||||
|
"${mod}+j" = "focus down";
|
||||||
|
"${mod}+k" = "focus up";
|
||||||
|
"${mod}+l" = "focus right";
|
||||||
|
|
||||||
|
# move
|
||||||
|
"${mod}+Shift+h" = "move left";
|
||||||
|
"${mod}+Shift+j" = "move down";
|
||||||
|
"${mod}+Shift+k" = "move up";
|
||||||
|
"${mod}+Shift+l" = "move right";
|
||||||
|
|
||||||
|
# split
|
||||||
|
"${mod}+q" = "split toggle";
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
startup = [
|
||||||
|
{ command = "--no-startup-id autotiling"; always = true; }
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,17 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
mod = "Mod4";
|
myConfig = import ./config.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = myConfig;
|
||||||
modifier = mod;
|
|
||||||
keybindings = lib.mkOptionDefault {
|
|
||||||
"${mod}+d" = "rofi -combi-modi window,drun,ssh, -show-icons -show combi -modi combi";
|
|
||||||
"${mod}+Enter" = "kitty";
|
|
||||||
};
|
|
||||||
startup = [
|
|
||||||
{ command = "i3-auto-layout"; always = true; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
theme = "gruvbox-light-hard";
|
theme = "gruvbox-light-hard";
|
||||||
font = "CaskaydiaCove Nerd Font 12";
|
font = "CaskaydiaCove Nerd Font 12";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
modi = "drun,emoji,ssh,calc,window";
|
modi = "drun,ssh,calc,window";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,5 @@
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
upower.enable = true;
|
|
||||||
|
|
||||||
dbus = {
|
|
||||||
enable = true;
|
|
||||||
packages = with pkgs; [ dconf ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue