Compare commits
6 commits
966ad57cb8
...
d634fa40bb
Author | SHA1 | Date | |
---|---|---|---|
d634fa40bb | |||
ca26a0094f | |||
dbe64b7bff | |||
54e90ffa14 | |||
76904b62ba | |||
fa69a8a747 |
9 changed files with 48 additions and 25 deletions
|
@ -13,6 +13,7 @@
|
|||
width = 3440;
|
||||
height = 1440;
|
||||
refresh = 100;
|
||||
desktops.niri.output.connectors = ["DP-1"];
|
||||
|
||||
programs.looking-glass = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||
in {
|
||||
}: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
|
||||
|
@ -18,6 +15,7 @@ in {
|
|||
width = 2256;
|
||||
height = 1504;
|
||||
scale = 1.5;
|
||||
desktops.niri.output.connectors = ["eDP-1"];
|
||||
|
||||
# BUG: Phoenix support not currently functional
|
||||
# https://github.com/Cryolitia/ryzen_smu/issues/1
|
||||
|
@ -54,19 +52,6 @@ in {
|
|||
};
|
||||
|
||||
home-manager.users.${config.custom.username} = {
|
||||
programs.niri.settings.outputs = {
|
||||
"eDP-1" = {
|
||||
background-color = "#073642";
|
||||
|
||||
mode = with config.custom; {
|
||||
inherit width height;
|
||||
refresh = refresh + 0.0;
|
||||
};
|
||||
|
||||
scale = config.custom.scale;
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
device = [
|
||||
{
|
||||
|
|
|
@ -63,7 +63,7 @@ in {
|
|||
|
||||
font = {
|
||||
emoji = mkOption {default = "Noto Color Emoji";};
|
||||
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
|
||||
monospace = mkOption {default = "IosevkaTerm NFP SemiBold";};
|
||||
sans-serif = mkOption {default = "Outfit";};
|
||||
serif = mkOption {default = "Liberation Serif";};
|
||||
};
|
||||
|
|
|
@ -24,6 +24,7 @@ in {
|
|||
input.enable = true;
|
||||
layout.enable = true;
|
||||
misc.enable = true;
|
||||
output.enable = true;
|
||||
rules.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
gap = config.custom.gap / 2;
|
||||
in {
|
||||
gaps = gap;
|
||||
center-focused-column = mkIf config.custom.ultrawide "always";
|
||||
#// center-focused-column = mkIf config.custom.ultrawide "always";
|
||||
always-center-single-column = true;
|
||||
|
||||
# TODO: Uncomment after next release > v1.10.1
|
||||
|
@ -25,12 +25,12 @@ in {
|
|||
#// empty-workspace-above-first = true;
|
||||
|
||||
preset-column-widths = [
|
||||
{proportion = 0.75;}
|
||||
{proportion = 0.5;}
|
||||
{proportion = 0.3;}
|
||||
{proportion = 0.7;} # Default
|
||||
{proportion = 0.25;}
|
||||
];
|
||||
|
||||
default-column-width = {proportion = 0.7;};
|
||||
default-column-width = {}; # Window-defined
|
||||
|
||||
preset-window-heights = [
|
||||
{proportion = 0.7;}
|
||||
|
|
35
options/custom/desktops/niri/output.nix
Normal file
35
options/custom/desktops/niri/output.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.desktops.niri.output;
|
||||
in {
|
||||
options.custom.desktops.niri.output = {
|
||||
enable = mkOption {default = false;};
|
||||
connectors = mkOption {default = [];};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
||||
programs.niri.settings.outputs = listToAttrs (forEach cfg.connectors (connector: {
|
||||
name = connector;
|
||||
|
||||
value = {
|
||||
background-color = "#073642";
|
||||
|
||||
mode = with config.custom; {
|
||||
inherit width height;
|
||||
refresh = refresh + 0.0; # Convert to float
|
||||
};
|
||||
|
||||
scale = config.custom.scale;
|
||||
};
|
||||
}));
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -17,7 +17,7 @@ in {
|
|||
|
||||
font = {
|
||||
name = config.custom.font.monospace;
|
||||
size = 13;
|
||||
size = 14;
|
||||
};
|
||||
|
||||
# https://sw.kovidgoyal.net/kitty/conf/
|
||||
|
|
|
@ -88,8 +88,8 @@ in {
|
|||
|
||||
# https://starship.rs/config/#character
|
||||
character = {
|
||||
error_symbol = "[](bold red) ";
|
||||
success_symbol = "[](bold) ";
|
||||
error_symbol = "[](bold red)";
|
||||
success_symbol = "[](bold)";
|
||||
};
|
||||
|
||||
# https://starship.rs/config/#command-duration
|
||||
|
|
|
@ -76,6 +76,7 @@ in {
|
|||
font: 18px '${font}';
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.horizontal > box {
|
||||
|
|
Loading…
Add table
Reference in a new issue