Skip to content

Commit f11643e

Browse files
committed
2026-05-26
1 parent fe0da70 commit f11643e

15 files changed

Lines changed: 158 additions & 32 deletions

File tree

bin/ytdlp-audio

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
set -eo pipefail
3+
yt-dlp -o '%(channel)s - %(title)s.%(ext)s' --embed-thumbnail --no-mtime --extract-audio --audio-format opus "$1"

config-editor/.config/Code/User/settings.json

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
"editor.tabSize": 3,
367367
},
368368
"latex-workshop.formatting.latex": "latexindent",
369-
"latex-workshop.latex.outDir": "%WORKSPACE_FOLDER%/.hidden/.latex-workshop",
369+
"latex-workshop.latex.outDir": "%WORKSPACE_FOLDER%/.hidden/latex-workshop",
370370
"latex-utilities.message.update.show": false,
371371

372372
//
@@ -467,10 +467,26 @@
467467
"cSpell.diagnosticLevel": "Information",
468468
"cSpell.dictionaryDefinitions": [
469469
{
470-
"name": "Personal",
470+
"name": "For Myself",
471471
"path": "~/.devresources/dictionary-hyperupcall.txt",
472472
"addWords": true,
473473
},
474+
{
475+
"name": "People Names",
476+
"path": "~/.devresources/dictionary-names.txt",
477+
"addWords": true,
478+
"supportNonStrictSearches": true,
479+
},
480+
{
481+
"name": "General Words",
482+
"path": "~/.devresources/dictionary-general.txt",
483+
"addWords": true,
484+
},
485+
{
486+
"name": "My Computer Science",
487+
"path": "~/.devresources/dictionary-compsci.txt",
488+
"addWords": true,
489+
},
474490
{
475491
"name": "My Bash",
476492
"path": "~/.devresources/dictionary-bash.txt",
@@ -482,7 +498,7 @@
482498
"addWords": true,
483499
},
484500
],
485-
"cSpell.dictionaries": ["Personal", "My Bash", "My Linux"],
501+
"cSpell.dictionaries": ["For Myself", "General Words", "My Computer Science", "My Bash", "My Linux", "People Names"],
486502
"cSpell.ignorePaths": [
487503
"package-lock.json",
488504
"node_modules",
@@ -534,30 +550,30 @@
534550
"githubPullRequests.queries": [
535551
{
536552
"label": "Copilot on My Behalf",
537-
"query": "repo:${owner}/${repository} is:open author:copilot assignee:${user}",
553+
"query": "repo:${owner}/${repository} is:open author:copilot assignee:${user}"
538554
},
539555
{
540556
"label": "Local Pull Request Branches",
541-
"query": "default",
557+
"query": "default"
542558
},
543559
{
544560
"label": "Waiting For My Review",
545-
"query": "repo:${owner}/${repository} is:open review-requested:${user}",
561+
"query": "repo:${owner}/${repository} is:open review-requested:${user}"
546562
},
547563
{
548564
"label": "Created By Me",
549-
"query": "repo:${owner}/${repository} is:open author:${user}",
565+
"query": "repo:${owner}/${repository} is:open author:${user}"
550566
},
551567
{
552568
"label": "Created By Me 2",
553-
"query": "repo:SchemaStore/schemastore is:open",
569+
"query": "repo:SchemaStore/schemastore is:open"
554570
},
555571
{
556572
"label": "All Open",
557-
"query": "default",
558-
},
573+
"query": "default"
574+
}
559575
],
560576
"workbench.iconTheme": "icons",
561577
"window.autoDetectColorScheme": true,
562-
"workbench.preferredLightColorTheme": "Quiet Light",
578+
"workbench.preferredLightColorTheme": "Bearded Theme Milkshake Raspberry",
563579
}

