Update gambled23/mangowm-keymode to 1.0.2 --- Hide on default keymode setting (#40)

* feat(keymode): Setting to hide on default keymode

* docs(keymode): Updated thumbnail with new tags

* docs(readme): added new setting
This commit is contained in:
César González Girón
2026-07-17 20:11:11 -04:00
committed by GitHub
parent 3a5c4be1db
commit e720bcbacc
5 changed files with 20 additions and 6 deletions
+10 -4
View File
@@ -1,5 +1,6 @@
local showText = noctalia.getConfig("show_text")
local notifyChange = noctalia.getConfig("notify_change")
local hideOnDefault = noctalia.getConfig("hide_on_default")
local currentKeymode = "default"
@@ -17,11 +18,16 @@ end)
function update()
noctalia.setUpdateInterval(1000)
barWidget.setGlyph("keyboard")
if showText then
barWidget.setText(currentKeymode)
if hideOnDefault and currentKeymode == "default" then
barWidget.setVisible(false)
else
barWidget.setText("")
barWidget.setVisible(true)
barWidget.setGlyph("keyboard")
if showText then
barWidget.setText(currentKeymode)
else
barWidget.setText("")
end
end
end