mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add initial spaces debug stuff
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
local wm = {
|
local wm = {
|
||||||
grid = require('ext.grid'),
|
grid = require('ext.grid'),
|
||||||
|
spaces = require("hs._asm.undocumented.spaces"),
|
||||||
|
|
||||||
-- configuration
|
-- configuration
|
||||||
animationDuration = 0.0,
|
animationDuration = 0.0,
|
||||||
@@ -141,6 +142,22 @@ function wm:init ()
|
|||||||
self.grid.snap(win)
|
self.grid.snap(win)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
--
|
||||||
|
-- move between spaces
|
||||||
|
--
|
||||||
|
|
||||||
|
bind({'cmd', 'ctrl'}, 'up',
|
||||||
|
function ()
|
||||||
|
local inspect = require('inspect')
|
||||||
|
|
||||||
|
local win = hs.window.focusedWindow()
|
||||||
|
|
||||||
|
print(inspect(win:screen():id()))
|
||||||
|
print(inspect(self.spaces.layout()))
|
||||||
|
end
|
||||||
|
)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user