mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 18:05:37 +00:00
add changes from master
This commit is contained in:
parent
5a43ad997f
commit
4ad1cff80e
@ -17,7 +17,22 @@ function obj:init()
|
||||
local screen = win:screen()
|
||||
-- compute the unitRect of the focused window relative to the current screen
|
||||
-- and move the window to the next screen setting the same unitRect
|
||||
win:move(win:frame():toUnitRect(screen:frame()), screen:next(), true, 0)
|
||||
win:moveToScreen(screen:next(), true, true, 0)
|
||||
end)
|
||||
|
||||
hs.hotkey.bind({ "alt", "ctrl", "cmd" }, "b", function()
|
||||
local win = hs.window.focusedWindow()
|
||||
local screen = win:screen()
|
||||
win:moveToScreen(screen:previous(), true, true, 0)
|
||||
end)
|
||||
|
||||
hs.hotkey.bind({ "alt", "ctrl", "cmd" }, "m", function()
|
||||
-- get the focused window
|
||||
local win = hs.window.focusedWindow()
|
||||
-- maximize if possible
|
||||
for i = 1, 8 do
|
||||
win:maximize()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
@ -53,7 +53,8 @@ in {
|
||||
gl = "git log --graph --decorate --oneline -20";
|
||||
gll = "git log --graph --decorate --oneline";
|
||||
gco = "git checkout";
|
||||
gcom = "git switch master";
|
||||
gcom = ''
|
||||
git switch (git symbolic-ref refs/remotes/origin/HEAD | cut -d"/" -f4)'';
|
||||
gcob = "git switch -c";
|
||||
gb = "git branch";
|
||||
gbd = "git branch -d";
|
||||
|
Loading…
Reference in New Issue
Block a user