From 3203839a58f2110b096c0854d630d0a331e5f994 Mon Sep 17 00:00:00 2001 From: Harrison DiAmbrosio Date: Sun, 7 Dec 2025 11:44:59 -0500 Subject: [PATCH] alt-p for wmenu and alt-b for background (works on my machine_ --- runtime/share/mezzaluna/init.lua | 10 +++++++--- src/LayerSurface.zig | 9 --------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/runtime/share/mezzaluna/init.lua b/runtime/share/mezzaluna/init.lua index 42e7097..cfbe04f 100644 --- a/runtime/share/mezzaluna/init.lua +++ b/runtime/share/mezzaluna/init.lua @@ -10,7 +10,6 @@ end mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua") package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua") - local master = function() local config = { tag_count = 5, @@ -145,8 +144,13 @@ local master = function() mez.input.add_keymap("alt", "p", { press = function() - -- mez.api.spawn("echo 'the goods' | wmenu") - mez.api.spawn("swaybg -c \"#ff0000\"") + mez.api.spawn("wmenu-run") + end, + }) + + mez.input.add_keymap("alt", "b", { + press = function() + mez.api.spawn("swaybg -i ~/Images/wallpapers/void/gruv_void.png") end, }) diff --git a/src/LayerSurface.zig b/src/LayerSurface.zig index 79f3326..770136d 100644 --- a/src/LayerSurface.zig +++ b/src/LayerSurface.zig @@ -59,15 +59,6 @@ pub fn init(wlr_layer_surface: *wlr.LayerSurfaceV1) *LayerSurface { return self; } -pub fn allowKeyboard(self: *LayerSurface) void { - if(self.wlr_layer_surface.output == null or self.wlr_layer_surface.output.?.data == null) { - std.log.err("Layer surface does not have an associated output"); - } - - const output: *Output = @ptrCast(@alignCast(self.wlr_layer_surface.output.?.data.?)); - output.setFocused(); -} - pub fn deinit(self: *LayerSurface) void { self.destroy.link.remove(); self.map.link.remove();