diff options
Diffstat (limited to 'utils.lua')
-rw-r--r-- | utils.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |