This commit is contained in:
2026-06-09 22:15:47 +01:00
parent 5b9b7f50dd
commit b05099be72
2 changed files with 15 additions and 15 deletions
+14 -14
View File
@@ -87,17 +87,17 @@ hl.window_rule({
-- 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
-- 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