From a0f8b5fa6acdd1c2477fb1881dd9067956bf0ae6 Mon Sep 17 00:00:00 2001 From: delta Date: Sun, 29 Jan 2023 09:59:52 +0100 Subject: init dots --- .config/awesome/components/keybinds/client.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/awesome/components/keybinds/client.lua (limited to '.config/awesome/components/keybinds/client.lua') 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) -- cgit v1.2.3