1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 20:01:08 +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/urxvt.nix>
<configs/vscode.nix> <configs/vscode.nix>
<configs/xautolock.nix> <configs/xautolock.nix>
<configs/xresources.nix> # <configs/xresources.nix>
<configs/zsh.nix> <configs/zsh.nix>
{ {
niveum.user = { niveum.user = {
@@ -102,7 +102,6 @@ in
autorenkalender = pkgs.callPackage <packages/autorenkalender.nix> {}; autorenkalender = pkgs.callPackage <packages/autorenkalender.nix> {};
bvg = pkgs.callPackage <packages/bvg.nix> {}; bvg = pkgs.callPackage <packages/bvg.nix> {};
daybook = pkgs.callPackage <packages/daybook.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> {}; genius = pkgs.callPackage <packages/genius.nix> {};
instaget = pkgs.callPackage <packages/instaget.nix> {}; instaget = pkgs.callPackage <packages/instaget.nix> {};
literature-quote = pkgs.callPackage <packages/literature-quote.nix> {}; literature-quote = pkgs.callPackage <packages/literature-quote.nix> {};

View File

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

View File

@@ -1,22 +1,34 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
niveum.fonts = { niveum.fonts.size = 9;
ui = {
name = "Sans";
size = 9;
};
terminal = {
name = "Monospace";
size = 9;
};
};
fonts = { fonts = {
enableDefaultFonts = true; enableDefaultFonts = true;
enableFontDir = 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 = { fontconfig = {
defaultFonts.monospace = [ "Inconsolata" ]; defaultFonts = {
monospace = [ "Source Code Pro" ];
serif = [ "Source Serif Pro" ];
sansSerif = [ "IBM Plex" ];
};
ultimate = { ultimate = {
enable = true; enable = true;
substitutions = "combi"; substitutions = "combi";

View File

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

View File

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

View File

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

View File

@@ -16,12 +16,6 @@ let
package = mkOption { type = types.package; }; 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 { my-types.colourTheme = types.submodule {
options = { options = {
@@ -80,8 +74,7 @@ in {
}; };
fonts = { fonts = {
terminal = mkOption { type = my-types.font; }; size = mkOption { type = types.int; };
ui = mkOption { type = my-types.font; };
}; };
user = { user = {