feat: support daktilo

/Users/anon I hate this abs path
main
sudo pacman -Syu 2024-04-22 13:34:10 +07:00
parent faa7990ea3
commit 35418dd02e
4 changed files with 102 additions and 3 deletions

View File

@ -41,3 +41,5 @@ go build ./cmd/dot
- [btop](https://github.com/aristocratos/btop)
- [newsboat](https://github.com/newsboat/newsboat)
- [atuin](https://github.com/atuinsh/atuin)
- [gitui](https://github.com/extrawurst/gitui)
- [daktilo](https://github.com/orhun/daktilo)

86
data/daktilo/daktilo.toml Normal file
View File

@ -0,0 +1,86 @@
[[sound_preset]]
name = "holy_panda"
key_config = [
{ event = "press", keys = "Return", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_enter.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Backspace", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_back.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Space", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_space.mp3", volume = 3.0 },
] },
{ event = "press", keys = ".*", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_key1.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_key2.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_key3.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_key4.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/holy-panda/press_key5.mp3", volume = 3.0 },
], strategy = "random" },
]
[[sound_preset]]
name = "alpaca"
key_config = [
{ event = "press", keys = "Return", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_enter.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Backspace", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_back.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Space", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_space.mp3", volume = 3.0 },
] },
{ event = "press", keys = ".*", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_key1.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_key2.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_key3.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_key4.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/press_key5.mp3", volume = 3.0 },
], strategy = "random" },
{ event = "release", keys = "Return", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/release_enter.mp3", volume = 3.0 },
] },
{ event = "release", keys = "Backspace", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/release_back.mp3", volume = 3.0 },
] },
{ event = "release", keys = "Space", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/release_space.mp3", volume = 3.0 },
] },
{ event = "release", keys = ".*", files = [
{ path = "/Users/anon/go/src/github.com/nathan-fiscaletti/keyboardsounds/keyboardsounds/profiles/alpaca/release_key.mp3", volume = 3.0 },
] },
]
[[sound_preset]]
name = "topre"
key_config = [
{ event = "press", keys = "Return", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/ENTER.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Backspace", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/BACKSPACE.mp3", volume = 3.0 },
] },
{ event = "press", keys = "Space", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/SPACE.mp3", volume = 3.0 },
] },
{ event = "press", keys = ".*", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/GENERIC_R0.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/GENERIC_R1.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/GENERIC_R2.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/GENERIC_R3.mp3", volume = 3.0 },
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/press/GENERIC_R4.mp3", volume = 3.0 },
], strategy = "random" },
{ event = "release", keys = "Return", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/release/ENTER.mp3", volume = 3.0 },
] },
{ event = "release", keys = "Backspace", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/release/BACKSPACE.mp3", volume = 3.0 },
] },
{ event = "release", keys = "Space", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/release/SPACE.mp3", volume = 3.0 },
] },
{ event = "release", keys = ".*", files = [
{ path = "/Users/anon/go/src/github.com/tplai/kbsim/src/assets/audio/topre/release/GENERIC.mp3", volume = 3.0 },
] },
]

View File

@ -113,3 +113,7 @@ external = "~/.config/gitui/theme.ron"
[[apps.gitui.paths]]
internal = "data/gitui/theme.ron"
url = "https://raw.githubusercontent.com/catppuccin/gitui/main/theme/mocha.ron"
[[apps.daktilo.paths]]
internal = "data/daktilo/daktilo.toml"
external = "~/.config/daktilo/daktilo.toml"

View File

@ -142,10 +142,17 @@ if command -v pyenv &>/dev/null; then
eval "$(pyenv init -)"
fi
# Depend on your company
# https://github.com/ankitpokhrel/jira-cli
# Remember to jira init local not cloud
export JIRA_AUTH_TYPE=bearer
if command -v jira &>/dev/null; then
# Remember to jira init local not cloud
# Depend on your company
export JIRA_AUTH_TYPE=bearer
fi
# https://github.com/orhun/daktilo
if command -v daktilo &>/dev/null; then
export DAKTILO_CONFIG="$HOME/.config/daktilo/daktilo.toml"
fi
# https://github.com/talwat/pokeget-rs
rand_poke=$((RANDOM % 6))