Merge branch 'upstream-hidpi' into dev
merge hidpi support
This commit is contained in:
commit
d28d59b6b8
18
.install/hidpi.sh
Normal file
18
.install/hidpi.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
# ------------------------------------------------------
|
||||||
|
# hidpi support
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
echo -e "${GREEN}"
|
||||||
|
figlet "hidpi"
|
||||||
|
echo -e "${NONE}"
|
||||||
|
|
||||||
|
if [! -d ~/dotfiles ]; then
|
||||||
|
hidpiconfirm="Do you want 2x hidpi scale?"
|
||||||
|
if gum confirm "$hidpiconfirm"; then
|
||||||
|
sed -E 's/size = [0-9]+(\.[0-9]+)?/size = 18/' alacritty/alacritty.toml
|
||||||
|
sed -E 's/[0-9]+(\.[0-9]+)?/16/' .settings/rofi-font.rasi
|
||||||
|
echo '\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> hypr/conf/custom.conf
|
||||||
|
sed -E 's/1/2' hypr/conf/monitors/default.conf
|
||||||
|
fi
|
||||||
|
|
6
hypr/conf/hidpi.conf
Normal file
6
hypr/conf/hidpi.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
xwayland {
|
||||||
|
force_zero_scaling = true
|
||||||
|
}
|
||||||
|
|
||||||
|
env = GDK_SCALE,2
|
||||||
|
env = QT_SCALE_FACTOR=2
|
6
hypr/conf/monitors/4k.conf
Normal file
6
hypr/conf/monitors/4k.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Monitor Setup
|
||||||
|
# name: "Default"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
monitor=,preferred,auto,2
|
@ -60,6 +60,7 @@ if [[ $profile == *"Qtile"* ]]; then
|
|||||||
source .install/install-packages.sh
|
source .install/install-packages.sh
|
||||||
fi
|
fi
|
||||||
source .install/wallpaper.sh
|
source .install/wallpaper.sh
|
||||||
|
source .install/hidpi.sh
|
||||||
source .install/displaymanager.sh
|
source .install/displaymanager.sh
|
||||||
source .install/issue.sh
|
source .install/issue.sh
|
||||||
source .install/restore.sh
|
source .install/restore.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user