update: hidpi move to hyprland.conf

This commit is contained in:
2024-06-12 23:15:23 -04:00
parent 36764c77b3
commit ea854b83e6
3 changed files with 36 additions and 33 deletions

View File

@@ -11,7 +11,10 @@ hidpiconfirm="Do you want 2x hidpi scale?"
if gum confirm "$hidpiconfirm"; then 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/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 sed -i -E 's/[0-9]+(\.[0-9]+)?/16/' ~/dotfiles-versions/$version/.settings/rofi-font.rasi
echo -e '\n\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> ~/dotfiles-versions/$version/hypr/conf/custom.conf 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/1/2/' ~/dotfiles-versions/$version/hypr/conf/monitors/default.conf
echo ":: finished hidpi patch." echo ":: finished hidpi patch."
fi fi

View File

@@ -3,4 +3,4 @@ xwayland {
} }
env = GDK_SCALE,2 env = GDK_SCALE,2
env = QT_SCALE_FACTOR=2 env = QT_SCALE_FACTOR,2

View File

@@ -1,48 +1,48 @@
# _ _ _ _ # _ _ _ _
# | | | |_ _ _ __ _ __| | __ _ _ __ __| | # | | | |_ _ _ __ _ __| | __ _ _ __ __| |
# | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | # | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` |
# | _ | |_| | |_) | | | | (_| | | | | (_| | # | _ | |_| | |_) | | | | (_| | | | | (_| |
# |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| # |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_|
# |___/|_| # |___/|_|
# #
# ----------------------------------------------------- # -----------------------------------------------------
# IMPORTANT: Don't overwrite ML4W configuration. # IMPORTANT: Don't overwrite ML4W configuration.
# Create your own custom configuration variation instead. # Create your own custom configuration variation instead.
# https://gitlab.com/stephan-raabe/dotfiles#hyprland-configuration-variations # https://gitlab.com/stephan-raabe/dotfiles#hyprland-configuration-variations
# ----------------------------------------------------- # -----------------------------------------------------
# Monitor # Monitor
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/monitor.conf source = ~/dotfiles/hypr/conf/monitor.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Autostart # Autostart
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/autostart.conf source = ~/dotfiles/hypr/conf/autostart.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Cursor # Cursor
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/cursor.conf source = ~/dotfiles/hypr/conf/cursor.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Environment # Environment
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/environment.conf source = ~/dotfiles/hypr/conf/environment.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Keyboard # Keyboard
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/keyboard.conf source = ~/dotfiles/hypr/conf/keyboard.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Load pywal color file # Load pywal color file
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/.cache/wal/colors-hyprland.conf source = ~/.cache/wal/colors-hyprland.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Load configuration files # Load configuration files
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/window.conf source = ~/dotfiles/hypr/conf/window.conf
source = ~/dotfiles/hypr/conf/decoration.conf source = ~/dotfiles/hypr/conf/decoration.conf
source = ~/dotfiles/hypr/conf/layout.conf source = ~/dotfiles/hypr/conf/layout.conf
@@ -50,22 +50,22 @@ source = ~/dotfiles/hypr/conf/misc.conf
source = ~/dotfiles/hypr/conf/keybinding.conf source = ~/dotfiles/hypr/conf/keybinding.conf
source = ~/dotfiles/hypr/conf/windowrule.conf source = ~/dotfiles/hypr/conf/windowrule.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Animation # Animation
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/animation.conf source = ~/dotfiles/hypr/conf/animation.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Custom # Custom
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/custom.conf source = ~/dotfiles/hypr/conf/custom.conf
# ----------------------------------------------------- # -----------------------------------------------------
# ML4W Configuration # ML4W Configuration
# ----------------------------------------------------- # -----------------------------------------------------
source = ~/dotfiles/hypr/conf/ml4w.conf source = ~/dotfiles/hypr/conf/ml4w.conf
# ----------------------------------------------------- # -----------------------------------------------------
# Environment for xdg-desktop-portal-hyprland # Environment for xdg-desktop-portal-hyprland
# ----------------------------------------------------- # -----------------------------------------------------
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP