From 84b29f7989fe18cf57f7948addf40af8a5050393 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Sun, 24 Apr 2022 06:16:41 +0800 Subject: update HiDPI config --- .Xresources | 10 ++++++++++ .xinitrc | 1 + .xprofile | 8 ++++++++ .zsh_aliases | 1 + 4 files changed, 20 insertions(+) create mode 100644 .Xresources create mode 100644 .xinitrc diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..083103c --- /dev/null +++ b/.Xresources @@ -0,0 +1,10 @@ +Xcursor.theme: cursor-theme +Xcursor.size: 64 +Xft.dpi: 192 + +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintfull +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..3c8c1a4 --- /dev/null +++ b/.xinitrc @@ -0,0 +1 @@ +xrdb -merge ~/.Xresources diff --git a/.xprofile b/.xprofile index c88c56e..f3be448 100644 --- a/.xprofile +++ b/.xprofile @@ -1,3 +1,11 @@ export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx + +export GDK_SCALE=2 +export GDK_DPI_SCALE=0.5 +export QT_AUTO_SCREEN_SCALE_FACTOR=1 + +xrandr --dpi 192 --output HDMI-A-0 --mode 1920x1080 --rotate left --scale 2x2 --output DisplayPort-0 --mode 3840x2160 --pos 2160x0 && feh --bg-center /home/steve/Pictures/Evil.png +xrandr --dpi 192 --output HDMI-A-0 --mode 1920x1080 --rotate left --scale 2x2 --output DisplayPort-0 --mode 3840x2160 --pos 2160x0 && feh --bg-center /home/steve/Pictures/Evil.png +xrandr --dpi 192 --output HDMI-A-0 --mode 1920x1080 --rotate left --scale 2x2 --output DisplayPort-0 --mode 3840x2160 --pos 2160x0 && feh --bg-center /home/steve/Pictures/Evil.png \ No newline at end of file diff --git a/.zsh_aliases b/.zsh_aliases index ed2c0d4..7797c2a 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -1,5 +1,6 @@ alias pdf='zathura' alias emacs='LC_ALL=zh_CN.UTF-8 emacs' +alias vim='LC_ALL=zh_CN.UTF-8 emacs' alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' alias cr0='cd ~/Vagrant/router0/' alias cr1='cd ~/Vagrant/router1/' -- cgit v1.2.3