Skip to content

Commit

Permalink
feat(fonts): use telugu numbers for polybar/waybar
Browse files Browse the repository at this point in the history
  • Loading branch information
water-sucks committed Aug 13, 2024
1 parent 1fbbad9 commit b4a46c5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion home/profiles/graphical/wayland/waybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ in {
};
"river/tags" = {
"num-tags" = 9;
"tag-labels" = ["" "" "" "" "" "" "" "" ""];
"tag-labels" = ["" "" "" "" "" "" "" "" ""];
};
"wlr/taskbar" = {
format = "{icon}";
Expand Down
4 changes: 3 additions & 1 deletion home/profiles/graphical/wayland/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
color: @text;
border: 0;
border-radius: 0;
font-family: "monospace", "IBM Plex Sans JP";
font-family: "monospace";
font-size: 11px;
min-height: 0px;
min-width: 0px;
Expand Down Expand Up @@ -31,6 +31,8 @@ window#waybar {
}

#tags button {
font-family: "Noto Sans Telugu";
font-size: 2em;
margin: 2px 0;
padding: 5px 0;
border-left: 2px solid @primary;
Expand Down
20 changes: 10 additions & 10 deletions home/profiles/graphical/x11/polybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ in {
module-margin-right = 1;
separator = "";
font-0 = "BlexMono Nerd Font:size=8;3";
font-1 = "IBM Plex Sans JP:size=8;0";
font-1 = "Noto Sans Telugu:size=8;3";
border-bottom-size = 2;
border-color = "\${colors.primary}";
cursor-click = "pointer";
Expand Down Expand Up @@ -140,15 +140,15 @@ in {
label-urgent-foreground = "\${colors.text}";
label-empty-foreground = "\${colors.deactivated}";

icon-0 = "1;";
icon-1 = "2;";
icon-2 = "3;";
icon-3 = "4;";
icon-4 = "5;";
icon-5 = "6;";
icon-6 = "7;";
icon-7 = "8;";
icon-8 = "9;";
icon-0 = "1;";
icon-1 = "2;";
icon-2 = "3;";
icon-3 = "4;";
icon-4 = "5;";
icon-5 = "6;";
icon-6 = "7;";
icon-7 = "8;";
icon-8 = "9;";
};

"module/layout" = {
Expand Down
2 changes: 1 addition & 1 deletion hosts/nixos/profiles/fontconfig.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_: {
fonts.fontconfig.defaultFonts = {
monospace = ["BlexMono Nerd Font"];
sansSerif = ["IBM Plex Sans" "IBM Plex Sans JP"];
sansSerif = ["IBM Plex Sans" "IBM Plex Sans JP" "Noto Sans Telugu"];
serif = ["IBM Plex Serif"];
};
}
1 change: 1 addition & 0 deletions hosts/profiles/fonts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ibm-plex
(nerdfonts.override {fonts = ["IBMPlexMono"];})
font-awesome
noto-fonts
];
fontDir.enable = lib.mkIf (!pkgs.stdenv.isDarwin) true;
};
Expand Down

0 comments on commit b4a46c5

Please sign in to comment.