diff options
| author | Steve Lee <me@xiangyangli.com> | 2022-04-24 06:16:41 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2022-04-24 06:16:41 +0800 |
| commit | 84b29f7989fe18cf57f7948addf40af8a5050393 (patch) | |
| tree | 5b042142fa83c70e1e8da8d08abcf9b0f4ccb6b5 | |
| parent | e53bfc58885feb8bacafb7bc0b7a6bb7255e5583 (diff) | |
| download | dotfiles-84b29f7989fe18cf57f7948addf40af8a5050393.tar.xz dotfiles-84b29f7989fe18cf57f7948addf40af8a5050393.zip | |
update HiDPI config
| -rw-r--r-- | .Xresources | 10 | ||||
| -rw-r--r-- | .xinitrc | 1 | ||||
| -rw-r--r-- | .xprofile | 8 | ||||
| -rw-r--r-- | .zsh_aliases | 1 |
4 files changed, 20 insertions, 0 deletions
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 @@ -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/' |
