From e83ab7a6f808006c62cc9d4d092def098c710bbc Mon Sep 17 00:00:00 2001 From: voidarc Date: Mon, 24 Aug 2026 15:30:43 +0100 Subject: [PATCH] added check for hyprgrass --- modules/settings/input.lua | 42 ++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/modules/settings/input.lua b/modules/settings/input.lua index 8e7d254..96cee93 100644 --- a/modules/settings/input.lua +++ b/modules/settings/input.lua @@ -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({