Bindings and cleanup
This commit is contained in:
parent
ac8249a394
commit
fb0c3ff086
|
@ -178,6 +178,9 @@ local myglobalkeys = awful.util.table.join(
|
||||||
awful.key({ }, "XF86Explorer", binder.spawn("touchpad")),
|
awful.key({ }, "XF86Explorer", binder.spawn("touchpad")),
|
||||||
awful.key({ "Shift" }, "XF86Explorer", binder.spawn("wacomtouch")),
|
awful.key({ "Shift" }, "XF86Explorer", binder.spawn("wacomtouch")),
|
||||||
|
|
||||||
|
awful.key({ }, "XF86MonBrightnessUp", binder.spawn("xbacklight -inc 5")),
|
||||||
|
awful.key({ }, "XF86MonBrightnessDown", binder.spawn("xbacklight -dec 5")),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioPlay", mpd.ctrl.toggle),
|
awful.key({ }, "XF86AudioPlay", mpd.ctrl.toggle),
|
||||||
awful.key({ }, "XF86AudioNext", mpd.ctrl.next),
|
awful.key({ }, "XF86AudioNext", mpd.ctrl.next),
|
||||||
awful.key({ }, "XF86AudioPrev", mpd.ctrl.prev),
|
awful.key({ }, "XF86AudioPrev", mpd.ctrl.prev),
|
||||||
|
|
16
rc.lua
16
rc.lua
|
@ -60,16 +60,18 @@ end)
|
||||||
|
|
||||||
audiowheel = require("audiowheel")
|
audiowheel = require("audiowheel")
|
||||||
speakerwheel = audiowheel {
|
speakerwheel = audiowheel {
|
||||||
image_prefix = "/usr/share/icons/Adwaita/256x256/legacy/",
|
volume_control = { cardid = 0 },
|
||||||
|
image_prefix = "/usr/share/icons/ePapirus/24x24/panel/",
|
||||||
}
|
}
|
||||||
|
|
||||||
micwheel = audiowheel {
|
micwheel = audiowheel {
|
||||||
image_prefix = "/usr/share/icons/Adwaita/48x48/legacy/",
|
image_prefix = "/usr/share/icons/ePapirus/24x24/panel/",
|
||||||
image_muted = "microphone-sensitivity-muted.png",
|
image_muted = "microphone-sensitivity-muted.svg",
|
||||||
image_low = "microphone-sensitivity-low.png",
|
image_low = "microphone-sensitivity-low.svg",
|
||||||
image_medium = "microphone-sensitivity-medium.png",
|
image_medium = "microphone-sensitivity-medium.svg",
|
||||||
image_high = "microphone-sensitivity-high.png",
|
image_high = "microphone-sensitivity-high.svg",
|
||||||
volume_control = { tooltip = false, channel = "Dmic0" }
|
--volume_control = { cardid = 0, tooltip = false, channel = "Dmic0" }
|
||||||
|
volume_control = { tooltip = false, type = "source" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,11 +73,13 @@ awful.rules.rules = {
|
||||||
properties = { screen = screen_chat, tag = "5" }},
|
properties = { screen = screen_chat, tag = "5" }},
|
||||||
{ rule_any = { class = {"Element"}, instance = {"element"}},
|
{ rule_any = { class = {"Element"}, instance = {"element"}},
|
||||||
properties = { screen = screen_chat, tag = "1" }},
|
properties = { screen = screen_chat, tag = "1" }},
|
||||||
{ rule = { class = "Telegram" },
|
{ rule = { class = "TelegramDesktop" },
|
||||||
except = { name = "Media viewer" },
|
except = { name = "Media viewer" },
|
||||||
properties = { screen = screen_chat, tag = "3" }},
|
properties = { screen = screen_chat, tag = "3" }},
|
||||||
{ rule = { class = "Telegram", name = "Media viewer" },
|
{ rule = { class = "Telegram", name = "Media viewer" },
|
||||||
properties = { size_hints_honor = true, floating = true, fullscreen = true }},
|
properties = { size_hints_honor = true, floating = true, fullscreen = true }},
|
||||||
|
{ rule = { class = "TelegramDesktop", name = "Media viewer" },
|
||||||
|
properties = { size_hints_honor = true, floating = true, fullscreen = true }},
|
||||||
{ rule_any = { role ={ "conversation" }, instance = { "Weechat" }},
|
{ rule_any = { role ={ "conversation" }, instance = { "Weechat" }},
|
||||||
callback = awful.client.setslave },
|
callback = awful.client.setslave },
|
||||||
{ rule = { class = "Irssi"},
|
{ rule = { class = "Irssi"},
|
||||||
|
|
|
@ -106,12 +106,9 @@ function binder.apply()
|
||||||
naughty.notify { text="Reloading key bindings" }
|
naughty.notify { text="Reloading key bindings" }
|
||||||
local allkeys = awful.util.table.clone(globalkeys)
|
local allkeys = awful.util.table.clone(globalkeys)
|
||||||
for k,v in pairs(globalkeyfuncs) do
|
for k,v in pairs(globalkeyfuncs) do
|
||||||
print("k:" .. k)
|
|
||||||
local loadedkeys = v()
|
local loadedkeys = v()
|
||||||
print(inspect(loadedkeys))
|
|
||||||
allkeys = awful.util.table.join(allkeys, loadedkeys)
|
allkeys = awful.util.table.join(allkeys, loadedkeys)
|
||||||
end
|
end
|
||||||
print(inspect(allkeys))
|
|
||||||
root.keys(allkeys)
|
root.keys(allkeys)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue