From e3d6de7434dc3255961059de322da28d5f837c3b Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Thu, 28 Sep 2023 00:42:26 -0400 Subject: [PATCH] update display scaling --- modules/desktop/hyprland/displayswitch.sh | 2 +- modules/desktop/hyprland/home.nix | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/desktop/hyprland/displayswitch.sh b/modules/desktop/hyprland/displayswitch.sh index fd1defb..b588d2a 100644 --- a/modules/desktop/hyprland/displayswitch.sh +++ b/modules/desktop/hyprland/displayswitch.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if grep open /proc/acpi/button/lid/LID/state; then - hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1.5" + hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1" else if [[ $(hyprctl monitors | grep -c "Monitor") != 1 ]]; then hyprctl keyword monitor "eDP-1, disable" diff --git a/modules/desktop/hyprland/home.nix b/modules/desktop/hyprland/home.nix index 528defc..2fbe2b4 100644 --- a/modules/desktop/hyprland/home.nix +++ b/modules/desktop/hyprland/home.nix @@ -2,7 +2,8 @@ let hyprlandConf = '' - monitor=,preferred,auto,auto + monitor=,preferred,auto,1 + #monitor=,preferred,auto,auto # trigger when the switch is turning off # bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1" @@ -10,6 +11,11 @@ let # bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" bindl=,switch:Lid Switch, exec, displayswitch + # use this instead of hidpi patches + xwayland { + force_zero_scaling = true + } + $mainMod=SUPER general {