This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Make sure this is installed and placed within your spoons directory (https://github.com/Hammerspoon/Spoons/raw/master/Spoons/URLDispatcher.spoon.zip) | |
local urlDispatcher = hs.loadSpoon("URLDispatcher") | |
if urlDispatcher then | |
-- Configure Spoon variables directly | |
urlDispatcher.set_system_handler = true -- Attempt to set Hammerspoon as default browser | |
urlDispatcher.url_patterns = { | |
-- Notion links -> Chrome | |
{ "^https?://.*%.notion%.site", "com.google.Chrome" }, | |
-- Zoom links -> Zoom App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro compose a "<enter-command> source $HOME/.config/neomutt/scripts/filepicker.sh|<enter>" "Attach with file manager" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function history_search | |
set -l fuzzy_cmd | |
if type -q sk | |
set fuzzy_cmd sk | |
else if type -q fzf | |
set fuzzy_cmd fzf | |
else | |
echo "Error: Neither skim nor fzf is installed" | |
return 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alfred_script(query) | |
try | |
-- Check if WezTerm is running | |
set weztermRunning to false | |
tell application "System Events" | |
if (name of processes) contains "wezterm-gui" then | |
set weztermRunning to true | |
end if | |
end tell | |