Compare commits
24 Commits
zshfish
...
upstream-h
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b9e7c6175 | |||
| eb2d78da76 | |||
| 186fee59c8 | |||
| f631af1696 | |||
| 13750bb854 | |||
| fa96759ddf | |||
| ea854b83e6 | |||
| 36764c77b3 | |||
| 8828e93f78 | |||
| c99a2809ce | |||
| 08096e83ff | |||
| a0f43ada10 | |||
| b4a5e4d99c | |||
| 45214117ef | |||
| 0d4b85956e | |||
| 8565146242 | |||
| d2a368d166 | |||
| c6678dcc96 | |||
| b6156e3233 | |||
| 0da2e83f29 | |||
| 9f8b285ba3 | |||
| 671a47f09e | |||
| 943cb53c93 | |||
| c3bfe46e79 |
21
.install/hidpi.sh
Executable file
21
.install/hidpi.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
|
||||
# ------------------------------------------------------
|
||||
# hidpi support
|
||||
# ------------------------------------------------------
|
||||
|
||||
echo -e "${GREEN}"
|
||||
figlet "hidpi"
|
||||
echo -e "${NONE}"
|
||||
|
||||
hidpiconfirm="Do you want 2x hidpi scale?"
|
||||
if gum confirm "$hidpiconfirm"; then
|
||||
sed -i -E 's/size = [0-9]+(\.[0-9]+)?/size = 16/' ~/dotfiles-versions/$version/alacritty/alacritty.toml
|
||||
sed -i -E 's/[0-9]+(\.[0-9]+)?/16/' ~/dotfiles-versions/$version/.settings/rofi-font.rasi
|
||||
echo -e '\n# -----------------------------------------------------' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
||||
echo -e '# HiDPI Scaling' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
||||
echo -e '# -----------------------------------------------------' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
||||
echo -e 'source = ~/dotfiles/hypr/conf/hidpi.conf' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
||||
sed -i -E 's/1/2/' ~/dotfiles-versions/$version/hypr/conf/monitors/default.conf
|
||||
#sed -i -E 's/24/32/' ~/dotfiles-versions/$version/hypr/conf/cursor.conf
|
||||
echo ":: finished hidpi patch."
|
||||
fi
|
||||
@@ -1,5 +1,5 @@
|
||||
[font]
|
||||
size = 12.0
|
||||
size = 16.0
|
||||
|
||||
[font.normal]
|
||||
family = "FiraCode Nerd Font"
|
||||
|
||||
@@ -1 +1 @@
|
||||
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
|
||||
exec-once = hyprctl setcursor Bibata-Modern-Ice 32
|
||||
|
||||
@@ -9,4 +9,3 @@ env = QT_QPA_PLATFORM,wayland
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = GDK_SCALE,1
|
||||
|
||||
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_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
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
|
||||
@@ -61,6 +61,7 @@ if [[ $profile == *"Qtile"* ]]; then
|
||||
source .install/install-packages.sh
|
||||
fi
|
||||
source .install/wallpaper.sh
|
||||
source .install/hidpi.sh
|
||||
source .install/displaymanager.sh
|
||||
source .install/issue.sh
|
||||
source .install/restore.sh
|
||||
|
||||
Reference in New Issue
Block a user