diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-16 16:09:18 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-16 16:09:18 +0100 |
commit | e2c6c45a2636b24b7efd1dacd2227689a0fe08c6 (patch) | |
tree | a7dd08523f710fa68860388bf25195d24d6fe63a /utils.lua | |
parent | 8aa3f747fc150b0fc2978effdd99f7daa7dd8cfd (diff) |
rc/workspace: handle screen removal cleanly
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) |