mostly usable i3 config

This commit is contained in:
zoe 2022-10-31 00:43:30 +01:00
parent 8a2a6b4ec5
commit 69954d71ca
6 changed files with 50 additions and 20 deletions

View File

@ -85,7 +85,7 @@
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
i3-auto-layout
autotiling
];
};
};
@ -94,7 +94,9 @@
console.keyMap = "us";
# Enable CUPS to print documents.
services.printing.enable = true;
# services.printing.enable = true;
programs.seahorse.enable = true;
# Enable sound with pipewire.
sound.enable = true;

42
i3/config.nix Normal file
View File

@ -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; }
];
}

View File

@ -1,17 +1,8 @@
{ pkgs, lib, ... }:
let
mod = "Mod4";
myConfig = import ./config.nix;
in
{
enable = true;
config = {
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; }
];
};
config = myConfig;
}

View File

@ -8,6 +8,6 @@
theme = "gruvbox-light-hard";
font = "CaskaydiaCove Nerd Font 12";
extraConfig = {
modi = "drun,emoji,ssh,calc,window";
modi = "drun,ssh,calc,window";
};
}

View File

@ -2,11 +2,5 @@
{
services = {
gnome.gnome-keyring.enable = true;
upower.enable = true;
dbus = {
enable = true;
packages = with pkgs; [ dconf ];
};
};
}

View File

@ -14,6 +14,7 @@
git
wireguard-tools
networkmanagerapplet
thunderbird
# files
xfce.thunar