summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/rc.lua b/rc.lua
index fc47b9c..a3b1099 100644
--- a/rc.lua
+++ b/rc.lua
@@ -224,7 +224,7 @@ awful.screen.connect_for_each_screen(function(s)
set_wallpaper(s)
-- Each screen has its own tag table.
- awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
+ awful.tag({ "1", "2", "3", "4", "5" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
@@ -394,10 +394,11 @@ clientkeys = awful.util.table.join(
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
-for i = 1, 9 do
+local tagkeys = { "t", "s", "r", "n", "m" }
+for i, v in ipairs(tagkeys) do
globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
- awful.key({ modkey }, "#" .. i + 9,
+ awful.key({ modkey }, v,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
@@ -407,7 +408,7 @@ for i = 1, 9 do
end,
{description = "view tag #"..i, group = "tag"}),
-- Toggle tag display.
- awful.key({ modkey, "Control" }, "#" .. i + 9,
+ awful.key({ modkey, "Control" }, v,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
@@ -417,7 +418,7 @@ for i = 1, 9 do
end,
{description = "toggle tag #" .. i, group = "tag"}),
-- Move client to tag.
- awful.key({ modkey, "Shift" }, "#" .. i + 9,
+ awful.key({ modkey, "Shift" }, v,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]
@@ -428,7 +429,7 @@ for i = 1, 9 do
end,
{description = "move focused client to tag #"..i, group = "tag"}),
-- Toggle tag on focused client.
- awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
+ awful.key({ modkey, "Control", "Shift" }, v,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]