Thinkpad carbon x1 gen7 resolution on i3wm

舊的電腦電池不穩定,入手了新的筆電,
安裝了 Linux 折騰了一下 resolution 的部份。


目前設定檔放在這個 branch

REF: https://forum.endeavouros.com/t/ten-tweaks-for-eos-i3-wm-on-lenovo-with-high-dpi/10363

here's my setting for my thinkpad carbon x1 gen7:




.Xresources:

Xft.dpi:192
Xft.antialias: 1
rofi.dpi: 192




.config/i3/config:

font pango:DejaVu Sans Mono 9

exec --no-startup-id "GDK_SCALE=1 GDK_DPI_SCALE=1 ibus-daemon --xim -d -r"
# 輸入法選字選單會跑掉,所以 GDK 設回 1




environment variables:

export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export XCURSOR_SIZE=42
export QT_AUTO_SCREEN_SCALE_FACTOR=2 # 0
export QT_SCREEN_SCALE_FACTORS=2




/etc/default/grub:

GRUB_GFXMODE=1024x768x32,auto

then use the command: grub-mkconfig -o /boot/grub/grub.cfg



instead of greeter, I use greeter2,
so the config file is /etc/lightdm/lightdm-webkit2-greeter.conf:

# under the [greeter]
xft-dpi=192
font-name = Noto Sans 12



For chrome, from command line add flag --force-device-scale-factor=1.8,
For launcher, edit /usr/share/applications/google-chrome.desktop

Exec=/usr/bin/google-chrome-stable %U --force-device-scale-factor=1.8

留言

這個網誌中的熱門文章

[Antergos] disable touchpad

[Editor] 入坑 Atom => Markdown 轉 PDF