add variable dpi per system
parent
ed68e3359b
commit
9731c42015
|
@ -7,12 +7,13 @@ i3 = with_lock: pkgs.callPackage ./i3/i3.nix {
|
||||||
inherit (bin) screenshot_public;
|
inherit (bin) screenshot_public;
|
||||||
inherit with_lock;
|
inherit with_lock;
|
||||||
};
|
};
|
||||||
|
xres = dpi: pkgs.callPackage ./x/default.nix { inherit dpi; };
|
||||||
in lib.mapAttrs (k: paths:
|
in lib.mapAttrs (k: paths:
|
||||||
pkgs.symlinkJoin { inherit paths; name = "dotfiles-${k}"; }
|
pkgs.symlinkJoin { inherit paths; name = "dotfiles-${k}"; }
|
||||||
) {
|
) {
|
||||||
ascanius = [(i3 true)];
|
ascanius = [(i3 true) (xres 109)];
|
||||||
woodhouse = [(i3 false)];
|
woodhouse = [(i3 false) (xres 44)];
|
||||||
pennyworth = [];
|
pennyworth = [];
|
||||||
frumar = [];
|
frumar = [];
|
||||||
jarvis = [(i3 true)];
|
jarvis = [(i3 true) (xres 192)];
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ URxvt*background: [85]#002b36
|
||||||
URxvt.scrollstyle: plain
|
URxvt.scrollstyle: plain
|
||||||
URxvt.scrollBar_right: true
|
URxvt.scrollBar_right: true
|
||||||
URxvt.perl-ext-common: default,matcher,font-size,vtwheel
|
URxvt.perl-ext-common: default,matcher,font-size,vtwheel
|
||||||
URxvt.url-launcher: firefox
|
URxvt.url-launcher: chromium
|
||||||
URxvt.matcher.button: 1
|
URxvt.matcher.button: 1
|
||||||
URxvt.urgentOnBell: True
|
URxvt.urgentOnBell: True
|
||||||
URxvt.depth: 32
|
URxvt.depth: 32
|
||||||
|
@ -73,3 +73,5 @@ rofi.font: Source Code Pro 12
|
||||||
URxvt.font-size.step: 4
|
URxvt.font-size.step: 4
|
||||||
URxvt.keysym.C-equal: perl:font-size:increase
|
URxvt.keysym.C-equal: perl:font-size:increase
|
||||||
URxvt.keysym.C-minus: perl:font-size:decrease
|
URxvt.keysym.C-minus: perl:font-size:decrease
|
||||||
|
|
||||||
|
#include "/home/yorick/dotfiles/result/setdpi"
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{writeTextDir, dpi ? 96}:
|
||||||
|
|
||||||
|
writeTextDir "setdpi" ''
|
||||||
|
Xft.dpi: ${toString dpi}
|
||||||
|
*dpi: ${toString dpi}
|
||||||
|
''
|
Loading…
Reference in New Issue