X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8132467d728e3d20d536f15a58f310fb0a8322a8..13da3c9add75b33a140a47de718a698dfeb3ce18:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index f101cdc..a9a4232 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -695,6 +695,7 @@ globalkeys = gears.table.join( bg_cursor = '#ff0000', textbox = widget, history_path = awful.util.get_cache_dir() .. "/history", + completion_callback = awful.completion.shell, hooks = { -- Replace the 'normal' Return with a custom one {{ }, 'Return', function(command) @@ -999,22 +1000,22 @@ awful.rules.rules = { end, }, }, - { rule_any = { class = { - "Gscan2pdf", - "Gimp", - }, - instance = { - "libreoffice", - } - }, - properties = { new_tag = { - layout = layouts.maximised, - volatile = true, - }, - switchtotag = true, - focus = true, - }, - }, +-- { rule_any = { class = { +-- "Gscan2pdf", +-- "Gimp", +-- }, +-- instance = { +-- "libreoffice", +-- } +-- }, +-- properties = { new_tag = { +-- layout = layouts.maximised, +-- volatile = true, +-- }, +-- switchtotag = true, +-- focus = true, +-- }, +-- }, --XX-- { rule = { class = "Gscan2pdf" }, --XX-- properties = { --XX-- switchtotag = true @@ -1138,10 +1139,10 @@ client.connect_signal("request::activate", function(c, context, hints) }, context) then gears.timer.delayed_call(function() -- we need a delayed call so that we execute *after layout changes - centre_mouse_on_area(client.focus) + if hints.raise and c == client.focus and client.focus:isvisible() then + move_mouse_to_area(client.focus) + end end) - else - dbg.dump(c, context, hints) end end)