Skip to content

Commit

Permalink
misc/apps: add languagetool
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlevi committed Feb 7, 2024
1 parent 098c7e9 commit 896f634
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion misc/apps/_init
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ install() {

case $(_os) in
macos)
brew install --cask microsoft-edge iina ticktick keepingyouawake
brew install --cask google-chrome iina ticktick keepingyouawake

# Install and enable languagetool as a service. Then you can use local server
# in browser languagetool extension.
# You can also download languagetool desktop app at https://languagetool.org/
brew install languagetool
brew services start languagetool

# Set iina as default music/video player
$DOTTY_HOME/base/macos/macos_set_default_apps.sh $DOTTY_HOME/misc/apps/macos_iina_as_default_app.txt
Expand All @@ -23,6 +29,13 @@ link() {
mklink $DOTTY_CONFIG_HOME/misc/apps/.* ~/
rm -rf $XDG_CONFIG_HOME/btop
mklink $DOTTY_CONFIG_HOME/misc/apps/config/btop $XDG_CONFIG_HOME/

# Add custom words to languagetool and restart server
if [[ -f $DOTTY_ASSETS_HOME/languagetool/spelling_custom.txt ]]; then
cp -f $DOTTY_ASSETS_HOME/languagetool/spelling_custom.txt \
$(brew --prefix languagetool)/libexec/org/languagetool/resource/en/hunspell/
brew services restart languagetool
fi
}

clean() {
Expand Down

0 comments on commit 896f634

Please sign in to comment.