summaryrefslogtreecommitdiff
path: root/.config/awesome
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome')
-rw-r--r--.config/awesome/awesome.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua
index 64c1f48..bd7fa24 100644
--- a/.config/awesome/awesome.lua
+++ b/.config/awesome/awesome.lua
@@ -305,9 +305,8 @@ end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
- awful.button({ modkey }, 1, awful.mouse.client.move),
- awful.button({ modkey }, 3, awful.mouse.client.resize),
-
+ awful.button({ modkey }, 1, function(c) client.focus=c; c:raise(); awful.mouse.client.move(c); end),
+ awful.button({ modkey }, 3, function(c) client.focus=c; c:raise(); awful.mouse.client.resize(c) end),
awful.button({ modkey }, 2, function(c) c:kill() end)
)
@@ -339,6 +338,9 @@ awful.rules.rules = {
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
+ -- Give Client focus when entering a screen
+ c:add_signal("property::screen", function(c) client.focus = c end)
+
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })