added check for hyprgrass

This commit is contained in:
2026-08-24 15:30:43 +01:00
parent 66c8951402
commit e83ab7a6f8

View File

@@ -25,30 +25,32 @@ hl.config({
}) })
-- Config for hyprgrass -- Config for hyprgrass
hl.config({ if hl.plugin.hyprgrass ~= nil then
plugin = { hl.config({
hyprgrass = { plugin = {
-- The default sensitivity is probably too low on tablet screens, hyprgrass = {
-- I recommend turning it up to 4.0 -- The default sensitivity is probably too low on tablet screens,
sensitivity = 2.0, -- I recommend turning it up to 4.0
sensitivity = 2.0,
-- in milliseconds -- in milliseconds
long_press_delay = 400, long_press_delay = 400,
-- resize windows by long-pressing on window borders and gaps. -- resize windows by long-pressing on window borders and gaps.
-- If general:resize_on_border is enabled, general:extend_border_grab_area is -- If general:resize_on_border is enabled, general:extend_border_grab_area is
-- used for floating windows -- used for floating windows
resize_on_border_long_press = true, resize_on_border_long_press = true,
-- in pixels, the distance from the edge that is considered an edge -- in pixels, the distance from the edge that is considered an edge
edge_margin = 10, edge_margin = 10,
},
}, },
}, gestures = {
gestures = { workspace_swipe_touch = true,
workspace_swipe_touch = true, workspace_swipe_cancel_ratio = 0.15,
workspace_swipe_cancel_ratio = 0.15, },
}, })
}) end
if Hostname == "mobile02" or Hostname == "mobile03" then if Hostname == "mobile02" or Hostname == "mobile03" then
hl.config({ hl.config({