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