chore(config): add workspace rules and tablet mapping, fix tldraw launch

This commit is contained in:
Prad Nukala committed 2026-08-28 14:14:20 -04:00
1 parent 40f107c81f
commit 8a510bec89
9 files changed
+75 -10

No files matched your search

+29
View File
@@ -55,3 +55,32 @@
-- Enable touchpad gestures for moving focus (helpful on scrolling layout).
-- hl.gesture({ fingers = 3, direction = "left", action = function() hl.dispatch(hl.dsp.focus({ direction = "l" })) end })
-- hl.gesture({ fingers = 3, direction = "right", action = function() hl.dispatch(hl.dsp.focus({ direction = "r" })) end })
-- Tablets / pens.
-- Hyprland maps a tablet across the *whole* monitor layout by default
-- (input.tablet.output is empty), so a pen stretches over eDP-1 + the external
-- display at once. Pin each tablet to a single output instead.
-- Device names come from `hyprctl devices` (the "Tablet" entry, not "Tablet Pad").
-- Built-in digitizer of the Flow Z13: it physically *is* the laptop panel.
hl.device({ name = "elan9008:00-04f3:43c7-stylus", output = "eDP-1" })
-- Wacom Intuos BT S: pinned to the Studio Display, matched on EDID description
-- so it survives a different DP connector after re-docking. With that display
-- absent, Hyprland maps across the whole layout, which undocked is just eDP-1.
--
-- The tablet is 152x95mm (16:10) and the display is 16:9, so the active area is
-- cropped to a 152x85.5mm (16:9) band to keep strokes undistorted while still
-- reaching every pixel. The band starts at the top edge, leaving the bottom
-- 9.5mm of the tablet as dead space (the pen there parks at the screen bottom).
hl.device({
name = "wacom-intuos-bt-s-pen",
output = "desc:Apple Computer Inc StudioDisplay 0x984262A7",
active_area_size = { 152, 85.5 },
active_area_position = { 0, 0 },
})
-- Left-handed use rotates the tablet 180 degrees: left_handed = true
-- The 4 ExpressKeys ("Tablet Pad") cannot be bound from Hyprland; only apps
-- that implement the tablet-v2 pad protocol (e.g. Krita) see them.