Compare commits

..

No commits in common. "9a4c10442aca986460f928df79241625be90f95c" and "46f71fabdd3e80892120c80e21333b271b95dd6c" have entirely different histories.

3 changed files with 148 additions and 160 deletions

View File

@ -1,15 +0,0 @@
(function()
local hyper = { "ctrl", "alt", "cmd" }
-- move window to next screen
hs.hotkey.bind(hyper, "N", function()
local win = hs.window.focusedWindow()
win:moveToScreen(win:screen():next())
end)
for i = 1, 3 do
hs.hotkey.bind(hyper, "pad" .. i, function()
hs.window.focusedWindow():moveToScreen(i)
end)
end
end)()

View File

@ -1,8 +1,13 @@
(function()
hs.window.animationDuration = 0
hs.window.setShadows(false)
local hyper = { "ctrl", "alt", "cmd" }
-- move window to next screen
hs.hotkey.bind(hyper, "N", function()
local win = hs.window.focusedWindow()
win:moveToScreen(win:screen():next())
end)
local wm = {
sizes = { 1 / 2, 2 / 3, 1 / 3 },
}
@ -149,5 +154,3 @@
wm:init()
hs.notify.show("Welcome to Hammerspoon", "Have fun!", "")
end)()

View File

@ -43,7 +43,6 @@ in
"${homedir}/.hammerspoon/init.lua" = {
text = ''
${builtins.readFile ./hammerspoon/window-tiling.lua}
${builtins.readFile ./hammerspoon/window-move.lua}
'';
};
};
@ -136,10 +135,11 @@ in
launchd.agents.keepass-sync = {
enable = true;
config = {
Program = "${pkgs.writeShellScript "keepass-sync" ''
${pkgs.coreutils}/bin/cp "${homedir}/storage/.macshare/.secret/arnie.kdbx" "${homedir}/.secret/arnie.kdbx"
''}";
ProgramArguments = [];
Program = /bin/cp;
ProgramArguments = [
"${homedir}/storage/.macshare/.secret/arnie.kdbx"
"${homedir}/arnie.kdbx"
];
StartInterval = 60 * 10;
StandardErrorPath = "/var/log/keepass-sync.error.log";
StandardOutPath = "/var/log/keepass-sync.out.log";