@ -322,11 +322,11 @@ in {
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
font_family = "${config.stylix.fonts.serif.name}";
|
||||
font_color = "rgb(${config.lib.stylix.colors.base05})";
|
||||
inner_color = "rgb(${config.lib.stylix.colors.base00})";
|
||||
outer_color = "rgb(${config.lib.stylix.colors.base0D})";
|
||||
check_color = "rgb(${config.lib.stylix.colors.base0A})";
|
||||
fail_color = "rgb(${config.lib.stylix.colors.base08})";
|
||||
font_color = "rgb(${colors.base05})";
|
||||
inner_color = "rgb(${colors.base00})";
|
||||
outer_color = "rgb(${colors.base0D})";
|
||||
check_color = "rgb(${colors.base0A})";
|
||||
fail_color = "rgb(${colors.base08})";
|
||||
placeholder_text = "locked...";
|
||||
fail_text = "wrong";
|
||||
shadow_passes = 0;
|
||||
@ -336,8 +336,8 @@ in {
|
||||
{
|
||||
rounding = 12;
|
||||
size = "150, 50";
|
||||
color = "rgb(${config.lib.stylix.colors.base00})";
|
||||
border_color = "rgb(${config.lib.stylix.colors.base0D})";
|
||||
color = "rgb(${colors.base00})";
|
||||
border_color = "rgb(${colors.base0D})";
|
||||
position = "-62, 30";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
@ -345,8 +345,8 @@ in {
|
||||
{
|
||||
rounding = 12;
|
||||
size = "120, 50";
|
||||
color = "rgb(${config.lib.stylix.colors.base00})";
|
||||
border_color = "rgb(${config.lib.stylix.colors.base0D})";
|
||||
color = "rgb(${colors.base00})";
|
||||
border_color = "rgb(${colors.base0D})";
|
||||
position = "77, 28";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
@ -359,8 +359,8 @@ in {
|
||||
text_align = "center";
|
||||
font_size = 16;
|
||||
font_family = "${config.stylix.fonts.serif.name}";
|
||||
outer_color = "rgb(${config.lib.stylix.colors.base00})";
|
||||
color = "rgb(${config.lib.stylix.colors.base05})";
|
||||
outer_color = "rgb(${colors.base00})";
|
||||
color = "rgb(${colors.base05})";
|
||||
position = "-62, 28";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
@ -371,8 +371,8 @@ in {
|
||||
text_align = "center";
|
||||
font_size = 16;
|
||||
font_family = "${config.stylix.fonts.serif.name}";
|
||||
outer_color = "rgb(${config.lib.stylix.colors.base00})";
|
||||
color = "rgb(${config.lib.stylix.colors.base05})";
|
||||
outer_color = "rgb(${colors.base00})";
|
||||
color = "rgb(${colors.base05})";
|
||||
position = "77, 28";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
@ -380,7 +380,6 @@ in {
|
||||
];
|
||||
};
|
||||
};
|
||||
# ifLaptop
|
||||
xdg.configFile = {
|
||||
niri = {
|
||||
target = "niri/config.kdl";
|
||||
@ -476,8 +475,8 @@ in {
|
||||
// default-column-width { proportion 0.9; }
|
||||
default-column-width {}
|
||||
tab-indicator {
|
||||
active-color "#${config.lib.stylix.colors.base04}"
|
||||
inactive-color "#${config.lib.stylix.colors.base03}"
|
||||
active-color "#${colors.base04}"
|
||||
inactive-color "#${colors.base03}"
|
||||
width 8
|
||||
gap 6
|
||||
corner-radius 4
|
||||
@ -489,8 +488,8 @@ in {
|
||||
focus-ring {
|
||||
// off
|
||||
width 3
|
||||
active-gradient from="#${config.lib.stylix.colors.base0D}" to="#${config.lib.stylix.colors.base0F}" angle=40 relative-to="workspace-view"
|
||||
inactive-color "#${config.lib.stylix.colors.base03}"
|
||||
active-gradient from="#${colors.base0D}" to="#${colors.base0F}" angle=40 relative-to="workspace-view"
|
||||
inactive-color "#${colors.base03}"
|
||||
}
|
||||
struts {
|
||||
left 52
|
||||
@ -511,18 +510,18 @@ in {
|
||||
match is-window-cast-target=true
|
||||
focus-ring {
|
||||
width 3
|
||||
active-color "#${config.lib.stylix.colors.base0F}"
|
||||
inactive-color "#${config.lib.stylix.colors.base03}"
|
||||
active-color "#${colors.base0F}"
|
||||
inactive-color "#${colors.base03}"
|
||||
}
|
||||
border {
|
||||
width 3
|
||||
active-color "#${config.lib.stylix.colors.base0F}"
|
||||
inactive-color "#${config.lib.stylix.colors.base03}"
|
||||
active-color "#${colors.base0F}"
|
||||
inactive-color "#${colors.base03}"
|
||||
}
|
||||
shadow {
|
||||
on
|
||||
color "#${config.lib.stylix.colors.base0F}"
|
||||
inactive-color "#${config.lib.stylix.colors.base03}"
|
||||
color "#${colors.base0F}"
|
||||
inactive-color "#${colors.base03}"
|
||||
}
|
||||
}
|
||||
|
||||
@ -775,6 +774,365 @@ in {
|
||||
'';
|
||||
};
|
||||
};
|
||||
programs.way-edges = {
|
||||
enable = false;
|
||||
settings = {
|
||||
"$schema" = "https://raw.githubusercontent.com/way-edges/way-edges/master/config/config.schema.json";
|
||||
ensure_load_group = ["niri" "tray" "common"];
|
||||
groups = [
|
||||
{
|
||||
name = "niri";
|
||||
widgets = [
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
margins = {left = "25%";};
|
||||
monitor = 0;
|
||||
position = "left";
|
||||
widget = {
|
||||
event_map = {
|
||||
"272" = "niri msg action focus-column-left";
|
||||
"273" = "niri msg action focus-workspace-up";
|
||||
};
|
||||
length = "25%";
|
||||
thickness = 20;
|
||||
type = "btn";
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
margins = {right = "25%";};
|
||||
monitor = 0;
|
||||
position = "right";
|
||||
widget = {
|
||||
event_map = {
|
||||
"272" = "niri msg action focus-column-right";
|
||||
"273" = "niri msg action focus-workspace-down";
|
||||
};
|
||||
frame_rate = 144;
|
||||
length = "25%";
|
||||
thickness = 20;
|
||||
type = "btn";
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
margins = {left = "25%";};
|
||||
monitor = 0;
|
||||
position = "left";
|
||||
widget = {
|
||||
color = "#${colors.base00}";
|
||||
event_map = {
|
||||
"272" = "niri msg action focus-column-left";
|
||||
"273" = "niri msg action focus-workspace-up";
|
||||
};
|
||||
length = "25%";
|
||||
thickness = 20;
|
||||
type = "btn";
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
margins = {right = "25%";};
|
||||
monitor = 0;
|
||||
position = "right";
|
||||
widget = {
|
||||
color = "#${colors.base00}";
|
||||
event_map = {
|
||||
"272" = "niri msg action focus-column-right";
|
||||
"273" = "niri msg action focus-workspace-down";
|
||||
};
|
||||
length = "25%";
|
||||
thickness = 20;
|
||||
type = "btn";
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "left";
|
||||
layer = "overlay";
|
||||
monitor = 0;
|
||||
position = "bottom";
|
||||
widget = {
|
||||
active_increase = 0.5;
|
||||
default_color = "#${colors.base00}";
|
||||
hover_color = "#${colors.base03}";
|
||||
focus_color = "#${colors.base0C}";
|
||||
length = "20%";
|
||||
preset = "niri";
|
||||
thickness = 30;
|
||||
type = "workspace";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "common";
|
||||
widgets =
|
||||
[
|
||||
{
|
||||
edge = "bottom";
|
||||
layer = "overlay";
|
||||
monitor = 0;
|
||||
widget = {
|
||||
color = "#${colors.base00}";
|
||||
event_map = {
|
||||
"272" = "niri msg action maximize-column";
|
||||
# "273" = "sh -c pkill nwg-drawer || nwg-drawer";
|
||||
"276" = "niri msg action toggle-column-tabbed-display";
|
||||
};
|
||||
length = "40%";
|
||||
thickness = 20;
|
||||
type = "btn";
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "left";
|
||||
layer = "overlay";
|
||||
margins = {top = 40;};
|
||||
monitor = 0;
|
||||
name = "stats";
|
||||
position = "top";
|
||||
widget = {
|
||||
outlook = {
|
||||
color = "#5d3f3c";
|
||||
type = "window";
|
||||
};
|
||||
type = "wrap-box";
|
||||
widgets = [
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
bg_color = "#00000044";
|
||||
fg_color = "#82B2E3";
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
font_size = 20;
|
||||
prefix = " ";
|
||||
preset = {
|
||||
type = "disk";
|
||||
update_interval = 500;
|
||||
};
|
||||
suffix = " {preset}";
|
||||
suffix_hide = true;
|
||||
type = "ring";
|
||||
};
|
||||
}
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
bg_color = "#00000044";
|
||||
fg_color = "#FFB77B";
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
font_size = 20;
|
||||
prefix = " ";
|
||||
preset = {
|
||||
type = "battery";
|
||||
update_interval = 500;
|
||||
};
|
||||
suffix = " {preset}";
|
||||
suffix_hide = true;
|
||||
type = "ring";
|
||||
};
|
||||
}
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
bg_color = "#00000044";
|
||||
fg_color = "#FB8893";
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
font_size = 20;
|
||||
prefix = " ";
|
||||
preset = {
|
||||
type = "cpu";
|
||||
update_interval = 500;
|
||||
};
|
||||
suffix = " {preset}";
|
||||
suffix_hide = true;
|
||||
type = "ring";
|
||||
};
|
||||
}
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
bg_color = "#00000044";
|
||||
fg_color = "#BEAFD9";
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
font_size = 20;
|
||||
prefix = " ";
|
||||
preset = {
|
||||
type = "swap";
|
||||
update_interval = 500;
|
||||
};
|
||||
suffix = " {preset}";
|
||||
suffix_hide = true;
|
||||
type = "ring";
|
||||
};
|
||||
}
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
bg_color = "#00000044";
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
font_size = 20;
|
||||
prefix = " ";
|
||||
preset = {
|
||||
type = "ram";
|
||||
update_interval = 500;
|
||||
};
|
||||
suffix = " {preset}";
|
||||
suffix_hide = true;
|
||||
type = "ring";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
monitor = 0;
|
||||
name = "time";
|
||||
position = "right";
|
||||
widget = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
outlook = {
|
||||
color = "#${colors.base00}";
|
||||
margins = {
|
||||
bottom = 10;
|
||||
left = 30;
|
||||
right = 30;
|
||||
top = 10;
|
||||
};
|
||||
type = "window";
|
||||
};
|
||||
type = "wrap-box";
|
||||
widgets = [
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
fg_color = "#${colors.base07}";
|
||||
font_size = 30;
|
||||
preset = {
|
||||
format = "%v %T %A";
|
||||
type = "time";
|
||||
update_interval = 500;
|
||||
};
|
||||
type = "text";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
monitor = 0;
|
||||
position = "left";
|
||||
preview_size = 7;
|
||||
widget = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
border_width = 4;
|
||||
length = "12.5%";
|
||||
bg_color = "#${colors.base00}";
|
||||
fg_color = "#${colors.base0C}";
|
||||
mute_color = "#${colors.base0A}";
|
||||
preset.type = "speaker";
|
||||
redraw_only_on_internal_update = true;
|
||||
thickness = 30;
|
||||
type = "slider";
|
||||
};
|
||||
}
|
||||
]
|
||||
++ (lib.optionals (hostname
|
||||
!= "dunamis") [
|
||||
{
|
||||
edge = "top";
|
||||
layer = "overlay";
|
||||
margins = {left = "12.5%";};
|
||||
monitor = 0;
|
||||
position = "left";
|
||||
preview_size = 7;
|
||||
widget = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
border_width = 4;
|
||||
bg_color = "#${colors.base00}";
|
||||
fg_color = "#${colors.base0B}";
|
||||
length = "12.5%";
|
||||
preset.type = "backlight";
|
||||
redraw_only_on_internal_update = true;
|
||||
thickness = 30;
|
||||
type = "slider";
|
||||
};
|
||||
}
|
||||
]);
|
||||
}
|
||||
{
|
||||
name = "tray";
|
||||
widgets = [
|
||||
{
|
||||
edge = "bottom";
|
||||
layer = "overlay";
|
||||
monitor = 0;
|
||||
name = "tray";
|
||||
position = "right";
|
||||
widget = {
|
||||
align = "bottom_left";
|
||||
outlook = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
color = "#${colors.base07}";
|
||||
type = "window";
|
||||
};
|
||||
type = "wrap-box";
|
||||
widgets = [
|
||||
{
|
||||
index = [
|
||||
(lib.strings.toInt "-1")
|
||||
(lib.strings.toInt "-1")
|
||||
];
|
||||
widget = {
|
||||
font_family = config.stylix.fonts.serif.name;
|
||||
grid_align = "bottom_left";
|
||||
header_draw_config = {text_color = "#${colors.base00}";};
|
||||
header_menu_align = "left";
|
||||
header_menu_stack = "menu_top";
|
||||
icon_size = 42;
|
||||
menu_draw_config = {
|
||||
border_color = "#${colors.base00}";
|
||||
text_color = "#${colors.base00}";
|
||||
font_pixel_height = 18;
|
||||
};
|
||||
type = "tray";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
@ -783,8 +1141,8 @@ in {
|
||||
};
|
||||
settings = {
|
||||
bar-0 = {
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
# layer = "top";
|
||||
position = "top";
|
||||
height = 32;
|
||||
spacing = 4;
|
||||
margin-left = 63;
|
||||
@ -795,7 +1153,7 @@ in {
|
||||
"niri/workspaces"
|
||||
"wlr/taskbar"
|
||||
];
|
||||
# modules-center = [];
|
||||
modules-center = ["mpris"];
|
||||
modules-right = [
|
||||
"wireplumber"
|
||||
(ifLaptop "group/laptop")
|
||||
@ -880,6 +1238,17 @@ in {
|
||||
format-alt = "{icon} {time}";
|
||||
format-icons = ["" "" "" "" "" "" "" "" "" ""];
|
||||
};
|
||||
mpris = {
|
||||
format = "{player_icon} {dynamic}";
|
||||
format-paused = "{status_icon} <i>{dynamic}</i>";
|
||||
playing-len = 30;
|
||||
playing-paused = 30;
|
||||
player-icons = {
|
||||
default = "▶";
|
||||
mpv = "🎵";
|
||||
};
|
||||
status-icons = {paused = "⏸";};
|
||||
};
|
||||
"upower" = {
|
||||
icon-size = 16;
|
||||
format = "{percentage}";
|
||||
@ -974,12 +1343,20 @@ in {
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
.modules-center {
|
||||
background-color: transparent;
|
||||
}
|
||||
.mpris.stopped {
|
||||
background-color: transparent;
|
||||
}
|
||||
.mpris.playing,
|
||||
.mpris.paused,
|
||||
.modules-left,
|
||||
.modules-right {
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
border-bottom-left-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-bottom-left-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
border-top-left-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
background-color: @base00;
|
||||
color: @base05;
|
||||
padding: 0 0.5em;
|
||||
|
Reference in New Issue
Block a user