From 01020a197d1ab4c24c4811403564b465766d79f7 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 13 Oct 2021 20:51:56 -0700 Subject: [PATCH] layoutlist: Support scrollwheel by default. It acts like the default `rc.lua` tag/tasklist widgets. Idea from https://github.com/awesomeWM/awesome/issues/3388 --- lib/awful/widget/layoutlist.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/awful/widget/layoutlist.lua b/lib/awful/widget/layoutlist.lua index 9702a469..12257337 100644 --- a/lib/awful/widget/layoutlist.lua +++ b/lib/awful/widget/layoutlist.lua @@ -36,9 +36,11 @@ local surface = require("gears.surface") local module = {} -local default_buttons = gtable.join( - abutton({ }, 1, function(a) a.callback() end) -) +local default_buttons = { + abutton({ }, 1, function(a) a.callback( ) end), + abutton({ }, 4, function() alayout.inc(-1) end), + abutton({ }, 5, function() alayout.inc( 1) end), +} local function wb_label(item, _, textbox) local selected = alayout.get(item.screen) == item.layout