feat: add Keymap plugin (#68)

This commit is contained in:
blacku
2026-07-20 21:36:15 -04:00
committed by GitHub
parent 0fdd6a2b2f
commit e41961025e
30 changed files with 14547 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
--!nonstrict
local PANEL_ID = "blackbartblues/keymap:panel"
local glyph = "keyboard"
local showLabel = false
local function readConfig()
glyph = noctalia.getConfig("glyph") or "keyboard"
showLabel = noctalia.getConfig("show_label") == true
end
local function render()
barWidget.setGlyph(glyph)
barWidget.setText(showLabel and noctalia.tr("title") or "")
barWidget.setTooltip(noctalia.tr("widget.tooltip"))
end
function update()
noctalia.setUpdateInterval(60000)
readConfig()
render()
end
function onConfigChanged()
readConfig()
render()
end
function onClick()
noctalia.togglePanel(PANEL_ID)
end