home/programs/niri: add xwayland-satellite, update layout settings, add colors
This commit is contained in:
parent
b5276c4523
commit
e87a890bef
3 changed files with 34 additions and 8 deletions
|
@ -1,18 +1,34 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
nixosConfig,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
schemeData = inputs.basix.schemeData.base16.${config.theme.scheme};
|
colors = inputs.basix.schemeData.base16.${nixosConfig.style.scheme}.palette;
|
||||||
in {
|
in {
|
||||||
imports = [./binds.nix];
|
imports = [./binds.nix];
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
settings = {
|
settings = {
|
||||||
environment."NIXOS_OZONE_WL" = "1";
|
environment = {
|
||||||
|
"NIXOS_OZONE_WL" = "1";
|
||||||
|
"DISPLAY" = ":0";
|
||||||
|
"_JAVA_AWT_WM_NONREPARENTING" = "1"; # https://wiki.archlinux.org/title/Sway#Java_applications
|
||||||
|
};
|
||||||
|
|
||||||
prefer-no-csd = true;
|
prefer-no-csd = true;
|
||||||
|
|
||||||
window-rules = [
|
window-rules = [
|
||||||
|
{
|
||||||
|
draw-border-with-background = false;
|
||||||
|
geometry-corner-radius = let
|
||||||
|
r = 8.0;
|
||||||
|
in {
|
||||||
|
top-left = r;
|
||||||
|
top-right = r;
|
||||||
|
bottom-left = r;
|
||||||
|
bottom-right = r;
|
||||||
|
};
|
||||||
|
clip-to-geometry = true;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [
|
||||||
{app-id = "foot";}
|
{app-id = "foot";}
|
||||||
|
@ -21,13 +37,21 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
layout = {
|
|
||||||
border.active = pkgs.lib.rgba schemeData.palette.base0E;
|
|
||||||
};
|
|
||||||
input.keyboard.xkb = {
|
input.keyboard.xkb = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
options = "compose:ralt";
|
options = "compose:ralt";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
layout = {
|
||||||
|
focus-ring = {
|
||||||
|
enable = true;
|
||||||
|
active.color = "#${colors.base0E}";
|
||||||
|
};
|
||||||
|
|
||||||
|
center-focused-column = "always";
|
||||||
|
always-center-single-column = true;
|
||||||
|
};
|
||||||
|
spawn-at-startup = [{command = ["xwayland-satellite"];}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# convert rrggbb hex to rgba(r, g, b, a) CSS format
|
# convert rrggbb hex to rgba(r, g, b, a)
|
||||||
rgba = c: let
|
rgba = c: let
|
||||||
r = toString (hexToDec (builtins.substring 0 2 c));
|
r = toString (hexToDec (builtins.substring 0 2 c));
|
||||||
g = toString (hexToDec (builtins.substring 2 2 c));
|
g = toString (hexToDec (builtins.substring 2 2 c));
|
||||||
|
|
|
@ -27,4 +27,6 @@
|
||||||
session required pam_env.so conffile=/etc/pam/environment readenv=0
|
session required pam_env.so conffile=/etc/pam/environment readenv=0
|
||||||
session required pam_unix.so
|
session required pam_unix.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
environment.systemPackages = [pkgs.xwayland-satellite];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue