diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-12-25 12:03:06 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-12-25 12:03:06 +0100 |
commit | e8bb1f4a1844f07fc2f6973f2e7b400f2ddf2f3d (patch) | |
tree | 73e0028d455fef267c5c8a46c32a45430af9683c /desktop.lua |
Initial commit.
Diffstat (limited to 'desktop.lua')
-rw-r--r-- | desktop.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/desktop.lua b/desktop.lua new file mode 100644 index 0000000..376410b --- /dev/null +++ b/desktop.lua @@ -0,0 +1,22 @@ +local M = {} + +local awful = require("awful") + +local Desktop = {} + +function Desktop:new(name, nb_pages) + o = setmetatable({}, self) + + o.name = name + + o.pages = {} + for i = 1, nb_pages do + o.pages[i] = awful.tag.add(name .. i) + end + + return o +end + +M.Desktop = Desktop + +return M |