aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/components/keybinds/client.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/components/keybinds/client.lua')
-rw-r--r--.config/awesome/components/keybinds/client.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/awesome/components/keybinds/client.lua b/.config/awesome/components/keybinds/client.lua
new file mode 100644
index 0000000..35680c4
--- /dev/null
+++ b/.config/awesome/components/keybinds/client.lua
@@ -0,0 +1,15 @@
+local awful = require "awful"
+
+client.connect_signal("request::default_mousebindings", function()
+ awful.mouse.append_client_mousebindings({
+ awful.button({ }, 1, function (c)
+ c:activate { context = "mouse_click" }
+ end),
+ awful.button({ modkey }, 1, function (c)
+ c:activate { context = "mouse_click", action = "mouse_move" }
+ end),
+ awful.button({ modkey }, 3, function (c)
+ c:activate { context = "mouse_click", action = "mouse_resize" }
+ end)
+ })
+end)