mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
icons: move icon lookup in a seperate module
This commit is contained in:
parent
52090d90ea
commit
335b80262d
8 changed files with 104 additions and 26 deletions
|
@ -1,5 +1,7 @@
|
|||
-- Keyboard configuration with kbdd
|
||||
|
||||
local icons = loadrc("icons", "vbe/icons")
|
||||
|
||||
-- Global configuration
|
||||
if config.hostname == "guybrush" then
|
||||
os.execute("setxkbmap us,fr '' compose:rctrl ctrl:nocaps")
|
||||
|
@ -38,7 +40,8 @@ dbus.add_signal("ru.gentoo.kbdd",
|
|||
nid = naughty.notify({ title = "Keyboard layout changed",
|
||||
text = "New layout is <i>" .. layout .. "</i>",
|
||||
replaces_id = nid,
|
||||
icon = "/usr/share/icons/gnome/32x32/devices/keyboard.png",
|
||||
icon = icons.lookup({ name = "keyboard",
|
||||
type = "devices" }),
|
||||
screen = client.focus.screen }).id
|
||||
end)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue