lockhl: allow setting a default state
This allows e.g. to invert the warning for numlock
This commit is contained in:
parent
f2595cacca
commit
821d35c8df
2 changed files with 53 additions and 30 deletions
|
@ -18,7 +18,7 @@ for s in screen do
|
|||
table.insert(wibars, s.rightwibar)
|
||||
end
|
||||
local lockhl = require("lockhl")
|
||||
lockhl:setup(wibars, "#F2C740")
|
||||
lockhl:setup(wibars, "#F2C740", require("beautiful").bg_normal, { Num = true, Caps = false })
|
||||
|
||||
local function mpdserver(host)
|
||||
return function()
|
||||
|
@ -189,7 +189,7 @@ local myglobalkeys = awful.util.table.join(
|
|||
awful.key({}, "XF86Display", mb.grabf({ keymap = displaymap, name = "Rotate" })),
|
||||
|
||||
awful.key({ modkey }, "e", binder.spawn("rofi -show emoji")),
|
||||
awful.key({}, "Num_Lock", lockhl("Num")),
|
||||
awful.key({}, "Num_Lock", lockhl("Num", true)),
|
||||
awful.key({}, "Caps_Lock", lockhl("Caps"))
|
||||
|
||||
--}}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue