update display scaling
This commit is contained in:
parent
bb06cb7863
commit
e3d6de7434
2 changed files with 8 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue