feat: new brave tab shortcut

This commit is contained in:
alina 🌸 2024-07-07 02:59:04 +03:00
parent e956f01761
commit d12d395e41
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
3 changed files with 27 additions and 0 deletions

View file

@ -67,6 +67,28 @@
"type": "basic" "type": "basic"
} }
] ]
},
{
"description": "New Brave tab",
"manipulators": [
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"option",
"command"
]
}
},
"to": [
{
"shell_command": "osascript /Users/teidesu/.config/new-brave-tab.scpt"
}
],
"type": "basic"
}
]
} }
] ]
}, },

View file

@ -0,0 +1,4 @@
tell application "Brave Browser"
activate
tell front window to make new tab at after (get active tab)
end tell

View file

@ -45,5 +45,6 @@
home.file.".config/alacritty/alacritty.toml".source = ./assets/alacritty.toml; home.file.".config/alacritty/alacritty.toml".source = ./assets/alacritty.toml;
home.file.".config/karabiner/karabiner.json".source = ./assets/karabiner.json; home.file.".config/karabiner/karabiner.json".source = ./assets/karabiner.json;
home.file.".config/new-brave-tab.scpt".source = ./assets/new-brave-tab.scpt;
}; };
} }