moved all the input stuff to a seperate file and added switch detection for tablet mode
This commit is contained in:
@@ -24,38 +24,6 @@ hl.config({
|
||||
},
|
||||
})
|
||||
|
||||
-- Config for hyprgrass
|
||||
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 = 4.0,
|
||||
|
||||
-- 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 = false,
|
||||
|
||||
-- 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,
|
||||
},
|
||||
})
|
||||
hl.gesture({
|
||||
fingers = 3,
|
||||
direction = "horizontal",
|
||||
action = "workspace",
|
||||
})
|
||||
end
|
||||
|
||||
if Hostname == "mobile02" or Hostname == "mobile03" then
|
||||
hl.config({
|
||||
|
||||
Reference in New Issue
Block a user