From 732529102fa2af57320daa393e8cd17426f35054 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Sat, 27 Aug 2022 20:51:00 +0200 Subject: [PATCH] 4k scaling for main pc :) (lg ergo 4k) --- .vscode/settings.json | 3 +++ computers/dev-pc/.Xresources | 6 ++++++ computers/dev-pc/install.sh | 3 ++- computers/dev-pc/xprofile.sh | 5 ++++- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 computers/dev-pc/.Xresources diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f164661 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["autohint", "hintstyle", "rgba"] +} diff --git a/computers/dev-pc/.Xresources b/computers/dev-pc/.Xresources new file mode 100644 index 0000000..51a3774 --- /dev/null +++ b/computers/dev-pc/.Xresources @@ -0,0 +1,6 @@ +Xft.dpi: 140 +Xft.antialias: true +Xft.hinting: true +Xft.rgba: rgb +Xft.hintstyle: hintfull +Xft.autohint: 0 diff --git a/computers/dev-pc/install.sh b/computers/dev-pc/install.sh index 9792834..f83362a 100644 --- a/computers/dev-pc/install.sh +++ b/computers/dev-pc/install.sh @@ -1,5 +1,6 @@ -#/bin/bash +#!/bin/bash MYPATH="$PWD/computers/dev-pc" ln -sf "$MYPATH/xprofile.sh" ~/.xprofile +ln -sf "$MYPATH/.Xresources" ~/.Xresources diff --git a/computers/dev-pc/xprofile.sh b/computers/dev-pc/xprofile.sh index 4c77a02..9ba57d7 100644 --- a/computers/dev-pc/xprofile.sh +++ b/computers/dev-pc/xprofile.sh @@ -1,2 +1,5 @@ #!/bin/sh -xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-0 --off --output DP-1 --off --output DVI-D-0 --off +export GDK_DPI_SCALE=1 +export ELM_SCALE=1 +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 3840x2160 --pos 0x0 --rotate normal --output DP-0 --off --output DP-1 --off --output DVI-D-0 --off