alt-p for wmenu and alt-b for background (works on my machine_

This commit is contained in:
Harrison DiAmbrosio 2025-12-07 11:44:59 -05:00
parent 1a5051236e
commit 3203839a58
2 changed files with 7 additions and 12 deletions

View file

@ -10,7 +10,6 @@ end
mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua") mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua")
package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua") package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua")
local master = function() local master = function()
local config = { local config = {
tag_count = 5, tag_count = 5,
@ -145,8 +144,13 @@ local master = function()
mez.input.add_keymap("alt", "p", { mez.input.add_keymap("alt", "p", {
press = function() press = function()
-- mez.api.spawn("echo 'the goods' | wmenu") mez.api.spawn("wmenu-run")
mez.api.spawn("swaybg -c \"#ff0000\"") end,
})
mez.input.add_keymap("alt", "b", {
press = function()
mez.api.spawn("swaybg -i ~/Images/wallpapers/void/gruv_void.png")
end, end,
}) })

View file

@ -59,15 +59,6 @@ pub fn init(wlr_layer_surface: *wlr.LayerSurfaceV1) *LayerSurface {
return self; 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 { pub fn deinit(self: *LayerSurface) void {
self.destroy.link.remove(); self.destroy.link.remove();
self.map.link.remove(); self.map.link.remove();