config-editor/.config/zed/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"context_servers": {
2+
"cli_default_open_behavior": "new_window",
3+
"context_servers": {
34
"anki-mcp-server": {
45
"enabled": true,
56
"remote": false,

config-shell/.bashrc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Set shell variables.
1919
# Exported variables are inherited in nested shells and virtual environments.
2020
# export CDPATH=':~:'
21-
# export CHILD_MAX='256'
2221
unset -v EXECIGNORE
2322
export FCEDIT="$EDITOR"
2423
unset -v FIGNORE
@@ -27,10 +26,10 @@ export HISTCONTROL='ignorespace' # Overriden by bash-preexec.
2726
export HISTFILE="$XDG_STATE_HOME/history/bash_history"
2827
export HISTSIZE='-1'
2928
export HISTFILESIZE='-1'
30-
export HISTIGNORE='ls:dir|vdir|[bf]g:pwd:clear*:exit*:mkcd*:mkt*: *'
31-
export HISTTIMEFORMAT='%F %T ' # ISO 8601
32-
export TIMEFORMAT=$'real %3lR\nuser %3lU\nsystem %3lS\npercent %P'
33-
export PROMPT_DIRTRIM='6'
29+
HISTIGNORE='ls:dir|vdir|[bf]g:pwd:clear*:exit*:mkcd*:mkt*: *'
30+
HISTTIMEFORMAT='%F %T ' # ISO 8601.
31+
TIMEFORMAT=$'real %3lR\nuser %3lU\nsystem %3lS\npercent %P'
32+
PROMPT_DIRTRIM='6'
3433
unset -v MAIL
3534
unset -v MAILCHECK
3635
unset -v MAILPATH

config-shell/.config/blesh/init.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,9 +1011,6 @@ ble-face -s filename_warning none
10111011
# ble-bind -m auto_complete -f C-i auto_complete/insert
10121012
# ble-bind -m auto_complete -f TAB auto_complete/insert
10131013

1014-
# Alt+Bakcspace should remove a word.
1015-
ble-bind -f 'M-C-?' kill-backward-cword
1016-
10171014
##-----------------------------------------------------------------------------
10181015
## Settings for Emacs mode
10191016

@@ -1049,6 +1046,16 @@ function blerc/emacs-load-hook {
10491046
## depends on your terminal) will kill the backward word as in the default
10501047
## readline.
10511048

1049+
if [ "$TERM" = 'xterm-kitty' ]; then
1050+
ble-bind -f 'M-DEL' kill-backward-cword
1051+
elif [ "$TERM" = 'xterm-ghostty' ]; then
1052+
ble-bind -f 'M-DEL' kill-backward-cword
1053+
elif [ "$TERM" = 'foot' ]; then
1054+
ble-bind -f 'M-DEL' kill-backward-cword
1055+
else
1056+
ble-bind -f 'M-C-?' kill-backward-cword
1057+
fi
1058+
10521059
#ble-bind -f 'M-C-?' kill-backward-cword
10531060
#ble-bind -f 'M-DEL' kill-backward-cword
10541061
#ble-bind -f 'M-C-h' kill-backward-cword

config-shell/.config/sh/aliases.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ alias cat='cat -v'
149149
alias cmd='command'
150150
alias cmdv='command -v'
151151
alias cmdV='command -V'
152-
alias copy='xclip -selection clipboard'
153152
alias ddad='dragon-drag-and-drop'
154153
alias hexdump='od -A x -t x1z -v'
155154
alias ipa='ip -c -br a'

config-shell/.config/sh/func.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ cls() {
6161
stty sane
6262
}
6363

64+
copy() {
65+
if [ "${XDG_SESSION_TYPE:-}" = 'wayland' ]; then
66+
wl-copy
67+
else
68+
xclip -selection clipboard
69+
fi
70+
}
71+
6472
dataurl() {
6573
mimeType=$(file -b --mime-type "$1")
6674
case $mimeType in
@@ -383,6 +391,7 @@ print_shell_prompt_eval_string() {
383391
_file="${XDG_STATE_HOME:-${HOME:?}/.local/state}/dotfiles-shell-prompts/${1:-bash}/_${2:-starship}.txt"
384392

385393
if [ ! -f "$_file" ]; then
394+
printf '%s\n' "File not found: $_file" >&2
386395
printf 'false\n'
387396
return 1
388397
fi

config-shell/.config/zsh/.zshrc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
(( $? != 0 )) && _util_print_source_error '~/.profile'
1212

1313
# TODO
14-
ZSH_DISABLE_COMPFIX=true
15-
fpath=(
16-
/usr/share/zsh/functions
17-
/usr/share/zsh/site-functions
18-
/usr/share/zsh/vendor-completions
19-
/usr/local/share/zsh/site-functions
20-
$fpath
21-
)
14+
# ZSH_DISABLE_COMPFIX=true
15+
# fpath=(
16+
# /usr/share/zsh/functions
17+
# /usr/share/zsh/site-functions
18+
# /usr/share/zsh/vendor-completions
19+
# /usr/local/share/zsh/site-functions
20+
# $fpath
21+
# )
2222

2323
# Use frameworks.
2424
# See performance: https://github.com/romkatv/zsh-bench
@@ -296,6 +296,6 @@ compinit -d ~/.cache/zcompdump
296296

297297
# Modules.
298298
_util_source_file "$XDG_CONFIG_HOME/sh/line-editing.sh"
299-
_util_source_dir "$XDG_CONFIG_HOME/zsh/zsh.d"
299+
# _util_source_dir "$XDG_CONFIG_HOME/zsh/zsh.d"
300300

301301
# ---

config-terminal/foot.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
source ~/.dotfiles/config/setup.sh
3+
4+
main() {
5+
util.install_by_setup_distro_package 'Foot' 'foot' 'foot' "$@"
6+
}
7+
8+
util.if_file_sourced || _main "$@"

config-terminal/ghostty.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
source ~/.dotfiles/config/setup.sh
3+
4+
install.any() {
5+
util.install_by_setup_distro_package --no-confirm 'Ghostty' 'ghostty' 'ghostty' "$@"
6+
}
7+
8+
install.ubuntu() {
9+
/bin/bash -c "$(curl -K "$CURL_CONFIG" https://raw.githubusercontent.com/mkasberg/ghostty-ubuntu/HEAD/install.sh)"
10+
}
11+
12+
util.if_file_sourced || _setup "$@"

0 commit comments

Comments
 (0)