update darwin firefox and add small convenience tweaks

This commit is contained in:
Noah Masur 2023-09-06 15:21:59 -04:00
parent 67251a6d8d
commit 1a9ab975d1
4 changed files with 19 additions and 3 deletions

6
flake.lock generated
View File

@ -114,11 +114,11 @@
]
},
"locked": {
"lastModified": 1691800648,
"narHash": "sha256-tKbPH8kYK8CuNC7c3iZHEjqgpSS/nTrWVXGlFPobAvg=",
"lastModified": 1693788028,
"narHash": "sha256-WEql8sqP0/JtBLy/x+Jn4touPkEWWF9fSg9Db7Y8SLs=",
"owner": "bandithedoge",
"repo": "nixpkgs-firefox-darwin",
"rev": "4011a1903422d241c0619f7c631a15d27643fa30",
"rev": "8ad2d3343ca335edf34969a8d9c3eeec7cd7b468",
"type": "github"
},
"original": {

View File

@ -65,6 +65,12 @@ key("n", "<C-Down>", ":resize -2<CR>", { silent = true })
key("n", "<C-Left>", ":vertical resize -2<CR>", { silent = true })
key("n", "<C-Right>", ":vertical resize +2<CR>", { silent = true })
-- Quickfix
key("n", "]q", ":cnext<CR>")
key("n", "[q", ":cprevious<CR>")
key("n", "co", ":copen<CR>")
key("n", "cq", ":cclose<CR>")
-- Other
key("n", "<A-CR>", ":noh<CR>", { silent = true }) --- Clear search in VimWiki
key("n", "Y", "y$") --- Copy to end of line

View File

@ -10,6 +10,7 @@
glow # Markdown previews
skate # Key-value store
charm # Manage account and filesystem
pop # Send emails from a TUI
];
};

View File

@ -55,6 +55,15 @@ local function worklayout()
local layout = concat(left, right, laptop)
hs.layout.apply(layout)
end)
-- Reload Hammerspoon whenever layout changes
hs.screen.watcher.new(function()
-- Pause for 5 seconds to give time for layout to change
hs.timer.doAfter(5, function()
-- Perform the actual reload
hs.reload()
end)
end)
end
return worklayout