nixos: initial bitmap font support
This commit is contained in:
parent
3cb560dfe1
commit
3f11846977
10 changed files with 118 additions and 22 deletions
|
|
@ -23,13 +23,13 @@ in {
|
|||
settings.mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
height = 32;
|
||||
width = monitorWidth;
|
||||
exclusive = true;
|
||||
margin-top = 10;
|
||||
margin-bottom = -12;
|
||||
|
||||
modules-left = ["clock" "battery" "hyprland/workspaces"];
|
||||
modules-left = ["custom/logo" "clock" "battery" "hyprland/workspaces"];
|
||||
modules-center = [];
|
||||
modules-right = ["custom/hyprrecord" "tray"];
|
||||
|
||||
|
|
@ -82,6 +82,11 @@ in {
|
|||
on-click = "exec hyprrecord -a --waybar screen copysave video";
|
||||
signal = 12;
|
||||
};
|
||||
"custom/logo" = {
|
||||
format = " ";
|
||||
tooltop = "false";
|
||||
on-click = "exec notify-send 'hello!'";
|
||||
};
|
||||
};
|
||||
style =
|
||||
/*
|
||||
|
|
@ -89,8 +94,8 @@ in {
|
|||
*/
|
||||
''
|
||||
* {
|
||||
font-family: "${fonts.monospace.family}";
|
||||
font-size: 19px;
|
||||
font-family: "${fonts.monospace.family}:style=Medium";
|
||||
font-size: ${toString fonts.monospace.size}px;
|
||||
border: solid #${color.border.base};
|
||||
}
|
||||
|
||||
|
|
@ -153,6 +158,13 @@ in {
|
|||
color: #${color.orange.base};
|
||||
}
|
||||
|
||||
#custom-logo {
|
||||
background-image: url('/home/ooks/Media/Pictures/my-art/pixel-art/info-icon.svg');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 24px;
|
||||
}
|
||||
|
||||
#custom-hyprrecord {
|
||||
color: #${color.red.base};
|
||||
padding-right: 20px;
|
||||
|
|
|
|||
|
|
@ -1,22 +1,24 @@
|
|||
{
|
||||
osConfig,
|
||||
hozen,
|
||||
inputs',
|
||||
...
|
||||
}: let
|
||||
inherit (osConfig.ooknet.appearance) cursor;
|
||||
inherit (hozen) color;
|
||||
in {
|
||||
wayland.windowManager.hyprland = {
|
||||
plugins = [inputs'.hyprland-plugins.packages.borders-plus-plus];
|
||||
settings = {
|
||||
# cursor = {
|
||||
# inactive_timeout = 4;
|
||||
# };
|
||||
general = {
|
||||
border_size = 2;
|
||||
"col.inactive_border" = "rgb(${color.neutrals."700"})";
|
||||
"col.active_border" = "rgb(${color.neutrals."650"})";
|
||||
gaps_in = 10;
|
||||
gaps_out = 10;
|
||||
border_size = 2;
|
||||
"col.active_border" = "0xff${color.border.active}";
|
||||
"col.inactive_border" = "0xff${color.border.inactive}";
|
||||
};
|
||||
|
||||
exec-once = [
|
||||
|
|
@ -35,12 +37,23 @@ in {
|
|||
ignore_opacity = true;
|
||||
};
|
||||
shadow = {
|
||||
range = 12;
|
||||
offset = "3 3";
|
||||
color = "0x44000000";
|
||||
color_inactive = "0x66000000";
|
||||
enabled = true;
|
||||
range = 2;
|
||||
sharp = true;
|
||||
offset = "2 2";
|
||||
color = "0xff${color.neutrals."850"}";
|
||||
color_inactive = "0xff${color.neutrals."850"}";
|
||||
};
|
||||
};
|
||||
"plugin:borders-plus-plus" = {
|
||||
enabled = true;
|
||||
add_borders = 1;
|
||||
"col.border_1" = "rgb(${color.neutrals."600"})";
|
||||
|
||||
border_size_1 = 2;
|
||||
border_size_2 = 2;
|
||||
natural_rounding = false;
|
||||
};
|
||||
animations = {
|
||||
enabled = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue