summaryrefslogtreecommitdiff
path: root/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils.lua')
-rw-r--r--utils.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils.lua b/utils.lua
index 4e3bb90..eb698dc 100644
--- a/utils.lua
+++ b/utils.lua
@@ -3,6 +3,13 @@ local M = {}
local awful = require("awful")
local naughty = require("naughty")
+function M.tag_desk_idx(t)
+ return tonumber('0x' .. t.name:sub(1, 2))
+end
+function M.tag_page_idx(t)
+ return tonumber('0x' .. t.name:sub(3, 4))
+end
+
-- mapping from logical screen indices to indices corresponding to their
-- physical layout
function M.screen_physical(n)