Compare commits
5 commits
313aaa4cfc
...
b73c8b979a
Author | SHA1 | Date | |
---|---|---|---|
b73c8b979a | |||
5a3ef60da6 | |||
2f3eb25867 | |||
f43b21ec18 | |||
afbccc1870 |
5 changed files with 8 additions and 10 deletions
|
@ -32,7 +32,7 @@ in {
|
||||||
border = mkOption {default = 3.0;};
|
border = mkOption {default = 3.0;};
|
||||||
gap = mkOption {default = 10.0;};
|
gap = mkOption {default = 10.0;};
|
||||||
padding = mkOption {default = 51.0;}; # ?? journalctl --user -u waybar.service | grep height:
|
padding = mkOption {default = 51.0;}; # ?? journalctl --user -u waybar.service | grep height:
|
||||||
rounding = mkOption {default = 15.0;};
|
rounding = mkOption {default = 16.0;};
|
||||||
|
|
||||||
### Misc
|
### Misc
|
||||||
desktop = mkOption {
|
desktop = mkOption {
|
||||||
|
|
|
@ -25,7 +25,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
width = config.custom.border;
|
width = config.custom.border;
|
||||||
active.color = "#d33682";
|
active.color = "#d33682";
|
||||||
inactive.color = "#d3368200";
|
inactive.color = "#073642";
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingslayoutcenter-focused-column
|
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingslayoutcenter-focused-column
|
||||||
|
@ -44,7 +44,7 @@ in {
|
||||||
enable = false;
|
enable = false;
|
||||||
width = config.custom.border;
|
width = config.custom.border;
|
||||||
active.color = "#d33682";
|
active.color = "#d33682";
|
||||||
inactive.color = "#d3368200";
|
inactive.color = "#073642";
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingslayoutgaps
|
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingslayoutgaps
|
||||||
|
|
|
@ -151,12 +151,10 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
(let
|
(let
|
||||||
# BUG: Fixed width may not take borders into account
|
|
||||||
# https://github.com/YaLTeR/niri/issues/269
|
|
||||||
pip = with config.custom; rec {
|
pip = with config.custom; rec {
|
||||||
x = gap;
|
x = gap - border * 2;
|
||||||
y = gap;
|
y = gap;
|
||||||
w = builtins.floor (width * 0.3 - gap); # 30%
|
w = builtins.floor (width * 0.3 - gap * 2 + border * 2 + border + 1); # 30%
|
||||||
h = builtins.floor (w * 9 / 16); # 16:9
|
h = builtins.floor (w * 9 / 16); # 16:9
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -164,9 +162,9 @@ in {
|
||||||
matches = [{title = "^Picture.in.[Pp]icture$";}];
|
matches = [{title = "^Picture.in.[Pp]icture$";}];
|
||||||
|
|
||||||
default-floating-position = {
|
default-floating-position = {
|
||||||
|
relative-to = "top-right";
|
||||||
x = pip.x;
|
x = pip.x;
|
||||||
y = pip.y;
|
y = pip.y;
|
||||||
relative-to = "top-right";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
default-column-width.fixed = pip.w;
|
default-column-width.fixed = pip.w;
|
||||||
|
|
|
@ -79,7 +79,7 @@ with lib; {
|
||||||
containersForce = true;
|
containersForce = true;
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
Edu = {
|
edu = {
|
||||||
color = "orange";
|
color = "orange";
|
||||||
icon = "fruit";
|
icon = "fruit";
|
||||||
id = 1;
|
id = 1;
|
||||||
|
|
|
@ -42,7 +42,7 @@ in {
|
||||||
"zen.urlbar.replace-newtab" = false;
|
"zen.urlbar.replace-newtab" = false;
|
||||||
"zen.view.compact.hide-toolbar" = true;
|
"zen.view.compact.hide-toolbar" = true;
|
||||||
"zen.view.show-newtab-button-top" = false;
|
"zen.view.show-newtab-button-top" = false;
|
||||||
"zen.view.sidebar-expanded" = false;
|
"zen.view.sidebar-expanded" = true;
|
||||||
"zen.view.use-single-toolbar" = false;
|
"zen.view.use-single-toolbar" = false;
|
||||||
"zen.welcome-screen.enabled" = false;
|
"zen.welcome-screen.enabled" = false;
|
||||||
"zen.welcome-screen.seen" = true;
|
"zen.welcome-screen.seen" = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue