Support xresources
This commit is contained in:
parent
027f988477
commit
2607a10537
3 changed files with 39 additions and 0 deletions
37
hm_modules/xresources.nix
Normal file
37
hm_modules/xresources.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
strPalette = with pkgs.rice;
|
||||
pkgs.lib.nix-rice.palette.toRgbHex { inherit (colorPalette) normal bright primary; };
|
||||
in
|
||||
{
|
||||
home.file.".Xresources" = {
|
||||
text = ''
|
||||
Xcursor.theme: "Quogir"
|
||||
Xcursor.size: 32
|
||||
|
||||
*.foreground: ${strPalette.primary.foreground}
|
||||
*.background: ${strPalette.primary.background}
|
||||
*.cursorColor: ${strPalette.normal.white}
|
||||
*.color0: ${strPalette.normal.black}
|
||||
*.color1: ${strPalette.normal.red}
|
||||
*.color2: ${strPalette.normal.green}
|
||||
*.color3: ${strPalette.normal.yellow}
|
||||
*.color4: ${strPalette.normal.blue}
|
||||
*.color5: ${strPalette.normal.magenta}
|
||||
*.color6: ${strPalette.normal.cyan}
|
||||
*.color7: ${strPalette.normal.white}
|
||||
*.color8: ${strPalette.bright.black}
|
||||
*.color9: ${strPalette.bright.red}
|
||||
*.color10: ${strPalette.bright.green}
|
||||
*.color11: ${strPalette.bright.yellow}
|
||||
*.color12: ${strPalette.bright.blue}
|
||||
*.color13: ${strPalette.bright.magenta}
|
||||
*.color14: ${strPalette.bright.cyan}
|
||||
*.color15: ${strPalette.bright.white}
|
||||
|
||||
xterm*faceName: ${pkgs.rice.font.monospace.name}
|
||||
xterm*faceSize: ${toString pkgs.rice.font.monospace.size}
|
||||
'';
|
||||
onChange = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources ";
|
||||
};
|
||||
}
|
||||
|
|
@ -117,6 +117,7 @@
|
|||
../hm_modules/vim.nix
|
||||
../hm_modules/webapp.nix
|
||||
../hm_modules/xidlehook.nix
|
||||
../hm_modules/xresources.nix
|
||||
../hm_modules/zathura.nix
|
||||
../hm_modules/zellij.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@
|
|||
../hm_modules/vim.nix
|
||||
../hm_modules/webapp.nix
|
||||
../hm_modules/xidlehook.nix
|
||||
../hm_modules/xresources.nix
|
||||
../hm_modules/zathura.nix
|
||||
../hm_modules/zellij.nix
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue