Skip to content

Commit 8eabace

Browse files
committed
chore(awesomerc): use the group attribute to reduce boilerplate code
1 parent 4960086 commit 8eabace

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

awesomerc.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ awful.keyboard.append_global_keybindings({
329329
-- @DOC_NUMBER_KEYBINDINGS@
330330

331331
awful.keyboard.append_global_keybindings({
332+
group = "tag",
332333
awful.key {
333334
modifiers = { modkey },
334335
keygroup = "numrow",
335336
description = "only view tag",
336-
group = "tag",
337337
on_press = function (index)
338338
local screen = awful.screen.focused()
339339
local tag = screen.tags[index]
@@ -346,7 +346,6 @@ awful.keyboard.append_global_keybindings({
346346
modifiers = { modkey, "Control" },
347347
keygroup = "numrow",
348348
description = "toggle tag",
349-
group = "tag",
350349
on_press = function (index)
351350
local screen = awful.screen.focused()
352351
local tag = screen.tags[index]
@@ -359,7 +358,6 @@ awful.keyboard.append_global_keybindings({
359358
modifiers = { modkey, "Shift" },
360359
keygroup = "numrow",
361360
description = "move focused client to tag",
362-
group = "tag",
363361
on_press = function (index)
364362
if client.focus then
365363
local tag = client.focus.screen.tags[index]
@@ -373,7 +371,6 @@ awful.keyboard.append_global_keybindings({
373371
modifiers = { modkey, "Control", "Shift" },
374372
keygroup = "numrow",
375373
description = "toggle focused client on tag",
376-
group = "tag",
377374
on_press = function (index)
378375
if client.focus then
379376
local tag = client.focus.screen.tags[index]
@@ -387,7 +384,6 @@ awful.keyboard.append_global_keybindings({
387384
modifiers = { modkey },
388385
keygroup = "numpad",
389386
description = "select layout directly",
390-
group = "layout",
391387
on_press = function (index)
392388
local t = awful.screen.focused().selected_tag
393389
if t then

0 commit comments

Comments
 (0)