1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2026-03-23 14:05:11 +00:00

Add mouse-middle-click on layout box icon

Middle-click to go straight to the first layout
This commit is contained in:
Sorky 2018-11-04 17:10:18 +11:00 committed by GitHub
parent 37d9619daa
commit a5701cc70c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,7 @@ function theme.at_screen_connect(s)
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(my_table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 2, function () awful.layout.set( awful.layout.layouts[1] ) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))