i3 on tty2
This commit is contained in:
parent
632abea18c
commit
f8b761d6eb
2 changed files with 61 additions and 0 deletions
56
programs/i3/default.nix
Normal file
56
programs/i3/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
with import <nixpkgs> {};
|
||||
{ ... }:
|
||||
let
|
||||
launcher = import ../sway/launcher.nix { inherit pkgs stdenv; };
|
||||
status-configuration = import ../sway/status-configuration.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.startx.enable = true;
|
||||
libinput = {
|
||||
enable = true;
|
||||
disableWhileTyping = true;
|
||||
scrollMethod = "twofinger";
|
||||
tapping = true;
|
||||
tappingDragLock = true;
|
||||
};
|
||||
xkbVariant = "altgr-intl";
|
||||
};
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.xorg.xauth ];
|
||||
home.file.".xinitrc".text = "source ~/.xsession";
|
||||
xsession = {
|
||||
enable = true;
|
||||
numlock.enable = true;
|
||||
windowManager.i3 = {
|
||||
enable = true;
|
||||
config = {
|
||||
bars = [
|
||||
{
|
||||
colors = {
|
||||
background = "#fbffff";
|
||||
statusline = "#535c65";
|
||||
focusedWorkspace = { background = "#2b7ab2"; border = "#2b7ab2"; text = "#fbffff"; };
|
||||
activeWorkspace = { background = "#6d7782"; border = "#6d7782"; text = "#fbffff"; };
|
||||
inactiveWorkspace = { background = "#fbffff"; border = "#fbffff"; text = "535c65"; };
|
||||
urgentWorkspace = { background = "#ae5865"; border = "#ae5865"; text = "#fbffff"; };
|
||||
};
|
||||
fonts = [ "Fira Code Normal 9" ];
|
||||
position = "top";
|
||||
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${status-configuration}";
|
||||
}
|
||||
];
|
||||
floating.criteria = [ { class = "launcher"; } { class = "accentor.Main"; } ];
|
||||
fonts = [ "Fira Code Normal 9" ];
|
||||
menu = "${pkgs.kitty}/bin/kitty --class launcher -e ${launcher}/bin/launcher";
|
||||
modifier = "Mod4";
|
||||
terminal = "${pkgs.kitty}/bin/kitty";
|
||||
};
|
||||
extraConfig = ''
|
||||
default_border pixel
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue