Compare commits
2 Commits
76ce70df12
...
7e0dca86e6
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e0dca86e6 | |||
| b6c0dbf3a7 |
@@ -165,3 +165,20 @@ hl.layer_rule({
|
||||
blur = false,
|
||||
no_anim = true,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "kando",
|
||||
match = {
|
||||
class = "menu.kando.Kando",
|
||||
title = "Kando Menu",
|
||||
},
|
||||
no_blur = true,
|
||||
opaque = true,
|
||||
move = { 0, 0 },
|
||||
rounding = 0,
|
||||
size = { "100%", "100%" },
|
||||
border_size = 0,
|
||||
no_anim = true,
|
||||
float = true,
|
||||
pin = true,
|
||||
})
|
||||
|
||||
@@ -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({
|
||||
|
||||
66
modules/tablet.lua
Normal file
66
modules/tablet.lua
Normal file
@@ -0,0 +1,66 @@
|
||||
-- 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 = true,
|
||||
|
||||
-- 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",
|
||||
})
|
||||
|
||||
hl.notification.create({
|
||||
text = "not using main config",
|
||||
timeout = 8000,
|
||||
icon = "warning",
|
||||
})
|
||||
hl.plugin.hyprgrass.bind({
|
||||
pattern = { kind = "tap", fingers = 3 },
|
||||
action = hl.dsp.window.float(),
|
||||
})
|
||||
hl.plugin.hyprgrass.bind({
|
||||
pattern = { kind = "longpress", fingers = 3 },
|
||||
action = hl.dsp.window.drag(),
|
||||
mouse = true,
|
||||
})
|
||||
hl.plugin.hyprgrass.gesture({
|
||||
pattern = { kind = "swipe", fingers = 2, direction = "vertical" },
|
||||
action = "emulate_touchpad",
|
||||
emulate_fingers = 2,
|
||||
})
|
||||
hl.bind("switch:on:Intel HID switches", function()
|
||||
hl.notification.create({
|
||||
text = "tablet mode on",
|
||||
timeout = 8000,
|
||||
icon = "ok",
|
||||
})
|
||||
end, { locked = true })
|
||||
hl.bind("switch:off:Intel HID switches", function()
|
||||
hl.notification.create({
|
||||
text = "tablet mode off",
|
||||
timeout = 8000,
|
||||
icon = "ok",
|
||||
})
|
||||
end, { locked = true })
|
||||
end
|
||||
Reference in New Issue
Block a user