Compare commits
3 Commits
62d9753cfc
...
bce404fbaf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bce404fbaf | ||
|
|
7de78b10d0 | ||
|
|
a6887fe85b |
@ -6,8 +6,9 @@
|
||||
# these need to be updated manually
|
||||
homebrew.casks = [
|
||||
"ghostty"
|
||||
"spotify"
|
||||
"keepassxc"
|
||||
"spotify"
|
||||
"xmind"
|
||||
];
|
||||
|
||||
system.defaults.dock.persistent-apps = [
|
||||
|
||||
@ -5,16 +5,42 @@ windowMove = function()
|
||||
win:moveToScreen(win:screen():next())
|
||||
end)
|
||||
|
||||
local fullscreen = function(win)
|
||||
local screen = win:screen()
|
||||
|
||||
local cell = hs.grid.get(win, screen)
|
||||
|
||||
cell.x = 0
|
||||
cell.y = 0
|
||||
cell.w = 24
|
||||
cell.h = 24
|
||||
|
||||
hs.grid.set(win, cell, screen)
|
||||
end
|
||||
|
||||
-- Windows seem to be indexed by primary screen first
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd" }, "pad1", function()
|
||||
hs.window.focusedWindow():moveToScreen(hs.screen.allScreens()[3])
|
||||
|
||||
-- 2025-01-30 09:50:56: 1 DELL S2721DGF 3 D3142823-261D-46EF-B9C2-5181C7FE2CA5
|
||||
-- 2025-01-30 09:50:56: 2 AV Receiver 72 B5A65BB6-E73E-4C3D-977C-33C86798AA5A
|
||||
-- 2025-01-30 09:50:56: 3 DELL S2722DGM 74 0F6BDB5B-840D-40BE-AAC9-B467A78E057A
|
||||
for i, screen in ipairs(hs.screen.allScreens()) do
|
||||
print(i, screen:name(), screen:id(), screen:getUUID())
|
||||
end
|
||||
|
||||
local win = hs.window.focusedWindow()
|
||||
fullscreen(win)
|
||||
win:moveToScreen(hs.screen.allScreens()[3])
|
||||
end)
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd" }, "pad2", function()
|
||||
hs.window.focusedWindow():moveToScreen(hs.screen.allScreens()[1])
|
||||
local win = hs.window.focusedWindow()
|
||||
fullscreen(win)
|
||||
win:moveToScreen(hs.screen.allScreens()[1])
|
||||
end)
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd" }, "pad3", function()
|
||||
hs.window.focusedWindow():moveToScreen(hs.screen.allScreens()[2])
|
||||
local win = hs.window.focusedWindow()
|
||||
fullscreen(win)
|
||||
win:moveToScreen(hs.screen.allScreens()[2])
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
@ -20,8 +20,8 @@ keybind = super+alt+up=unbind
|
||||
keybind = super+k=new_split:down
|
||||
keybind = super+l=new_split:right
|
||||
|
||||
keybind = super+alt+j=goto_split:top
|
||||
keybind = super+alt+k=goto_split:bottom
|
||||
keybind = super+alt+j=goto_split:up
|
||||
keybind = super+alt+k=goto_split:down
|
||||
keybind = super+alt+h=goto_split:left
|
||||
keybind = super+alt+l=goto_split:right
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user