1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

feat: the font revolution

This commit is contained in:
Kierán Meinhardt
2019-09-25 10:11:18 +02:00
parent 93c87be579
commit 6e41f78863
7 changed files with 31 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ in
# <configs/urxvt.nix>
<configs/vscode.nix>
<configs/xautolock.nix>
<configs/xresources.nix>
# <configs/xresources.nix>
<configs/zsh.nix>
{
niveum.user = {
@@ -102,7 +102,6 @@ in
autorenkalender = pkgs.callPackage <packages/autorenkalender.nix> {};
bvg = pkgs.callPackage <packages/bvg.nix> {};
daybook = pkgs.callPackage <packages/daybook.nix> {};
font-size = pkgs.callPackage <packages/font-size.nix> { font = config.niveum.fonts.terminal; };
genius = pkgs.callPackage <packages/genius.nix> {};
instaget = pkgs.callPackage <packages/instaget.nix> {};
literature-quote = pkgs.callPackage <packages/literature-quote.nix> {};

View File

@@ -6,7 +6,7 @@ with config.niveum; {
settings = {
global = {
transparency = 10;
font = "${fonts.terminal.name} ${toString fonts.terminal.size}";
font = "Monospace ${toString fonts.size}";
geometry = "200x5-30+20";
frame_color = colours.foreground;
follow = "mouse";

View File

@@ -1,22 +1,34 @@
{ pkgs, ... }:
{
niveum.fonts = {
ui = {
name = "Sans";
size = 9;
};
terminal = {
name = "Monospace";
size = 9;
};
};
niveum.fonts.size = 9;
fonts = {
enableDefaultFonts = true;
enableFontDir = true;
fonts = with pkgs; [ inconsolata corefonts eb-garamond fira libertine lmodern noto-fonts roboto roboto-mono roboto-slab ubuntu_font_family ];
fonts = with pkgs; [
corefonts
eb-garamond
fira
font-awesome-ttf
ibm-plex
inconsolata
iosevka
libertine
lmodern
noto-fonts
roboto
roboto-mono
roboto-slab
source-code-pro
source-serif-pro
ubuntu_font_family
];
fontconfig = {
defaultFonts.monospace = [ "Inconsolata" ];
defaultFonts = {
monospace = [ "Source Code Pro" ];
serif = [ "Source Serif Pro" ];
sansSerif = [ "IBM Plex" ];
};
ultimate = {
enable = true;
substitutions = "combi";

View File

@@ -15,7 +15,7 @@ in with config.niveum; {
home-manager.users.me.xsession.windowManager.i3 = {
enable = true;
config = rec {
fonts = [ "${config.niveum.fonts.ui.name} ${toString config.niveum.fonts.ui.size}" ];
fonts = [ "Sans ${toString config.niveum.fonts.size}" ];
modifier = "Mod4";
window = {
titlebar = false;
@@ -49,7 +49,7 @@ in with config.niveum; {
};
bars = [{
workspaceButtons = false;
fonts = [ "${config.niveum.fonts.terminal.name} ${toString config.niveum.fonts.terminal.size}" ];
fonts = [ "Monospace ${toString config.niveum.fonts.size}" ];
mode = "hide";
colors = rec {
background = colours.background;

View File

@@ -104,7 +104,7 @@
kmein.daybook
kmein.depp
kmein.dirmir
kmein.font-size
# kmein.font-size (removed)
# kmein.fzf-wrappers (broken)
kmein.genius
kmein.instaget

View File

@@ -7,7 +7,7 @@ with config.niveum; {
terminal = applications.terminal;
borderWidth = 0;
lines = 5;
font = "${fonts.terminal.name} ${toString (fonts.terminal.size + 1)}";
font = "Monospace ${toString (fonts.size + 1)}";
colors = rec {
window = rec {
background = colours.foreground;

View File

@@ -16,12 +16,6 @@ let
package = mkOption { type = types.package; };
};
};
my-types.font = types.submodule {
options = {
name = mkOption { type = types.str; };
size = mkOption { type = types.ints.positive; };
};
};
my-types.colourTheme = types.submodule {
options = {
@@ -80,8 +74,7 @@ in {
};
fonts = {
terminal = mkOption { type = my-types.font; };
ui = mkOption { type = my-types.font; };
size = mkOption { type = types.int; };
};
user = {