No description
- Rust 90.3%
- Lua 9.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| docs | ||
| src | ||
| .gitignore | ||
| .luarc.json | ||
| .tombi.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| hyprland.lua | ||
| README.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
lua library that helps with writing hyprland configs
fbk = require("libfbk")
fbk.async:on_error(function (err)
hl.notification.create {
text = "Async error: " .. err,
timeout = 5000,
}
end)
local mainmod = fbk.utils:modkey("ALT")
local ctrl = fbk.utils:modkey("CTRL")
hl.bind(mainmod + "Return", hl.dsp.exec_cmd(("kitty")))
hl.bind(mainmod + ctrl + "Return", hl.dsp.exec_cmd(("fuzzel")))
hl.bind(mainmod + "N", function ()
fbk.async:spawn(function ()
local output = fbk.async:exec_cmd("sleep 1; uname -nrm; exit 0")
for _,v in pairs(output.stdout:trim():split_whitespace()) do
hl.notification.create {
text = v,
timeout = 5000,
}
fbk.async:sleep(0.2)
end
hl.notification.create {
text = "Exit code: " .. output.exit_code,
timeout = 5000,
}
end)
end)