# Scratchpads(float) are not scalling good from my 4k monitor to my laptop

**URL:** <http://forum.hypr.land/t/scratchpads-float-are-not-scalling-good-from-my-4k-monitor-to-my-laptop/2161>\
**Category:** General\
**Tags:** help\
**Created:** [October 2, 2026, 4:00pm UTC](http://forum.hypr.land/t/scratchpads-float-are-not-scalling-good-from-my-4k-monitor-to-my-laptop/2161 "2026-10-02T16:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alekgr](http://forum.hypr.land/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@alekgr](http://forum.hypr.land/u/alekgr)\
**Post date:** [October 2, 2026, 4:00pm UTC](http://forum.hypr.land/t/scratchpads-float-are-not-scalling-good-from-my-4k-monitor-to-my-laptop/2161/1 "2026-10-02T16:00:35Z")

</div>

I am using latest hyprland-git using lua and working great, but I just start using hyprland’s scratch pads. The only issue I have is when going from my docking setup(big monitor) to my laptop screen, my scratchpads aren’t transferring with correct size.

> local function apply\_monitor\_config()  
> local monitors = hl.get\_monitors()  
> local big\_monitor\_name = nil
> 
> ```auto
> -- Loop through active screens and find any HDMI-A output
> for _, m in ipairs(monitors) do
> if m.name and m.name:match("^HDMI%-A") then
> big_monitor_name = m.name
> break
> end
> end
> 
> -- Apply layouts based on detection
> if big_monitor_name then
> -- Big monitor on the left
> hl.monitor({
> output = big_monitor_name,
> mode = "3840x2160@60",
> position = "0x0",
> scale = "1",
> })
> -- Laptop screen on the right
> hl.monitor({
> output = "eDP-1",
> disabled = true,
> })
> 
> else
> -- Fallback: Laptop screen only when disconnected from the KVM
> hl.monitor({
> output = "eDP-1",
> disabled = false,
> mode = "1920x1080@60",
> position = "0x0",
> scale = "1",
> })
> 
> end
> 
> -- -- Re-bind special workspaces to active output so geometry re-evaluates nativel
> -- Restart Waybar cleanly
> hl.exec_cmd("systemctl --user restart waybar")
> 
> -- Respawn terminals on the new active resolution
> -- monitor_w and monitor_h in windowrules.lua will evaluate against the current display
> 
> ```
> 
> end
> 
> -- Connect the configuration handler to Hyprland’s window manager event hooks  
> –hl.on(“config.reloaded”, apply\_monitor\_config)  
> hl.on(“monitor.added”, apply\_monitor\_config)  
> hl.on(“monitor.removed”, apply\_monitor\_config)

> -- Run the check immediately on initialization  
> apply\_monitor\_config()

> hl.window\_rule({  
> name = “kitty\_dropterm\_scratchpad”,  
> match = { class = “kitty-dropterm” },  
> float = true,  
> size = { “monitor\_w \* 0.7”, “monitor\_h \* 0.7” },  
> center = true,  
> stay\_focused = true,  
> workspace = “special:term silent”,  
> })
> 
> hl.window\_rule({  
> name = “kitty\_dropneomutt\_scratchpad”,  
> match = { class = “kitty-dropneomutt” },  
> float = true,  
> size = { “monitor\_w \* 0.7”, “monitor\_h \* 0.7” },  
> center = true,  
> stay\_focused = true,  
> workspace = “special:neomutt silent”,  
> })
> 
> hl.window\_rule({  
> name = “kitty\_dropyazi\_scratchpad”,  
> match = { class = “kitty-dropyazi” },  
> float = true,  
> size = { “monitor\_w \* 0.7”, “monitor\_h \* 0.7” },  
> center = true,  
> stay\_focused = true,  
> workspace = “special:yazi silent”,  
> })
> 
> hl.window\_rule({  
> name = “kitty\_dropcmus\_scratchpad”,  
> match = { class = “kitty-dropcmus” },  
> float = true,  
> size = { “monitor\_w \* 0.7”, “monitor\_h \* 0.7” },  
> center = true,  
> stay\_focused = true,  
> workspace = “special:cmus silent”,  
> })
