Skip to content
Open

Fix #25

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions .tool_config/better-touch-tool/andooown.bttpreset
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"BTTPresetCreatorNotes" : "",
"BTTPresetInfoURL" : "",
"BTTPresetName" : "andooown",
"BTTPresetColor" : "217.996015, 50.790900, 220.830000, 255.000000",
"BTTPresetUUID" : "72DC843D-CE37-4EB5-A9CE-2FC2FB3CAC4A",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "com.apple.finder",
"BTTAppName" : "Finder",
"BTTAppAutoInvertIcon" : 1,
"BTTTriggers" : [

]
},
{
"BTTAppBundleIdentifier" : "BT.L",
"BTTAppName" : "Recently Used",
"BTTAppAutoInvertIcon" : 1,
"BTTTriggers" : [

]
},
{
"BTTAppBundleIdentifier" : "BT.G",
"BTTAppName" : "Global",
"BTTAppAutoInvertIcon" : 1,
"BTTTriggers" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749005732.3440418,
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTUUID" : "F0D84C72-188E-400F-B412-E4B88ACC79D2",
"BTTPredefinedActionType" : 366,
"BTTPredefinedActionName" : "空のプレースホルダ",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 0,
"BTTMergeIntoTouchBarGroups" : 0
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749006027.3472881,
"BTTTriggerType" : 624,
"BTTTriggerTypeDescriptionReadOnly" : "トリガーを選択してください ",
"BTTTriggerClass" : "BTTTriggerTypeKeySequence",
"BTTUUID" : "BD71DCA2-721C-449A-8A61-752B0BA24A06",
"BTTPredefinedActionType" : 366,
"BTTPredefinedActionName" : "空のプレースホルダ",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 0,
"BTTAdditionalActions" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749006027.347275,
"BTTTriggerParentUUID" : "BD71DCA2-721C-449A-8A61-752B0BA24A06",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeKeySequence",
"BTTUUID" : "E69A5DA9-40BF-4487-B020-64385DFCDA90",
"BTTLayoutIndependentActionChar" : "d",
"BTTShortcutToSend" : "102",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 1
}
],
"BTTKeySequence" : {
"BTTPauseBetween" : 0.29999999999999999,
"BTTKeyCount" : 2,
"BTTKeyboardType" : -2052004921,
"BTTKeySequenceDownKeys" : [
{
"BTTKEYCode" : 55,
"BTTKEYDown" : 1,
"BTTKEYOrderRelevant" : 1,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698624
}
],
"BTTKeySequenceMixedKeys" : [
{
"BTTKEYCode" : 55,
"BTTKEYDown" : 1,
"BTTKEYOrderRelevant" : 1,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698624
},
{
"BTTKEYCode" : 55,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698624
}
],
"BTTKeySequenceUpKeys" : [
{
"BTTKEYCode" : 55,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698624
}
]
}
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749005772.3289399,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTUUID" : "48AA37B4-3F0E-46A8-BF42-FE528B6DA105",
"BTTPredefinedActionType" : 366,
"BTTPredefinedActionName" : "空のプレースホルダ",
"BTTKeyboardShortcutKeyboardType" : 0,
"BTTTriggerOnDown" : 1,
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTShortcutKeyCode" : -1,
"BTTOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0
},
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749006044.377753,
"BTTTriggerType" : 624,
"BTTTriggerTypeDescriptionReadOnly" : "トリガーを選択してください ",
"BTTTriggerClass" : "BTTTriggerTypeKeySequence",
"BTTUUID" : "E95878FF-5A38-4B0B-BE05-D06268DADD4E",
"BTTPredefinedActionType" : 366,
"BTTPredefinedActionName" : "空のプレースホルダ",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 1,
"BTTAdditionalActions" : [
{
"BTTActionCategory" : 0,
"BTTLastUpdatedAt" : 1749006044.389554,
"BTTTriggerParentUUID" : "E95878FF-5A38-4B0B-BE05-D06268DADD4E",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeKeySequence",
"BTTUUID" : "96E1426B-67CB-4408-85D9-F136F5729157",
"BTTLayoutIndependentActionChar" : "k",
"BTTShortcutToSend" : "104",
"BTTEnabled" : 1,
"BTTEnabled2" : 1,
"BTTOrder" : 1
}
],
"BTTKeySequence" : {
"BTTPauseBetween" : 0.29999999999999999,
"BTTKeyCount" : 2,
"BTTKeyboardType" : -2052004921,
"BTTKeySequenceDownKeys" : [
{
"BTTKEYCode" : 54,
"BTTKEYDown" : 1,
"BTTKEYOrderRelevant" : 1,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698816
}
],
"BTTKeySequenceMixedKeys" : [
{
"BTTKEYCode" : 54,
"BTTKEYDown" : 1,
"BTTKEYOrderRelevant" : 1,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698816
},
{
"BTTKEYCode" : 54,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698816
}
],
"BTTKeySequenceUpKeys" : [
{
"BTTKEYCode" : 54,
"BTTKEYRequired" : 1,
"BTTKEYTime" : 770698816
}
]
}
}
]
}
],
"BTTPresetSnapAreas" : [

]
}
13 changes: 13 additions & 0 deletions .tool_config/raycast/scripts/switch-input-to-english.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Switch Input to English
# @raycast.mode silent

# Optional parameters:
# @raycast.icon 🤖

keyboardswitcher select ABC
echo "English"

13 changes: 13 additions & 0 deletions .tool_config/raycast/scripts/switch-input-to-japanese.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Switch Input to Japanese
# @raycast.mode silent

# Optional parameters:
# @raycast.icon 🤖

keyboardswitcher select Hiragana
echo "Japanese"

35 changes: 20 additions & 15 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,26 @@
export LANG=ja_JP.UTF-8
export LC_CTYPE=ja_JP.UTF-8

has() {
type "$1" > /dev/null 2>&1
}

is_osx() {
[[ $(uname) == 'Darwin' ]]
}
is_linux() {
[[ $(uname) == 'Linux' ]]
}

is_in_vscode() {
[[ $TERM_PROGRAM == 'vscode' ]]
}

# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
if ! is_in_vscode && [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

Expand All @@ -26,19 +41,8 @@ done
autoload -Uz compinit
compinit

has() {
type "$1" > /dev/null 2>&1
}

is_osx() {
[[ $(uname) == 'Darwin' ]]
}
is_linux() {
[[ $(uname) == 'Linux' ]]
}

# Auto attach or launch tmux
if [[ ! -n $TMUX && $- == *l* ]]; then
if ! is_in_vscode && [[ ! -n $TMUX && $- == *l* ]]; then
if tmux list-session > /dev/null 2>&1; then
tmux attach-session
else
Expand All @@ -51,8 +55,7 @@ if has "direnv"; then
fi

if has "asdf"; then
ASDF_DIR=$(brew --prefix asdf)
source $ASDF_DIR/asdf.sh
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
fi

if has "anyenv" || [ -e $HOME/.anyenv ]; then
Expand Down Expand Up @@ -93,3 +96,5 @@ if [ -e $HOME/.zsh_local_env ]; then
source $HOME/.zsh_local_env
fi

bindkey -e

16 changes: 2 additions & 14 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "homebrew/services"
tap "robotsandpencils/made"

brew "ag"
Expand All @@ -16,8 +12,8 @@ brew "ghq"
brew "git"
brew "git-lfs"
brew "hugo"
brew "imagemagick"
brew "jq"
brew "lutzifer/tap/keyboardSwitcher"
brew "mas"
brew "mint"
brew "peco"
Expand All @@ -30,27 +26,19 @@ brew "zsh"
brew "zsh-completions"

cask "1password"
cask "alacritty"
cask "alfred"
cask "bartender"
cask "bettertouchtool"
cask "discord"
cask "docker"
cask "dropbox"
cask "google-chrome"
cask "google-cloud-sdk"
cask "google-drive"
cask "iterm2"
cask "jasper"
cask "jetbrains-toolbox"
cask "karabiner-elements"
cask "raycast"
cask "slack"
cask "spotify"
cask "tweeten"
cask "visual-studio-code"

mas "Amphetamine", id: 937984704
mas "iStat Menus", id: 1319778037
mas "Keynote", id: 409183694
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
Expand Down