mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-04 18:36:33 -08:00
Compare commits
11 Commits
63cd7242b6
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3218ceada1 | |||
| dca8f0df32 | |||
|
da80481d63
|
|||
|
e6c89cf38b
|
|||
|
35357f1674
|
|||
|
bd6eefe084
|
|||
| 4eda790932 | |||
| d57275597d | |||
| 75a9cc360c | |||
| 5b9cbbba99 | |||
|
c867434c8d
|
@@ -1 +0,0 @@
|
|||||||
settings.json##os.Linux
|
|
||||||
43
.claude/settings.json##os.Darwin
Normal file
43
.claude/settings.json##os.Darwin
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"attribution": {
|
||||||
|
"commit": "",
|
||||||
|
"pr": ""
|
||||||
|
},
|
||||||
|
"permissions": {
|
||||||
|
"deny": [
|
||||||
|
"Read(.env)",
|
||||||
|
"Read(~/.aws/**)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hooks": {
|
||||||
|
"Notification": [
|
||||||
|
{
|
||||||
|
"matcher": "",
|
||||||
|
"hooks": [
|
||||||
|
{
|
||||||
|
"type": "command",
|
||||||
|
"command": "notify-send 'Claude Code' 'Claude Code needs your attention'"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"enabledPlugins": {
|
||||||
|
"pyright-lsp@claude-plugins-official": true,
|
||||||
|
"typescript-lsp@claude-plugins-official": true,
|
||||||
|
"clangd-lsp@claude-plugins-official": true
|
||||||
|
},
|
||||||
|
"sandbox": {
|
||||||
|
"enabled": false,
|
||||||
|
"autoAllowBashIfSandboxed": true,
|
||||||
|
"network": {
|
||||||
|
"allowUnixSockets": [
|
||||||
|
"/var/run/docker.sock"
|
||||||
|
],
|
||||||
|
"allowLocalBinding": true
|
||||||
|
},
|
||||||
|
"excludedCommands": [
|
||||||
|
"docker"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -39,6 +39,5 @@
|
|||||||
"excludedCommands": [
|
"excludedCommands": [
|
||||||
"docker"
|
"docker"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"model": "haiku"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ app-notifications = no-clipboard-copy
|
|||||||
shell-integration = zsh
|
shell-integration = zsh
|
||||||
shell-integration-features = title,sudo
|
shell-integration-features = title,sudo
|
||||||
desktop-notifications = true
|
desktop-notifications = true
|
||||||
term=ghostty
|
term=xterm-ghostty
|
||||||
|
link-url = true
|
||||||
|
link-previews = true
|
||||||
|
bell-features=system,attention,no-audio
|
||||||
keybind = all:ctrl+enter=unbind
|
keybind = all:ctrl+enter=unbind
|
||||||
keybind = all:ctrl+shift+j=next_tab
|
keybind = all:ctrl+shift+j=next_tab
|
||||||
keybind = all:ctrl+shift+k=last_tab
|
keybind = all:ctrl+shift+k=last_tab
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ bind = $mainMod SHIFT, j, movewindow, d
|
|||||||
bind = $mainMod SHIFT, k, movewindow, u
|
bind = $mainMod SHIFT, k, movewindow, u
|
||||||
bind = $mainMod SHIFT, h, movewindow, l
|
bind = $mainMod SHIFT, h, movewindow, l
|
||||||
bind = $mainMod SHIFT, l, movewindow, r
|
bind = $mainMod SHIFT, l, movewindow, r
|
||||||
bind = CTRL+SHIFT, c, centerwindow
|
bind = $mainMod+SHIFT, c, centerwindow
|
||||||
|
|
||||||
|
|
||||||
# Move focus to next monitor
|
# Move focus to next monitor
|
||||||
|
|||||||
@@ -1,123 +0,0 @@
|
|||||||
{
|
|
||||||
"subtitlePosition": {
|
|
||||||
"yPercent": 15.376111685625649
|
|
||||||
},
|
|
||||||
"keybindings": [
|
|
||||||
{
|
|
||||||
"key": "Space",
|
|
||||||
"command": [
|
|
||||||
"cycle",
|
|
||||||
"pause"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ArrowRight",
|
|
||||||
"command": [
|
|
||||||
"seek",
|
|
||||||
5
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ArrowLeft",
|
|
||||||
"command": [
|
|
||||||
"seek",
|
|
||||||
-5
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+Shift+KeyN",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-export-note"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+KeyC",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-copy-primary-sub-to-clipboard"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+Shift+KeyV",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-secondary-sid-toggle"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Shift+KeyL",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-sub-seek-forward"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Shift+KeyH",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-sub-seek-back"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+Shift+KeyH",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-sub-replay"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+Shift+KeyL",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"mpvacious-sub-play-up-to-next"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+KeyV",
|
|
||||||
"command": [
|
|
||||||
"script-binding",
|
|
||||||
"animecards/update-anki-card"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "KeyQ",
|
|
||||||
"command": [
|
|
||||||
"quit"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "Ctrl+KeyW",
|
|
||||||
"command": [
|
|
||||||
"quit"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"texthooker": {
|
|
||||||
"openBrowser": false
|
|
||||||
},
|
|
||||||
"websocket": {
|
|
||||||
"enabled": "auto",
|
|
||||||
"port": 6677
|
|
||||||
},
|
|
||||||
"ankiConnect": {
|
|
||||||
"enabled": true,
|
|
||||||
"url": "http://127.0.0.1:8765",
|
|
||||||
"deck": "Minecraft",
|
|
||||||
"pollingRate": 200,
|
|
||||||
"audioField": "ExpressionAudio",
|
|
||||||
"imageField": "Picture",
|
|
||||||
"sentenceField": "Sentence",
|
|
||||||
"generateAudio": true,
|
|
||||||
"generateImage": true,
|
|
||||||
"imageType": "avif",
|
|
||||||
"imageFormat": "webp",
|
|
||||||
"miscInfoPattern": "[mpv-yomitan] %f (%t)",
|
|
||||||
"overwriteAudio": true,
|
|
||||||
"overwriteImage": true,
|
|
||||||
"highlightWord": true,
|
|
||||||
"showNotificationOnUpdate": true,
|
|
||||||
"audioPadding": 0.5,
|
|
||||||
"fallbackDuration": 3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,7 @@ dither=fruit # Lightweight dithering
|
|||||||
ontop=yes
|
ontop=yes
|
||||||
border=no
|
border=no
|
||||||
no-border
|
no-border
|
||||||
autofit=50% # Reasonable default size
|
autofit=69% # Reasonable default size
|
||||||
|
|
||||||
# Audio (macOS-specific)
|
# Audio (macOS-specific)
|
||||||
volume=75
|
volume=75
|
||||||
@@ -155,7 +155,7 @@ profile-cond=width >= 1920 and filename:match("mkv$|mp4$")
|
|||||||
glsl-shaders=""
|
glsl-shaders=""
|
||||||
scale=ewa_lanczos
|
scale=ewa_lanczos
|
||||||
target-peak=800
|
target-peak=800
|
||||||
hdr-tone-mapping=bt.2390
|
# hdr-tone-mapping=bt.2390
|
||||||
|
|
||||||
# HDR profile
|
# HDR profile
|
||||||
[hdr]
|
[hdr]
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../../submodules/mpv-anilist-updater/anilistUpdater/anilistUpdater.py
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../submodules/mpv-anilist-updater/anilistUpdater/main.lua
|
|
||||||
@@ -1 +1 @@
|
|||||||
../../../projects/lua/mpv-youtube-queue/mpv-youtube-queue.lua
|
../../mpv-modules/mpv-youtube-queue/mpv-youtube-queue.lua
|
||||||
129
.config/subminer/config.jsonc
Normal file
129
.config/subminer/config.jsonc
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
{
|
||||||
|
"subtitlePosition": {
|
||||||
|
"yPercent": 17.38459152016546
|
||||||
|
},
|
||||||
|
"keybindings": [
|
||||||
|
{
|
||||||
|
"key": "Space",
|
||||||
|
"command": [
|
||||||
|
"cycle",
|
||||||
|
"pause"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ArrowRight",
|
||||||
|
"command": [
|
||||||
|
"seek",
|
||||||
|
5
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ArrowLeft",
|
||||||
|
"command": [
|
||||||
|
"seek",
|
||||||
|
-5
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ArrowRight",
|
||||||
|
"command": [
|
||||||
|
"seek",
|
||||||
|
5
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ArrowUp",
|
||||||
|
"command": [
|
||||||
|
"seek",
|
||||||
|
60
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ArrowDown",
|
||||||
|
"command": [
|
||||||
|
"seek",
|
||||||
|
-60
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "KeyQ",
|
||||||
|
"command": [
|
||||||
|
"quit"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "Ctrl+KeyW",
|
||||||
|
"command": [
|
||||||
|
"quit"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"texthooker": {
|
||||||
|
"openBrowser": false
|
||||||
|
},
|
||||||
|
"websocket": {
|
||||||
|
"enabled": "auto",
|
||||||
|
"port": 6677
|
||||||
|
},
|
||||||
|
"ankiConnect": {
|
||||||
|
"enabled": true,
|
||||||
|
"url": "http://127.0.0.1:8765",
|
||||||
|
"deck": "Minecraft",
|
||||||
|
"pollingRate": 200,
|
||||||
|
"audioField": "ExpressionAudio",
|
||||||
|
"imageField": "Picture",
|
||||||
|
"sentenceField": "Sentence",
|
||||||
|
"generateAudio": true,
|
||||||
|
"generateImage": true,
|
||||||
|
"imageType": "avif",
|
||||||
|
"imageFormat": "webp",
|
||||||
|
"miscInfoPattern": "[mpv-yomitan] %f (%t)",
|
||||||
|
"overwriteAudio": false,
|
||||||
|
"overwriteImage": true,
|
||||||
|
"highlightWord": true,
|
||||||
|
"showNotificationOnUpdate": true,
|
||||||
|
"notificationType": "system",
|
||||||
|
"audioPadding": 0.5,
|
||||||
|
"fallbackDuration": 3,
|
||||||
|
"animatedFps": 24,
|
||||||
|
"animatedMaxWidth": 640,
|
||||||
|
"animatedMaxHeight": null,
|
||||||
|
"animatedCrf": 35,
|
||||||
|
"autoUpdateNewCards": false,
|
||||||
|
"sentenceCardModel": "Lapis Morph",
|
||||||
|
"sentenceCardSentenceField": "Sentence",
|
||||||
|
"sentenceCardAudioField": "SentenceAudio",
|
||||||
|
"isLapis": true,
|
||||||
|
"mediaInsertMode": "append",
|
||||||
|
"auto_start_overlay": false,
|
||||||
|
"secondarySub": {
|
||||||
|
"autoLoadSecondarySub": true,
|
||||||
|
"secondarySubLanguages": [
|
||||||
|
"en",
|
||||||
|
"eng"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"subtitleStyle": {
|
||||||
|
"ontFamily": "Noto Sans CJK JP Regular, Noto Sans CJK JP, Arial Unicode MS, Arial, sans-serif",
|
||||||
|
"fontSize": 35,
|
||||||
|
"fontColor": "#cad3f5",
|
||||||
|
"fontWeight": "normal",
|
||||||
|
"fontStyle": "normal",
|
||||||
|
"backgroundColor": "rgb(30, 32, 48, 0.88)",
|
||||||
|
"secondary": {
|
||||||
|
"fontSize": 24,
|
||||||
|
"fontColor": "#cad3f5",
|
||||||
|
"backgroundColor": "transparent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"shortcuts": {
|
||||||
|
"copySubtitle": "CommandOrControl+C",
|
||||||
|
"copySubtitleMultiple": "CommandOrControl+Shift+C",
|
||||||
|
"updateLastCardFromClipboard": "CommandOrControl+V",
|
||||||
|
"mineSentence": "CommandOrControl+S",
|
||||||
|
"mineSentenceMultiple": "CommandOrControl+Shift+S",
|
||||||
|
"toggleSecondarySub": "CommandOrControl+Shift+V",
|
||||||
|
"multiCopyTimeoutMs": 3000
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,6 +16,7 @@ export GTK_THEME=Dracula
|
|||||||
export XDG_CONFIG_HOME=$HOME/.config
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
export COMPOSE_BAKE=true
|
export COMPOSE_BAKE=true
|
||||||
export ANKI_WAYLAND=1
|
export ANKI_WAYLAND=1
|
||||||
|
export SUDO_PROMPT=$'\a[sudo] password for %u: '
|
||||||
|
|
||||||
# nvidia
|
# nvidia
|
||||||
export NVD_BACKEND=direct
|
export NVD_BACKEND=direct
|
||||||
|
|||||||
39
.gitconfig
39
.gitconfig
@@ -1,39 +0,0 @@
|
|||||||
; [includeIf "gitdir:~/.local/share/yadm/repo.git"]
|
|
||||||
; path = .gitconfig.submodules
|
|
||||||
[init]
|
|
||||||
defaultBranch = main
|
|
||||||
[push]
|
|
||||||
default = simple
|
|
||||||
autoSetupRemote = true
|
|
||||||
[diff]
|
|
||||||
algorithm = histogram
|
|
||||||
[merge]
|
|
||||||
conflictstyle = zdiff3
|
|
||||||
[pull]
|
|
||||||
rebase = true
|
|
||||||
[rebase]
|
|
||||||
autostash = true
|
|
||||||
autosquash = true
|
|
||||||
[fetch]
|
|
||||||
prune = true
|
|
||||||
[branch]
|
|
||||||
autosetuprebase = always
|
|
||||||
[core]
|
|
||||||
fsmonitor = true
|
|
||||||
untrackedCache = true
|
|
||||||
editor = nvim
|
|
||||||
pager = delta
|
|
||||||
[alias]
|
|
||||||
st = status
|
|
||||||
co = checkout
|
|
||||||
br = branch
|
|
||||||
lg = log --oneline --graph --decorate --all
|
|
||||||
fixup = commit --fixup
|
|
||||||
undo = reset --soft HEAD~1
|
|
||||||
[interactive]
|
|
||||||
diffFilter = delta --color-only
|
|
||||||
[delta]
|
|
||||||
navigate = true # use n and N to move between diff sections
|
|
||||||
dark = true # or light = true, or omit for auto-detection
|
|
||||||
[user]
|
|
||||||
name = suda@sudacode.com
|
|
||||||
22
.gitconfig##os.Darwin
Normal file
22
.gitconfig##os.Darwin
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[user]
|
||||||
|
name = sudacode
|
||||||
|
email = suda@sudacode.com
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
autoSetupRemote = true
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
[rebase]
|
||||||
|
autoStash = true
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
[diff]
|
||||||
|
algorithm = histogram
|
||||||
|
[merge]
|
||||||
|
conflictstyle = zdiff3
|
||||||
|
[color]
|
||||||
|
ui = auto
|
||||||
|
[core]
|
||||||
|
pager = less -FRX
|
||||||
@@ -10,9 +10,9 @@ import sys
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
# Configuration
|
|
||||||
OPENROUTER_API_KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
OPENROUTER_API_KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
||||||
MODEL = os.environ.get("OPENROUTER_MODEL", "google/gemini-2.0-flash-001")
|
# MODEL = os.environ.get("OPENROUTER_MODEL", "google/gemini-2.0-flash-001")
|
||||||
|
MODEL = os.environ.get("OPENROUTER_MODEL", "openai/gpt-oss-120b:free")
|
||||||
API_URL = "https://openrouter.ai/api/v1/chat/completions"
|
API_URL = "https://openrouter.ai/api/v1/chat/completions"
|
||||||
|
|
||||||
# Try to load API key from file if not in environment
|
# Try to load API key from file if not in environment
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ get_video_thumbnail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selection=$(build_rofi_menu | rofi -dmenu -i -show-icons -theme "$THEME" \
|
selection=$(build_rofi_menu | rofi -dmenu -i -show-icons -theme "$THEME" \
|
||||||
-theme-str 'listview {columns: 1; lines: 15;} window {width: 88%;}' -p "Choose Video ")
|
-theme-str 'configuration {font: "JetBrainsMono Nerd Font 10";} listview {columns: 1; lines: 15;} window {width: 88%;}' -p "Choose Video ")
|
||||||
|
|
||||||
if [[ -z "$selection" ]]; then
|
if [[ -z "$selection" ]]; then
|
||||||
echo "No video selected."
|
echo "No video selected."
|
||||||
|
|||||||
Reference in New Issue
Block a user