summaryrefslogtreecommitdiff
path: root/.config/waywall
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-12 17:31:38 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-12 17:31:38 -0500
commit2fdb1d63457dbc76f2063e64307bdaae3920a383 (patch)
tree20305db94453ad17f6aa9bed299c2d460ded75f0 /.config/waywall
parente521805e7f3f52214056720e3a280c9e9f2ec6e9 (diff)
update waywall config
Diffstat (limited to '.config/waywall')
-rw-r--r--.config/waywall/.editorconfig8
-rw-r--r--.config/waywall/init.lua24
l---------.config/waywall/result1
3 files changed, 25 insertions, 8 deletions
diff --git a/.config/waywall/.editorconfig b/.config/waywall/.editorconfig
new file mode 100644
index 0000000..be958c4
--- /dev/null
+++ b/.config/waywall/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 4
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,
}),
}
diff --git a/.config/waywall/result b/.config/waywall/result
new file mode 120000
index 0000000..ec0aa1a
--- /dev/null
+++ b/.config/waywall/result
@@ -0,0 +1 @@
+/nix/store/9qxzldcw89l1z53h2422bplmzhflckjn-ninjabrain-bot-1.5.1 \ No newline at end of file