fonts and xresources for dwm/st

This commit is contained in:
Sam 2024-06-14 17:31:17 +01:00
parent c226add411
commit 2aea6ff2f4
7 changed files with 58 additions and 8 deletions

View File

@ -1,10 +1,14 @@
{ pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = [
pkgs.noto-fonts
pkgs.nerdfonts # loads the complete collection. look into overide for FiraMono or potentially mononoki
pkgs.meslo-lgs-nf
home.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
hack-font
liberation_ttf
font-awesome
libertine
];
}

View File

@ -3,6 +3,7 @@
./firefox.nix
./alacritty.nix
./zotero.nix
./fontconfig.nix
];
# Global packages for desktop environments

View File

@ -0,0 +1,11 @@
{}: {
fonts = {
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Linux Biolinum O" "Noto Color Emoji" "Font Awesome 6 Brands" ];
monospace = [ "Hack" "Liberation Mono" "Noto Color Emoji" "Font Awesome 6 Brands" ];
};
};
};
}

View File

@ -17,6 +17,9 @@
recursive = true;
text = ''
picom -b --config ~/.config/picom/picom.conf
xrdb ~/.Xresources
autostart="dwmblocks feh-wallpaper-changer"
for program in $autostart; do

View File

@ -9,5 +9,36 @@
pkgs.flameshot
pkgs.st
pkgs.dmenu
pkgs.picom
pkgs.xclip
];
home.file.".Xresources" = {
recursive = true;
text = ''
!st terminal
st.alpha: 0.8
*.font: monospace:pixelsize=21:antialias=true:autohint=true;
*.font2: NotoColorEmoji:pixelsize=19:antialias=true:autohint=true;
! dwm
dwm.borderpx: 3
'';
};
home.file.".config/picom/picom.conf" = {
recursive = true;
text = ''
vsync = true;
backend = "xrender";
shadow = true;
shadow-radius = 10;
shadow-offset-x = -5;
shadow-offset-y = -5;
fading = true;
fade-in-step = 0.2;
fade-out-step = 0.2;
fade-delta = 50;
'';
};
}

View File

@ -15,8 +15,8 @@
domain = "git.bitlab21.com";
owner = "sam";
repo = "dwm";
rev = "011c32e72e45b124ad6ab5c8185945cd2e637270";
sha256 = "sha256-rFiGTynYPEDav7ydokkRAHpT2zPFtz+Hn9lZbufEOEg=";
rev = "52638a7cc6c886f6e85e850dea826e24bd963203";
sha256 = "sha256-azIBPGY26g/gLwEPAQTCdBWl0Z/8q7msNNn9/mw0yHw=";
};
};
};

View File

@ -12,8 +12,8 @@ pkgs.stdenv.mkDerivation {
domain = "git.bitlab21.com";
owner = "sam";
repo = "st";
rev = "1cde288ca34ad05984a0251a7879005128be085c";
sha256 = "sha256-4W9w/Efk+YCSP1VuUFr+jPXIyrlpktwxRPUOZHTAtx8=";
rev = "31e0ba8cb2086fb12741afc5fc3dfd938ca1f59b";
sha256 = "sha256-dbkXFbNr/lJveMeR7qXo7jGgF5+79S9vqKsLM7XM250=";
};
nativeBuildInputs = [