From: Samir Benmendil Date: Sun, 24 Nov 2019 16:02:02 +0000 (+0000) Subject: xinit: load host specific Xresources X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/33ba90f33454bc64a5f2c657d11451e8b1bec025 xinit: load host specific Xresources --- diff --git a/Xresources b/xinit/Xresources similarity index 94% rename from Xresources rename to xinit/Xresources index 3203bec..db79418 100644 --- a/Xresources +++ b/xinit/Xresources @@ -7,7 +7,13 @@ URxvt*iconFile: src/dotfiles/icons/shell.png ! {{{1 Font URxvt.font: xft:Hack:size=10 URxvt.skipBuiltinGlyphs: true + Xft.antialias: true +Xft.autohint: 0 +Xft.hinting: true +Xft.hintstyle: hintfull +Xft.lcdfilter: lcddefault +Xft.rgba: rgb ! {{{1 Scrolling URxvt*.scrollBar: false diff --git a/xinit/Xresources.d/skull-canyon b/xinit/Xresources.d/skull-canyon new file mode 100644 index 0000000..7931cad --- /dev/null +++ b/xinit/Xresources.d/skull-canyon @@ -0,0 +1 @@ +Xft.dpi: 168 diff --git a/xinitrc b/xinitrc index 996327e..268260f 100644 --- a/xinitrc +++ b/xinitrc @@ -1,7 +1,8 @@ #!/bin/sh logfile=$XDG_DATA_HOME/xorg/xinit.log -userresources=$HOME/.Xresources +userresources=$XDG_CONFIG_HOME/xinit/Xresources +userresources_d=$XDG_CONFIG_HOME/xinit/Xresources.d usermodmap=$HOME/.Xmodmap userprofile=$XDG_CONFIG_HOME/xinit/xprofile sysresources=/etc/X11/xinit/.Xresources @@ -25,6 +26,10 @@ if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi +if [ -f $userresources_d/$(hostname) ]; then + xrdb -merge $userresources_d/$(hostname) +fi + if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi