Tablet stuff

This commit is contained in:
2026-06-09 21:53:08 +01:00
parent 72c989af32
commit 5b9b7f50dd
3 changed files with 28 additions and 12 deletions
+15
View File
@@ -86,3 +86,18 @@ hl.window_rule({
-- direction = "horizontal",
-- action = "workspace",
-- })
for _, tablet in ipairs({ "wacom-intuos-pro-s-pen", "wacom-intuos-pro-s-(wl)-pen" }) do
local monitor_id = "DP-1"
local monitor = hl.get_monitor(monitor_id)
local ratio = monitor.width / monitor.height
local tablet_size = { width = 157.48, height = 98.425 }
local new_tablet_height = tablet_size.width / ratio
hl.device({
name = tablet,
output = monitor_id,
active_area_size = { tablet_size.width, new_tablet_height },
active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 },
})
end