diff options
Diffstat (limited to '.config/waywall/init.lua')
| -rw-r--r-- | .config/waywall/init.lua | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/.config/waywall/init.lua b/.config/waywall/init.lua index 853ac64..2d6320a 100644 --- a/.config/waywall/init.lua +++ b/.config/waywall/init.lua @@ -49,9 +49,9 @@ local pie_colors = { local normal_sens = 12.800000599064097 local tall_sens = 0.8634803836976988 -local pie_dst = { x = 1200, y = 400, w = 340, h = 340 } +local pie_dst = { x = 1200, y = 400, w = 340, h = 340 } local percent_dst = { x = 1280, y = 800, w = 34 * 6, h = 25 * 6 } -local eye_dst = { x = 30, y = 340, w = 700, h = 400 } +local eye_dst = { x = 30, y = 340, w = 700, h = 400 } local f3_root = { x = 1200, y = 150 } local f3_scale = 5 @@ -174,7 +174,6 @@ ModeManager:define("tall", { scene:enable_group("tall", false) waywall.set_sensitivity(normal_sens) end, - toggle_guard = function() return not waywall.get_key("F3") end, }) ModeManager:define("wide", { @@ -187,6 +186,13 @@ ModeManager:define("wide", { local ninbot_path = waywall_config_path .. "/result/bin/ninjabrain-bot" local ensure_ninbot = Processes.ensure_application(waywall, ninbot_path)("[Nn]injabrain.*\\.jar") +function prevent_double_maps(remaps) + for k, v in pairs(remaps) do + remaps[v] = k + end + return remaps +end + return { input = { layout = "us", @@ -195,10 +201,13 @@ return { repeat_delay = 300, sensitivity = normal_sens, confine_pointer = false, - remaps = { + remaps = prevent_double_maps({ ["MB5"] = "F3", ["Enter"] = "Esc", - }, + ["dot"] = "leftctrl", + ["slash"] = "rightshift", + ["MB4"] = "leftshift", + }), }, theme = { background = bg_color, @@ -212,13 +221,12 @@ return { scene_add_text = true, }, actions = Keys.actions({ - ["*-F2"] = function() return ModeManager:toggle("thin") end, - ["*-F4"] = function() return ModeManager:toggle("tall") end, + ["*-bracketleft"] = function() return ModeManager:toggle("thin") end, + ["*-bracketright"] = function() return ModeManager:toggle("tall") end, ["*-apostrophe"] = function() return ModeManager:toggle("wide") end, ["*-Alt_L"] = function() ensure_ninbot() helpers.toggle_floating() end, - ["*-Shift-f"] = waywall.toggle_fullscreen, }), } |
