summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-11-09 17:18:20 -0600
committerTim Keller <tjkeller.xyz>2024-11-09 17:18:20 -0600
commitb6722f6fcc29e2c93b82315454c41087fb25170d (patch)
tree700708b60eefebe21248e0d2b28c5a33b51509be
parent42c09cc886ff24c237f87720056d267458c4a0f9 (diff)
downloadawesome-b6722f6fcc29e2c93b82315454c41087fb25170d.tar.xz
awesome-b6722f6fcc29e2c93b82315454c41087fb25170d.zip
move mouse.lua to buttons.lua to distinguish between builtin mouse module
-rw-r--r--buttons.lua (renamed from mouse.lua)15
1 files changed, 8 insertions, 7 deletions
diff --git a/mouse.lua b/buttons.lua
index 13165db..8b4a867 100644
--- a/mouse.lua
+++ b/buttons.lua
@@ -7,19 +7,19 @@ local alt = "Mod1"
local shift = "Shift"
local ctrl = "Control"
--- window buttons
-clientbuttons = gears.table.join(
- awful.button({ }, 1, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) end),
- awful.button({ super }, 1, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) awful.mouse.client.move(c) end),
- awful.button({ super }, 3, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) awful.mouse.client.resize(c) end)
-)
-
--root.buttons(gears.table.join(
-- awful.button({ }, 3, function () mymainmenu:toggle() end),
-- awful.button({ }, 4, awful.tag.viewnext),
-- awful.button({ }, 5, awful.tag.viewprev)
--))
+-- window buttons
+client_buttons = gears.table.join(
+ awful.button({ }, 1, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) end),
+ awful.button({ super }, 1, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) awful.mouse.client.move(c) end),
+ awful.button({ super }, 3, function (c) c:emit_signal("request::activate", "mouse_click", {raise = true}) awful.mouse.client.resize(c) end)
+)
+
-- wibar widgets
layout_buttons = gears.table.join(
awful.button({ }, 1, function() awful.layout.inc(1, awful.screen.focused().tags[0]) end)
@@ -45,3 +45,4 @@ volume_buttons = gears.table.join(
awful.button({ }, 4, function() volume_control.volume_inc(5) end),
awful.button({ }, 5, function() volume_control.volume_dec(5) end)
)
+