From 0e7f2c2785a36c2c4d5f7214411d3746a1667303 Mon Sep 17 00:00:00 2001 From: Kris Yotam <75515498+krisyotam@users.noreply.github.com> Date: Thu, 2 Jul 2026 00:30:19 -0500 Subject: [PATCH] xprofile: bump laptop HiDPI to 180 and scale cursor for M1 Pro retina --- .config/x11/xprofile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 1db775af457bbb2fa5bec90fdfa334035fb92cd2..6a339399dd500fe023d2be5e0a7d6715dde829ed 100644 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -9,13 +9,19 @@ export PATH="$HOME/.local/bin:$HOME/.local/bin/statusbar:$PATH" # Auto-detect device type and set DPI accordingly DEVICE_TYPE_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/srice/device-type" if [ -f "$DEVICE_TYPE_FILE" ] && [ "$(cat "$DEVICE_TYPE_FILE")" = "laptop" ]; then - xrandr --dpi 150 # Laptop HiDPI + xrandr --dpi 180 # Laptop HiDPI (M1 Pro 14" ~254ppi retina panel; raise/lower for taste) + export XCURSOR_SIZE=32 else xrandr --dpi 128 # Desktop 1440p scaled fi ~/.screenlayout/main.sh # Set up monitor layout setxkbmap -option caps:none # Completely disable Caps Lock xrdb -merge ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources # Load base Xresources +# HiDPI: on laptops tell Xft apps (st, dmenu, dwm bar) the real DPI and scale +# the cursor. Merged after the base so it wins. +if [ -f "$DEVICE_TYPE_FILE" ] && [ "$(cat "$DEVICE_TYPE_FILE")" = "laptop" ]; then + printf 'Xft.dpi: 180\nXcursor.size: 32\n' | xrdb -merge +fi xset s off -dpms s noblank # Disable DPMS/screensaver (freezes with dual-GPU + 4 monitors) setbg -s -c "$HOME/.local/share/wallpapers/plan9theme.png" "$HOME/.local/share/wallpapers/plan9.png" # plan9 solid bg + plan9 winter colorscheme setfan & # Set case fan RGB (ice blue)