dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f50dfe0a7c33877d086b1658cf59e6a02bc2fe00
parent 3588c6d88da478293debdfcee861d757b164e9ce
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 25 Sep 2020 07:48:05 +0200

move X configuration for hires displays into separate files

Diffstat:
M.Xresources | 3---
A.Xresources-hidpi | 9+++++++++
A.xprofile-hidpi | 7+++++++
M.xsession | 5+++++
4 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -37,6 +37,3 @@ XTerm.termName: xterm-256color XTerm.vt100.scrollBar: false XTerm.vt100.bellIsUrgent: true xterm*faceName: dina:pixelsize=12:antialias=false - -/* for high-resolution displays */ -Xft.dpi: 200 diff --git a/.Xresources-hidpi b/.Xresources-hidpi @@ -0,0 +1,9 @@ +/* for high-resolution displays */ +/* must be loaded after .Xresources */ +Xft.dpi: 200 +Xcursor.size: 48 +Xcursor.theme: Adwaita +xterm*faceName: DejaVu Sans Mono +xterm*faceSize: 11 +*font: -*-dejavu sans mono-medium-r-normal-*-28-*-*-*-*-*-*-* +*fontList: -*-dejavu sans mono-medium-r-normal-*-28-*-*-*-*-*-*-* diff --git a/.xprofile-hidpi b/.xprofile-hidpi @@ -0,0 +1,7 @@ +#!/bin/sh +export GDK_SCALE=1.5 +export QT_SCALE_FACTOR=1.5 +export XCURSOR_SIZE=36 +# pkg: xcursor-themes +export XCURSOR_PATH=/usr/local/lib/X11/icons +export XCURSOR_THEME=whiteglass diff --git a/.xsession b/.xsession @@ -3,6 +3,11 @@ [ -f ~/.xprofile ] && . ~/.xprofile [ -f ~/.Xresources ] && xrdb ~/.Xresources +if [ "$(hostname)" = "lmsc.home" ]; then + [ -f ~/.xprofile-hidpi ] && . ~/.xprofile-hidpi + [ -f ~/.Xresources-hidpi ] && xrdb ~/.Xresources-hidpi +fi + # enable trackpoint scrolling xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1 xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2