began configuring i3
This commit is contained in:
parent
d7934e2107
commit
41640f72ad
3 changed files with 50 additions and 10 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
|
# Include the results of the hardware scan.
|
||||||
./vm_hardware-configuration.nix
|
./vm_hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -41,20 +42,21 @@
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "de";
|
xkb.layout = "de";
|
||||||
xkbVariant = "";
|
xkb.variant = "";
|
||||||
enable = true;
|
enable = true;
|
||||||
|
videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
displayManager = {
|
displayManager = {
|
||||||
defaultSession = "none+i3";
|
defaultSession = "none+i3";
|
||||||
};
|
};
|
||||||
|
|
||||||
windowManager.i3 = {
|
windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.i3-gaps;
|
package = pkgs.i3-gaps;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
dmenu
|
dmenu
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -68,7 +70,6 @@
|
||||||
description = "clemens";
|
description = "clemens";
|
||||||
initialPassword = "123456";
|
initialPassword = "123456";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# home manager
|
# home manager
|
||||||
|
|
|
||||||
1
home.nix
1
home.nix
|
|
@ -23,6 +23,7 @@ in
|
||||||
./programm_configs/git.nix
|
./programm_configs/git.nix
|
||||||
./programm_configs/vscode.nix
|
./programm_configs/vscode.nix
|
||||||
./programm_configs/rofi.nix
|
./programm_configs/rofi.nix
|
||||||
|
./programm_configs/i3.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
|
|
||||||
38
programm_configs/i3.nix
Normal file
38
programm_configs/i3.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
mod = "Mod4";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
xsession.windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
modifier = mod;
|
||||||
|
fonts = {
|
||||||
|
names = [ "DejaVu Sans Mono" "FontAwesome 6" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
keybindings = lib.mkOptionDefault {
|
||||||
|
# rofi (dmenu)
|
||||||
|
"${mod}+d" = "exec rofi -show combi -config ~/.config/rofi/config.rasi";
|
||||||
|
|
||||||
|
# screenlock
|
||||||
|
"ctrl+${mod}+l" = "exec --no-startup-id ~/.config/i3/lock.sh";
|
||||||
|
|
||||||
|
# audio control fluff
|
||||||
|
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status";
|
||||||
|
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status";
|
||||||
|
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status";
|
||||||
|
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status";
|
||||||
|
|
||||||
|
# Terminal
|
||||||
|
"${mod}+Return" = "exec alacritty";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = "floating_modifier ${mod}\n
|
||||||
|
gaps inner 10\n
|
||||||
|
gaps outer 0\n
|
||||||
|
smart_gaps on\n";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue