No description
  • Rust 90.3%
  • Lua 9.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
darkwater 996757bffa
All checks were successful
Build and publish packages / Build for x86_64 (push) Successful in 17s
Build and publish packages / Build for aarch64 (push) Successful in 17s
adjust test script cpath
2026-10-09 15:33:25 +02:00
.forgejo/workflows add ci 2026-10-09 15:14:56 +02:00
docs add docs 2026-10-09 15:08:42 +02:00
src add docs 2026-10-09 15:08:42 +02:00
.gitignore initial commit 2026-09-09 00:34:23 +02:00
.luarc.json cursed lua stuff 2026-09-10 21:29:31 +02:00
.tombi.toml initial commit 2026-09-09 00:34:23 +02:00
Cargo.lock remove shell 2026-10-09 14:00:13 +02:00
Cargo.toml remove shell 2026-10-09 14:00:13 +02:00
hyprland.lua adjust test script cpath 2026-10-09 15:33:25 +02:00
README.md add more string utils 2026-10-09 14:40:19 +02:00
rust-toolchain.toml cursed lua stuff 2026-09-10 21:29:31 +02:00
rustfmt.toml initial commit 2026-09-09 00:34:23 +02:00

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)