You are not logged in.

#1 2019-02-27 16:46:17

7596ff
Member
Registered: 2018-10-23
Posts: 7
Website

[SOLVED] Xft.dpi: 125 being ignored in .xinitrc

I -Syu ed recently and rebooted, to find that my .Xresources file

Xft.dpi: 125

didn't seem to load. I checked the .xinitrc command that loads it

xrdb -merge -I$HOME ~/.Xresources

and ran it manually, which caused the settings to be merged properly. However, I can't check if this applied because I think the application that needs to respect this setting is my window manager itself. I can't figure out the source of the problem, putting "set -x" in front of the entire .xinit and redirecting the output to a log file doesn't give me much of anything. I'll post those at the end of the document for posterity's sake.

.zprofile:

[[ -f ~/.zshrc ]] && . ~/.zshrc

[[ $(tty) == "/dev/tty1" || $(tty) == "/dev/tty2" ]] && exec startx >~/xinit.log 2>&1

.xinitrc:

#!/bin/sh

set -x
xrdb -merge -I$HOME ~/.Xresources

dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

# start some programs
/usr/bin/dropbox start
nitrogen --restore &
compton -b
dex -a

# xmodmap
xmodmap -e "remove Mod1 = Alt_R"
xmodmap -e "remove Mod4 = Super_L"
xmodmap -e "add Mod3 = Alt_R"
xmodmap -e "add Mod3 = Super_L"

exec i3

pacman.log with x programs:

[2019-02-04 13:18] [ALPM] installed xorg-xmessage (1.0.5-1)
[2019-02-04 23:22] [ALPM] upgraded xkeyboard-config (2.25-1 -> 2.26-1)
[2019-02-04 23:22] [ALPM] upgraded xf86-input-libinput (0.28.1-1 -> 0.28.2-1)
[2019-02-05 21:29] [ALPM] upgraded x265 (2.9-1 -> 3.0-1)
[2019-02-10 11:11] [ALPM] upgraded xkeyboard-config (2.26-1 -> 2.26-2)
[2019-02-14 22:06] [ALPM] upgraded xterm (343-1 -> 344-1)
[2019-02-18 16:04] [ALPM] reinstalled xcb-util (0.4.0-2)
[2019-02-18 16:04] [ALPM] reinstalled xcb-util-keysyms (0.4.0-2)
[2019-02-18 16:04] [ALPM] reinstalled xcb-util-wm (0.4.1-2)
[2019-02-20 23:11] [ALPM] reinstalled xorg-xev (1.2.2-2)
[2019-02-21 09:48] [ALPM] upgraded xorg-xev (1.2.2-2 -> 1.2.3-1)
[2019-02-21 18:26] [ALPM] upgraded xorg-xhost (1.0.7-2 -> 1.0.8-1)
[2019-02-21 18:26] [ALPM] upgraded xorg-xlsatoms (1.1.2-2 -> 1.1.3-1)
[2019-02-21 18:26] [ALPM] upgraded xorg-xmodmap (1.0.9-2 -> 1.0.10-1)
[2019-02-21 18:26] [ALPM] upgraded xorg-xrdb (1.1.1-1 -> 1.2.0-1)
[2019-02-21 18:26] [ALPM] upgraded xorg-xvinfo (1.1.3-2 -> 1.1.4-1)
[2019-02-27 11:00] [ALPM] installed xsettingsd (1.0.0-2)
[2019-02-27 11:25] [ALPM] reinstalled xorg-xrdb (1.2.0-1)

xinit.log: https://gist.github.com/7596ff/0abbf0d0 … 6dc2e312e1

Last edited by 7596ff (2019-02-28 15:01:16)

Offline

#2 2019-02-27 16:57:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,826

Re: [SOLVED] Xft.dpi: 125 being ignored in .xinitrc

Try an additional "xrandr --dpi 125" before running i3.
You could also run "xterm" instead of i3, ensure to merge the resource and then start i3 by hand, but I guess it won't make a difference.

Online

#3 2019-02-27 23:23:19

7596ff
Member
Registered: 2018-10-23
Posts: 7
Website

Re: [SOLVED] Xft.dpi: 125 being ignored in .xinitrc

Neither "xrandr --dpi 125" nor xterm and ensuring Xft.dpi worked to change the dpi of any applications.

Offline

#4 2019-02-28 01:55:21

7596ff
Member
Registered: 2018-10-23
Posts: 7
Website

Re: [SOLVED] Xft.dpi: 125 being ignored in .xinitrc

The problem was dex executing too much stuff, and I also had gnome-tweaks installed while not running gnome so I don't know why that was the case.

Offline

#5 2019-02-28 13:04:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,826

Re: [SOLVED] Xft.dpi: 125 being ignored in .xinitrc

Great.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB