diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2025-11-27 17:35:48 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2025-11-27 17:35:48 -0500 |
| commit | 747b8a465a501211ebe41d5892eb9262f26743dc (patch) | |
| tree | 170ef89197a6648a378cec1ce45201442c3e163e /keys.lua | |
Squashed '.config/waywall/waywork/' content from commit f0b8424
git-subtree-dir: .config/waywall/waywork
git-subtree-split: f0b84240c63f4a13d6a8cb54a037424d5d64329a
Diffstat (limited to 'keys.lua')
| -rw-r--r-- | keys.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/keys.lua b/keys.lua new file mode 100644 index 0000000..1bb18e1 --- /dev/null +++ b/keys.lua @@ -0,0 +1,12 @@ +local K = {} + +--- Build actions table from simple mapping { [key] = fn, ... } +function K.actions(map) + local t = {} + for k, fn in pairs(map) do + t[k] = fn + end + return t +end + +return K |
