From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001
From: twells46 <173561638+twells46@users.noreply.github.com>
Date: Wed, 31 Dec 2025 13:28:05 -0600
Subject: Migrate from stow
---
.chezmoiignore | 2 +
LICENSE | 674 +
README.md | 24 +
dot_config/ctpv/config | 1 +
dot_config/fish/completions/.keep | 0
dot_config/fish/conf.d/aliases.fish | 10 +
dot_config/fish/conf.d/env.fish | 55 +
dot_config/fish/conf.d/rustup.fish | 1 +
dot_config/fish/config.fish | 9 +
dot_config/fish/fish_variables | 6 +
dot_config/fish/functions/fish_prompt.fish | 10 +
dot_config/fish/functions/lfcd.fish | 18 +
dot_config/fish/functions/z.fish | 76 +
dot_config/fish/functions/zi.fish | 17 +
dot_config/foot/acme.ini | 25 +
dot_config/foot/acme.toml | 25 +
dot_config/foot/alacritty.toml | 34 +
dot_config/foot/catppuccin-latte | 39 +
dot_config/foot/catppuccin-latte.toml | 65 +
dot_config/foot/demo.ini | 275 +
dot_config/foot/foot.ini | 10 +
dot_config/foot/selenized-light.toml | 24 +
dot_config/foot/selenized-white.toml | 24 +
dot_config/helix/config.toml | 6 +
dot_config/helix/languages.toml | 20 +
dot_config/kak/autoload/find.kak | 63 +
.../kak/autoload/rc/detection/editorconfig.kak | 60 +
dot_config/kak/autoload/rc/detection/file.kak | 26 +
dot_config/kak/autoload/rc/detection/modeline.kak | 123 +
dot_config/kak/autoload/rc/filetype/apl.kak | 86 +
dot_config/kak/autoload/rc/filetype/arch-linux.kak | 4 +
dot_config/kak/autoload/rc/filetype/asciidoc.kak | 90 +
dot_config/kak/autoload/rc/filetype/awk.kak | 88 +
dot_config/kak/autoload/rc/filetype/c-family.kak | 476 +
dot_config/kak/autoload/rc/filetype/cabal.kak | 88 +
dot_config/kak/autoload/rc/filetype/clojure.kak | 237 +
dot_config/kak/autoload/rc/filetype/cmake.kak | 36 +
dot_config/kak/autoload/rc/filetype/coffee.kak | 92 +
dot_config/kak/autoload/rc/filetype/conf.kak | 30 +
dot_config/kak/autoload/rc/filetype/coq.kak | 127 +
dot_config/kak/autoload/rc/filetype/crystal.kak | 258 +
dot_config/kak/autoload/rc/filetype/css.kak | 186 +
dot_config/kak/autoload/rc/filetype/cucumber.kak | 102 +
dot_config/kak/autoload/rc/filetype/cue.kak | 168 +
dot_config/kak/autoload/rc/filetype/d.kak | 145 +
dot_config/kak/autoload/rc/filetype/dart.kak | 126 +
dot_config/kak/autoload/rc/filetype/dhall.kak | 101 +
dot_config/kak/autoload/rc/filetype/diff-parse.pl | 143 +
dot_config/kak/autoload/rc/filetype/diff.kak | 141 +
dot_config/kak/autoload/rc/filetype/dockerfile.kak | 55 +
dot_config/kak/autoload/rc/filetype/elixir.kak | 128 +
dot_config/kak/autoload/rc/filetype/elm.kak | 85 +
dot_config/kak/autoload/rc/filetype/elvish.kak | 67 +
dot_config/kak/autoload/rc/filetype/erlang.kak | 68 +
dot_config/kak/autoload/rc/filetype/eruby.kak | 26 +
dot_config/kak/autoload/rc/filetype/etc.kak | 95 +
dot_config/kak/autoload/rc/filetype/exherbo.kak | 138 +
dot_config/kak/autoload/rc/filetype/fennel.kak | 109 +
dot_config/kak/autoload/rc/filetype/fidl.kak | 79 +
dot_config/kak/autoload/rc/filetype/fish.kak | 87 +
dot_config/kak/autoload/rc/filetype/fsharp.kak | 157 +
dot_config/kak/autoload/rc/filetype/gas.kak | 99 +
dot_config/kak/autoload/rc/filetype/gdscript.kak | 126 +
.../kak/autoload/rc/filetype/gentoo-linux.kak | 4 +
dot_config/kak/autoload/rc/filetype/git.kak | 69 +
dot_config/kak/autoload/rc/filetype/github.kak | 18 +
dot_config/kak/autoload/rc/filetype/gluon.kak | 103 +
dot_config/kak/autoload/rc/filetype/go.kak | 174 +
dot_config/kak/autoload/rc/filetype/graphql.kak | 100 +
dot_config/kak/autoload/rc/filetype/gren.kak | 7 +
dot_config/kak/autoload/rc/filetype/groovy.kak | 92 +
dot_config/kak/autoload/rc/filetype/haml.kak | 78 +
dot_config/kak/autoload/rc/filetype/hare.kak | 144 +
dot_config/kak/autoload/rc/filetype/haskell.kak | 128 +
dot_config/kak/autoload/rc/filetype/hbs.kak | 112 +
dot_config/kak/autoload/rc/filetype/html.kak | 87 +
dot_config/kak/autoload/rc/filetype/i3.kak | 94 +
dot_config/kak/autoload/rc/filetype/ini.kak | 24 +
dot_config/kak/autoload/rc/filetype/janet.kak | 81 +
dot_config/kak/autoload/rc/filetype/java.kak | 129 +
dot_config/kak/autoload/rc/filetype/javascript.kak | 224 +
dot_config/kak/autoload/rc/filetype/jinja.kak | 35 +
dot_config/kak/autoload/rc/filetype/json.kak | 69 +
dot_config/kak/autoload/rc/filetype/julia.kak | 42 +
dot_config/kak/autoload/rc/filetype/just.kak | 79 +
dot_config/kak/autoload/rc/filetype/kakrc.kak | 130 +
dot_config/kak/autoload/rc/filetype/kickstart.kak | 38 +
dot_config/kak/autoload/rc/filetype/kotlin.kak | 187 +
dot_config/kak/autoload/rc/filetype/latex.kak | 144 +
dot_config/kak/autoload/rc/filetype/ledger.kak | 144 +
dot_config/kak/autoload/rc/filetype/lisp.kak | 81 +
dot_config/kak/autoload/rc/filetype/lua.kak | 152 +
dot_config/kak/autoload/rc/filetype/mail.kak | 30 +
dot_config/kak/autoload/rc/filetype/makefile.kak | 75 +
dot_config/kak/autoload/rc/filetype/markdown.kak | 130 +
dot_config/kak/autoload/rc/filetype/mercurial.kak | 37 +
dot_config/kak/autoload/rc/filetype/mercury.kak | 124 +
dot_config/kak/autoload/rc/filetype/meson.kak | 77 +
dot_config/kak/autoload/rc/filetype/mlb.kak | 50 +
dot_config/kak/autoload/rc/filetype/moon.kak | 120 +
dot_config/kak/autoload/rc/filetype/nim.kak | 132 +
dot_config/kak/autoload/rc/filetype/ninja.kak | 106 +
dot_config/kak/autoload/rc/filetype/nix.kak | 124 +
dot_config/kak/autoload/rc/filetype/ocaml.kak | 130 +
dot_config/kak/autoload/rc/filetype/odin.kak | 119 +
dot_config/kak/autoload/rc/filetype/pascal.kak | 217 +
dot_config/kak/autoload/rc/filetype/perl.kak | 146 +
dot_config/kak/autoload/rc/filetype/php.kak | 107 +
dot_config/kak/autoload/rc/filetype/pony.kak | 155 +
dot_config/kak/autoload/rc/filetype/prolog.kak | 49 +
dot_config/kak/autoload/rc/filetype/protobuf.kak | 109 +
dot_config/kak/autoload/rc/filetype/pug.kak | 81 +
dot_config/kak/autoload/rc/filetype/purescript.kak | 120 +
dot_config/kak/autoload/rc/filetype/python.kak | 199 +
dot_config/kak/autoload/rc/filetype/r.kak | 155 +
dot_config/kak/autoload/rc/filetype/ragel.kak | 84 +
.../kak/autoload/rc/filetype/restructuredtext.kak | 92 +
dot_config/kak/autoload/rc/filetype/ruby.kak | 194 +
dot_config/kak/autoload/rc/filetype/rust.kak | 209 +
dot_config/kak/autoload/rc/filetype/sass.kak | 86 +
dot_config/kak/autoload/rc/filetype/scala.kak | 90 +
dot_config/kak/autoload/rc/filetype/scheme.kak | 170 +
dot_config/kak/autoload/rc/filetype/scss.kak | 55 +
dot_config/kak/autoload/rc/filetype/sh.kak | 206 +
dot_config/kak/autoload/rc/filetype/sml.kak | 86 +
dot_config/kak/autoload/rc/filetype/sql.kak | 115 +
dot_config/kak/autoload/rc/filetype/svelte.kak | 35 +
dot_config/kak/autoload/rc/filetype/swift.kak | 37 +
dot_config/kak/autoload/rc/filetype/systemd.kak | 14 +
dot_config/kak/autoload/rc/filetype/taskpaper.kak | 63 +
dot_config/kak/autoload/rc/filetype/tcl.kak | 79 +
dot_config/kak/autoload/rc/filetype/terraform.kak | 120 +
dot_config/kak/autoload/rc/filetype/toml.kak | 76 +
dot_config/kak/autoload/rc/filetype/troff.kak | 51 +
dot_config/kak/autoload/rc/filetype/tupfile.kak | 40 +
dot_config/kak/autoload/rc/filetype/twig.kak | 89 +
dot_config/kak/autoload/rc/filetype/vhdl.kak | 410 +
dot_config/kak/autoload/rc/filetype/void-linux.kak | 4 +
dot_config/kak/autoload/rc/filetype/yaml.kak | 73 +
dot_config/kak/autoload/rc/filetype/zig.kak | 144 +
.../kak/autoload/rc/tools/autorestore.asciidoc | 13 +
dot_config/kak/autoload/rc/tools/autorestore.kak | 93 +
dot_config/kak/autoload/rc/tools/autowrap.kak | 50 +
dot_config/kak/autoload/rc/tools/clang.kak | 196 +
dot_config/kak/autoload/rc/tools/comment.kak | 218 +
dot_config/kak/autoload/rc/tools/ctags.kak | 168 +
dot_config/kak/autoload/rc/tools/doc.asciidoc | 45 +
dot_config/kak/autoload/rc/tools/doc.kak | 195 +
dot_config/kak/autoload/rc/tools/fifo.kak | 35 +
dot_config/kak/autoload/rc/tools/format.kak | 38 +
dot_config/kak/autoload/rc/tools/git.kak | 787 +
dot_config/kak/autoload/rc/tools/go/gopls.kak | 98 +
dot_config/kak/autoload/rc/tools/grep.kak | 66 +
dot_config/kak/autoload/rc/tools/jump.kak | 70 +
dot_config/kak/autoload/rc/tools/lint.asciidoc | 26 +
dot_config/kak/autoload/rc/tools/lint.kak | 452 +
dot_config/kak/autoload/rc/tools/make.kak | 92 +
dot_config/kak/autoload/rc/tools/man.kak | 139 +
dot_config/kak/autoload/rc/tools/menu.kak | 85 +
dot_config/kak/autoload/rc/tools/patch-range.pl | 113 +
dot_config/kak/autoload/rc/tools/patch.kak | 63 +
dot_config/kak/autoload/rc/tools/python/jedi.kak | 77 +
dot_config/kak/autoload/rc/tools/rust/racer.kak | 123 +
dot_config/kak/autoload/rc/tools/spell.kak | 184 +
.../kak/autoload/rc/windowing/appleterminal.kak | 44 +
dot_config/kak/autoload/rc/windowing/detection.kak | 71 +
dot_config/kak/autoload/rc/windowing/iterm.kak | 124 +
dot_config/kak/autoload/rc/windowing/kitty.kak | 84 +
.../kak/autoload/rc/windowing/new-client.kak | 9 +
.../kak/autoload/rc/windowing/repl/dtach.kak | 38 +
.../kak/autoload/rc/windowing/repl/kitty.kak | 56 +
dot_config/kak/autoload/rc/windowing/repl/tmux.kak | 91 +
dot_config/kak/autoload/rc/windowing/repl/x11.kak | 41 +
dot_config/kak/autoload/rc/windowing/screen.kak | 75 +
dot_config/kak/autoload/rc/windowing/sway.kak | 81 +
dot_config/kak/autoload/rc/windowing/tmux.kak | 82 +
dot_config/kak/autoload/rc/windowing/wayland.kak | 66 +
dot_config/kak/autoload/rc/windowing/wezterm.kak | 70 +
dot_config/kak/autoload/rc/windowing/x11.kak | 78 +
dot_config/kak/autoload/rc/windowing/zellij.kak | 67 +
dot_config/kak/colors/acme.kak | 50 +
dot_config/kak/colors/catppuccin_frappe.kak | 82 +
dot_config/kak/colors/catppuccin_latte.kak | 82 +
dot_config/kak/colors/catppuccin_macchiato.kak | 82 +
dot_config/kak/colors/catppuccin_mocha.kak | 82 +
dot_config/kak/kakrc | 216 +
dot_config/kitty/current-theme.conf | 80 +
dot_config/kitty/kitty.conf | 57 +
dot_config/kitty/kitty.conf.bak | 56 +
dot_config/kitty/ssh.conf | 8 +
dot_config/lf/executable_cleaner | 2 +
dot_config/lf/executable_previewer | 35 +
dot_config/lf/executable_previewer3 | 60 +
dot_config/lf/executable_previewer_kitty | 61 +
dot_config/lf/executable_pv.sh | 8 +
dot_config/lf/filetypes | 1045488 +++++++++++++++++
dot_config/lf/lfrc | 37 +
dot_config/mpd/executable_mpd.conf | 24 +
.../mpd/playlists/encrypted_Ado-chill.m3u.age | 46 +
dot_config/mpd/playlists/encrypted_Ado.m3u.age | 56 +
.../mpd/playlists/encrypted_Big Band.m3u.age | 97 +
.../mpd/playlists/encrypted_Colter Wall.m3u.age | 82 +
dot_config/mpd/playlists/encrypted_Solveig.m3u.age | 82 +
dot_config/mpd/playlists/encrypted_big.m3u.age | 70 +
.../playlists/encrypted_executable_Sabaton.m3u.age | 59 +
.../playlists/encrypted_executable_Stoic.m3u.age | 123 +
.../mpd/playlists/encrypted_melancholy.m3u.age | 91 +
.../mpd/playlists/encrypted_workout-metal.m3u.age | 190 +
dot_config/mpd/playlists/encrypted_workout.m3u.age | 85 +
.../mpd/playlists/encrypted_workout2.m3u.age | 92 +
dot_config/mpv/executable_mpv.conf.tmpl | 7 +
dot_config/ncmpcpp/bindings | 479 +
dot_config/ncmpcpp/config.tmpl | 26 +
dot_config/ncmpcpp/formats.conf | 22 +
dot_config/ncmpcpp/patterns.list | 1 +
dot_config/newsraft/config | 8 +
dot_config/newsraft/encrypted_feeds.age | 114 +
dot_config/nushell/autoload/01_carapace.nu | 3 +
dot_config/nushell/autoload/02_carapace.nu | 1 +
dot_config/nushell/autoload/completer.nu | 56 +
dot_config/nushell/autoload/lfcd.nu | 4 +
dot_config/nushell/config.nu | 26 +
dot_config/nushell/env.nu | 18 +
dot_config/nvim/LICENSE.md | 19 +
dot_config/nvim/README.md | 241 +
dot_config/nvim/doc.md | 67 +
dot_config/nvim/doc.pdf | Bin 0 -> 25724 bytes
dot_config/nvim/doc/kickstart.txt | 24 +
dot_config/nvim/doc/tags | 3 +
dot_config/nvim/dot_stylua.toml | 6 +
dot_config/nvim/ftplugin/css.lua | 2 +
dot_config/nvim/ftplugin/html.lua | 2 +
dot_config/nvim/ftplugin/lua.lua | 2 +
dot_config/nvim/ftplugin/markdown.lua | 6 +
dot_config/nvim/ftplugin/typescript.lua | 2 +
dot_config/nvim/ftplugin/typescriptreact.lua | 2 +
dot_config/nvim/init.lua | 115 +
dot_config/nvim/lazy-lock.json | 24 +
dot_config/nvim/lua/health.lua | 52 +
dot_config/nvim/lua/plugins/autocomplete.lua | 87 +
dot_config/nvim/lua/plugins/init.lua | 156 +
dot_config/nvim/lua/plugins/lint.lua | 80 +
dot_config/nvim/lua/plugins/lsp.lua | 205 +
dot_config/nvim/lua/plugins/mini.lua | 40 +
dot_config/nvim/lua/plugins/telescope.lua | 29 +
dot_config/nvim/lua/plugins/treesitter.lua | 28 +
dot_config/nvim/lua/util/plugin.lua | 13 +
dot_config/service-env/DBUS_SESSION_BUS_ADDRESS | 1 +
dot_config/service-env/XDG_RUNTIME_DIR | 1 +
dot_config/service/dbus/symlink_check | 1 +
dot_config/service/dbus/symlink_run | 1 +
dot_config/service/pipewire/executable_check | 2 +
dot_config/service/pipewire/executable_run | 5 +
dot_config/service/pipewire/log/executable_run | 2 +
dot_config/service/turnstile-ready/executable_run | 10 +
dot_config/sway/conf.d/default.conf | 28 +
dot_config/sway/conf.d/foot_tmp.conf | 1 +
dot_config/sway/conf.d/hundred.conf | 388 +
dot_config/sway/conf.d/shared_workspaces.conf | 128 +
dot_config/sway/conf.d/swaysome.conf | 67 +
dot_config/sway/config | 300 +
.../task/hooks/executable_on-modify.timewarrior | 110 +
dot_config/task/taskrc | 38 +
dot_config/tmux/tmux.conf | 62 +
dot_config/waybar/config | 68 +
dot_config/waybar/style.css | 332 +
dot_config/x11/xinitrc | 6 +
dot_config/xonsh/rc.xsh | 23 +
dot_config/yash/common | 416 +
dot_config/yash/executable_profile | 59 +
dot_config/yash/executable_rc | 42 +
dot_config/yt-dlp/executable_config.tmpl | 33 +
dot_config/yt-dlp/executable_tmpdl.tmpl | 10 +
dot_config/zathura/zathurarc | 1 +
dot_config/zed/kakoune-keymap.json | 19 +
dot_config/zed/keymap.json | 38 +
dot_config/zed/private_settings.json | 34 +
dot_config/zed/settings_backup.json | 29 +
dot_config/zed/themes/.keep | 0
dot_config/zsh/executable_dot_zshrc | 5 +
dot_config/zsh/executable_git-prompt.zsh | 408 +
dot_config/zsh/executable_prompts | 24 +
dot_config/zsh/executable_purification | 133 +
dot_config/zsh/executable_zshrc | 67 +
dot_profile | 67 +
encrypted_dot_gitconfig.age | 90 +-
private_dot_local/bin/executable_cbv | 9 +
private_dot_local/bin/executable_cbv-volume | 4 +
private_dot_local/bin/executable_cheat | 3 +
private_dot_local/bin/executable_check_mullvad | 3 +
.../bin/executable_cleanup_filenames.zsh | 7 +
private_dot_local/bin/executable_clipboard.sh | 7 +
private_dot_local/bin/executable_clipboard_put.sh | 7 +
private_dot_local/bin/executable_compiler | 50 +
private_dot_local/bin/executable_compresspdf | 8 +
private_dot_local/bin/executable_css-httpd.sh | 15 +
private_dot_local/bin/executable_get-bookmark | 7 +
private_dot_local/bin/executable_gopassmenu | 15 +
private_dot_local/bin/executable_gousermenu | 11 +
private_dot_local/bin/executable_linkmenu | 96 +
.../bin/executable_mullvad-browser-launcher | 3 +
private_dot_local/bin/executable_p9start | 5 +
.../bin/executable_packages-list-arch.zsh | 3 +
private_dot_local/bin/executable_passmenu | 35 +
private_dot_local/bin/executable_remaps | 7 +
private_dot_local/bin/executable_rename-fat32 | 34 +
private_dot_local/bin/executable_rippy | 35 +
private_dot_local/bin/executable_rmdc | 3 +
private_dot_local/bin/executable_save-bookmark | 15 +
private_dot_local/bin/executable_shst | 6 +
private_dot_local/bin/executable_simenv | 2 +
private_dot_local/bin/executable_status.sh | 22 +
private_dot_local/bin/executable_surf-get-url | 3 +
private_dot_local/bin/executable_timer | 17 +
private_dot_local/bin/executable_vid2opus | 11 +
private_dot_local/bin/executable_vpn | 31 +
private_dot_local/bin/executable_wl-get-bm | 3 +
private_dot_local/bin/executable_workout.sh | 7 +
private_dot_local/bin/executable_wsct | 5 +
private_dot_local/bin/executable_yt-conv | 8 +
private_dot_local/bin/executable_zip2gzip | 9 +
321 files changed, 1071314 insertions(+), 45 deletions(-)
create mode 100644 .chezmoiignore
create mode 100644 LICENSE
create mode 100644 README.md
create mode 100644 dot_config/ctpv/config
create mode 100644 dot_config/fish/completions/.keep
create mode 100644 dot_config/fish/conf.d/aliases.fish
create mode 100644 dot_config/fish/conf.d/env.fish
create mode 100644 dot_config/fish/conf.d/rustup.fish
create mode 100644 dot_config/fish/config.fish
create mode 100644 dot_config/fish/fish_variables
create mode 100644 dot_config/fish/functions/fish_prompt.fish
create mode 100644 dot_config/fish/functions/lfcd.fish
create mode 100644 dot_config/fish/functions/z.fish
create mode 100644 dot_config/fish/functions/zi.fish
create mode 100644 dot_config/foot/acme.ini
create mode 100644 dot_config/foot/acme.toml
create mode 100644 dot_config/foot/alacritty.toml
create mode 100644 dot_config/foot/catppuccin-latte
create mode 100644 dot_config/foot/catppuccin-latte.toml
create mode 100644 dot_config/foot/demo.ini
create mode 100644 dot_config/foot/foot.ini
create mode 100644 dot_config/foot/selenized-light.toml
create mode 100644 dot_config/foot/selenized-white.toml
create mode 100644 dot_config/helix/config.toml
create mode 100644 dot_config/helix/languages.toml
create mode 100644 dot_config/kak/autoload/find.kak
create mode 100644 dot_config/kak/autoload/rc/detection/editorconfig.kak
create mode 100644 dot_config/kak/autoload/rc/detection/file.kak
create mode 100644 dot_config/kak/autoload/rc/detection/modeline.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/apl.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/arch-linux.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/asciidoc.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/awk.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/c-family.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/cabal.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/clojure.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/cmake.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/coffee.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/conf.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/coq.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/crystal.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/css.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/cucumber.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/cue.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/d.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/dart.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/dhall.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/diff-parse.pl
create mode 100644 dot_config/kak/autoload/rc/filetype/diff.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/dockerfile.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/elixir.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/elm.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/elvish.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/erlang.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/eruby.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/etc.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/exherbo.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/fennel.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/fidl.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/fish.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/fsharp.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/gas.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/gdscript.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/gentoo-linux.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/git.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/github.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/gluon.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/go.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/graphql.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/gren.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/groovy.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/haml.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/hare.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/haskell.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/hbs.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/html.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/i3.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ini.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/janet.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/java.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/javascript.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/jinja.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/json.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/julia.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/just.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/kakrc.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/kickstart.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/kotlin.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/latex.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ledger.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/lisp.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/lua.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/mail.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/makefile.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/markdown.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/mercurial.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/mercury.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/meson.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/mlb.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/moon.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/nim.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ninja.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/nix.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ocaml.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/odin.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/pascal.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/perl.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/php.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/pony.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/prolog.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/protobuf.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/pug.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/purescript.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/python.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/r.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ragel.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/restructuredtext.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/ruby.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/rust.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/sass.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/scala.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/scheme.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/scss.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/sh.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/sml.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/sql.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/svelte.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/swift.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/systemd.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/taskpaper.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/tcl.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/terraform.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/toml.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/troff.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/tupfile.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/twig.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/vhdl.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/void-linux.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/yaml.kak
create mode 100644 dot_config/kak/autoload/rc/filetype/zig.kak
create mode 100644 dot_config/kak/autoload/rc/tools/autorestore.asciidoc
create mode 100644 dot_config/kak/autoload/rc/tools/autorestore.kak
create mode 100644 dot_config/kak/autoload/rc/tools/autowrap.kak
create mode 100644 dot_config/kak/autoload/rc/tools/clang.kak
create mode 100644 dot_config/kak/autoload/rc/tools/comment.kak
create mode 100644 dot_config/kak/autoload/rc/tools/ctags.kak
create mode 100644 dot_config/kak/autoload/rc/tools/doc.asciidoc
create mode 100644 dot_config/kak/autoload/rc/tools/doc.kak
create mode 100644 dot_config/kak/autoload/rc/tools/fifo.kak
create mode 100644 dot_config/kak/autoload/rc/tools/format.kak
create mode 100644 dot_config/kak/autoload/rc/tools/git.kak
create mode 100644 dot_config/kak/autoload/rc/tools/go/gopls.kak
create mode 100644 dot_config/kak/autoload/rc/tools/grep.kak
create mode 100644 dot_config/kak/autoload/rc/tools/jump.kak
create mode 100644 dot_config/kak/autoload/rc/tools/lint.asciidoc
create mode 100644 dot_config/kak/autoload/rc/tools/lint.kak
create mode 100644 dot_config/kak/autoload/rc/tools/make.kak
create mode 100644 dot_config/kak/autoload/rc/tools/man.kak
create mode 100644 dot_config/kak/autoload/rc/tools/menu.kak
create mode 100644 dot_config/kak/autoload/rc/tools/patch-range.pl
create mode 100644 dot_config/kak/autoload/rc/tools/patch.kak
create mode 100644 dot_config/kak/autoload/rc/tools/python/jedi.kak
create mode 100644 dot_config/kak/autoload/rc/tools/rust/racer.kak
create mode 100644 dot_config/kak/autoload/rc/tools/spell.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/appleterminal.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/detection.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/iterm.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/kitty.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/new-client.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/repl/dtach.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/repl/kitty.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/repl/tmux.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/repl/x11.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/screen.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/sway.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/tmux.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/wayland.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/wezterm.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/x11.kak
create mode 100644 dot_config/kak/autoload/rc/windowing/zellij.kak
create mode 100644 dot_config/kak/colors/acme.kak
create mode 100644 dot_config/kak/colors/catppuccin_frappe.kak
create mode 100644 dot_config/kak/colors/catppuccin_latte.kak
create mode 100644 dot_config/kak/colors/catppuccin_macchiato.kak
create mode 100644 dot_config/kak/colors/catppuccin_mocha.kak
create mode 100644 dot_config/kak/kakrc
create mode 100644 dot_config/kitty/current-theme.conf
create mode 100644 dot_config/kitty/kitty.conf
create mode 100644 dot_config/kitty/kitty.conf.bak
create mode 100644 dot_config/kitty/ssh.conf
create mode 100644 dot_config/lf/executable_cleaner
create mode 100644 dot_config/lf/executable_previewer
create mode 100644 dot_config/lf/executable_previewer3
create mode 100644 dot_config/lf/executable_previewer_kitty
create mode 100644 dot_config/lf/executable_pv.sh
create mode 100644 dot_config/lf/filetypes
create mode 100644 dot_config/lf/lfrc
create mode 100644 dot_config/mpd/executable_mpd.conf
create mode 100644 dot_config/mpd/playlists/encrypted_Ado-chill.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_Ado.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_Big Band.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_Colter Wall.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_Solveig.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_big.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_executable_Sabaton.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_executable_Stoic.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_melancholy.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_workout-metal.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_workout.m3u.age
create mode 100644 dot_config/mpd/playlists/encrypted_workout2.m3u.age
create mode 100644 dot_config/mpv/executable_mpv.conf.tmpl
create mode 100644 dot_config/ncmpcpp/bindings
create mode 100644 dot_config/ncmpcpp/config.tmpl
create mode 100644 dot_config/ncmpcpp/formats.conf
create mode 100644 dot_config/ncmpcpp/patterns.list
create mode 100644 dot_config/newsraft/config
create mode 100644 dot_config/newsraft/encrypted_feeds.age
create mode 100644 dot_config/nushell/autoload/01_carapace.nu
create mode 100644 dot_config/nushell/autoload/02_carapace.nu
create mode 100644 dot_config/nushell/autoload/completer.nu
create mode 100644 dot_config/nushell/autoload/lfcd.nu
create mode 100644 dot_config/nushell/config.nu
create mode 100644 dot_config/nushell/env.nu
create mode 100644 dot_config/nvim/LICENSE.md
create mode 100644 dot_config/nvim/README.md
create mode 100644 dot_config/nvim/doc.md
create mode 100644 dot_config/nvim/doc.pdf
create mode 100644 dot_config/nvim/doc/kickstart.txt
create mode 100644 dot_config/nvim/doc/tags
create mode 100644 dot_config/nvim/dot_stylua.toml
create mode 100644 dot_config/nvim/ftplugin/css.lua
create mode 100644 dot_config/nvim/ftplugin/html.lua
create mode 100644 dot_config/nvim/ftplugin/lua.lua
create mode 100644 dot_config/nvim/ftplugin/markdown.lua
create mode 100644 dot_config/nvim/ftplugin/typescript.lua
create mode 100644 dot_config/nvim/ftplugin/typescriptreact.lua
create mode 100644 dot_config/nvim/init.lua
create mode 100644 dot_config/nvim/lazy-lock.json
create mode 100644 dot_config/nvim/lua/health.lua
create mode 100644 dot_config/nvim/lua/plugins/autocomplete.lua
create mode 100644 dot_config/nvim/lua/plugins/init.lua
create mode 100644 dot_config/nvim/lua/plugins/lint.lua
create mode 100644 dot_config/nvim/lua/plugins/lsp.lua
create mode 100644 dot_config/nvim/lua/plugins/mini.lua
create mode 100644 dot_config/nvim/lua/plugins/telescope.lua
create mode 100644 dot_config/nvim/lua/plugins/treesitter.lua
create mode 100644 dot_config/nvim/lua/util/plugin.lua
create mode 100644 dot_config/service-env/DBUS_SESSION_BUS_ADDRESS
create mode 100644 dot_config/service-env/XDG_RUNTIME_DIR
create mode 100644 dot_config/service/dbus/symlink_check
create mode 100644 dot_config/service/dbus/symlink_run
create mode 100644 dot_config/service/pipewire/executable_check
create mode 100644 dot_config/service/pipewire/executable_run
create mode 100644 dot_config/service/pipewire/log/executable_run
create mode 100644 dot_config/service/turnstile-ready/executable_run
create mode 100644 dot_config/sway/conf.d/default.conf
create mode 100644 dot_config/sway/conf.d/foot_tmp.conf
create mode 100644 dot_config/sway/conf.d/hundred.conf
create mode 100644 dot_config/sway/conf.d/shared_workspaces.conf
create mode 100644 dot_config/sway/conf.d/swaysome.conf
create mode 100644 dot_config/sway/config
create mode 100644 dot_config/task/hooks/executable_on-modify.timewarrior
create mode 100644 dot_config/task/taskrc
create mode 100644 dot_config/tmux/tmux.conf
create mode 100644 dot_config/waybar/config
create mode 100644 dot_config/waybar/style.css
create mode 100644 dot_config/x11/xinitrc
create mode 100644 dot_config/xonsh/rc.xsh
create mode 100644 dot_config/yash/common
create mode 100644 dot_config/yash/executable_profile
create mode 100644 dot_config/yash/executable_rc
create mode 100644 dot_config/yt-dlp/executable_config.tmpl
create mode 100644 dot_config/yt-dlp/executable_tmpdl.tmpl
create mode 100644 dot_config/zathura/zathurarc
create mode 100644 dot_config/zed/kakoune-keymap.json
create mode 100644 dot_config/zed/keymap.json
create mode 100644 dot_config/zed/private_settings.json
create mode 100644 dot_config/zed/settings_backup.json
create mode 100644 dot_config/zed/themes/.keep
create mode 100644 dot_config/zsh/executable_dot_zshrc
create mode 100644 dot_config/zsh/executable_git-prompt.zsh
create mode 100644 dot_config/zsh/executable_prompts
create mode 100644 dot_config/zsh/executable_purification
create mode 100644 dot_config/zsh/executable_zshrc
create mode 100644 dot_profile
create mode 100644 private_dot_local/bin/executable_cbv
create mode 100644 private_dot_local/bin/executable_cbv-volume
create mode 100644 private_dot_local/bin/executable_cheat
create mode 100644 private_dot_local/bin/executable_check_mullvad
create mode 100644 private_dot_local/bin/executable_cleanup_filenames.zsh
create mode 100644 private_dot_local/bin/executable_clipboard.sh
create mode 100644 private_dot_local/bin/executable_clipboard_put.sh
create mode 100644 private_dot_local/bin/executable_compiler
create mode 100644 private_dot_local/bin/executable_compresspdf
create mode 100644 private_dot_local/bin/executable_css-httpd.sh
create mode 100644 private_dot_local/bin/executable_get-bookmark
create mode 100644 private_dot_local/bin/executable_gopassmenu
create mode 100644 private_dot_local/bin/executable_gousermenu
create mode 100644 private_dot_local/bin/executable_linkmenu
create mode 100644 private_dot_local/bin/executable_mullvad-browser-launcher
create mode 100644 private_dot_local/bin/executable_p9start
create mode 100644 private_dot_local/bin/executable_packages-list-arch.zsh
create mode 100644 private_dot_local/bin/executable_passmenu
create mode 100644 private_dot_local/bin/executable_remaps
create mode 100644 private_dot_local/bin/executable_rename-fat32
create mode 100644 private_dot_local/bin/executable_rippy
create mode 100644 private_dot_local/bin/executable_rmdc
create mode 100644 private_dot_local/bin/executable_save-bookmark
create mode 100644 private_dot_local/bin/executable_shst
create mode 100644 private_dot_local/bin/executable_simenv
create mode 100644 private_dot_local/bin/executable_status.sh
create mode 100644 private_dot_local/bin/executable_surf-get-url
create mode 100644 private_dot_local/bin/executable_timer
create mode 100644 private_dot_local/bin/executable_vid2opus
create mode 100644 private_dot_local/bin/executable_vpn
create mode 100644 private_dot_local/bin/executable_wl-get-bm
create mode 100644 private_dot_local/bin/executable_workout.sh
create mode 100644 private_dot_local/bin/executable_wsct
create mode 100644 private_dot_local/bin/executable_yt-conv
create mode 100644 private_dot_local/bin/executable_zip2gzip
diff --git a/.chezmoiignore b/.chezmoiignore
new file mode 100644
index 0000000..95db102
--- /dev/null
+++ b/.chezmoiignore
@@ -0,0 +1,2 @@
+README.md
+LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..dd8e0c2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,24 @@
+# Dotfiles
+
+These are my personal dotfiles.
+I do not use all of these programs all the time (that's why there are five different editor configs), so some may be broken or out of date.
+
+## Usage
+
+I manage these using GNU stow.
+Clone this repo into your home directory, then stow whichever configurations you want to use.
+For example, to use the fish config:
+
+```bash
+stow fish
+```
+
+Most of the directories are pretty self-explanatory (just look up the program), but here's a quick explanation of the less obvious ones:
+
+- **service**: `runit` user services managed using `turnstiled`.
+[More info](https://docs.voidlinux.org/config/services/user-services.html).
+- **service-env**: Environment variables for user services.
+- **shell**: Useful environment variables for interactive shell usage.
+This sets the variables for `dash` (user shell), which are inherited by `fish`, which I call explicitly when opening a terminal window (i.e. `st /usr/bin/fish`).
+- **scripts**: Some scripts that I have written and used at various points in time.
+Many of them are only really useful for quick reference, but there are a few actually useful ones.
diff --git a/dot_config/ctpv/config b/dot_config/ctpv/config
new file mode 100644
index 0000000..26566f8
--- /dev/null
+++ b/dot_config/ctpv/config
@@ -0,0 +1 @@
+set chafasixel
diff --git a/dot_config/fish/completions/.keep b/dot_config/fish/completions/.keep
new file mode 100644
index 0000000..e69de29
diff --git a/dot_config/fish/conf.d/aliases.fish b/dot_config/fish/conf.d/aliases.fish
new file mode 100644
index 0000000..cf2dc5f
--- /dev/null
+++ b/dot_config/fish/conf.d/aliases.fish
@@ -0,0 +1,10 @@
+alias ls "ls -h --color=auto --group-directories-first"
+alias tree "tree -C"
+alias cp "cp -iv"
+alias rm "rm -Iv"
+alias mv "mv -iv"
+alias mkdir "mkdir -pv"
+alias nvbm "nvim $XDG_DATA_HOME/bookmarks"
+alias less "less -R"
+alias zathura "zathura --fork"
+alias lf "lfcd"
diff --git a/dot_config/fish/conf.d/env.fish b/dot_config/fish/conf.d/env.fish
new file mode 100644
index 0000000..19d6ce5
--- /dev/null
+++ b/dot_config/fish/conf.d/env.fish
@@ -0,0 +1,55 @@
+################## NOTICE ##################
+# Since we are calling `st /usr/bin/fish` instead of setting fish as the
+# user shell, these variables are now set in ~/.profile (for dash) and
+# are inherited by fish.
+############################################
+
+#set -gx EDITOR "/usr/bin/kak"
+#
+#set -gx EDITOR "kak"
+#
+#set -gx XDG_CONFIG_HOME "$HOME/.config"
+#set -gx XDG_DATA_HOME "$HOME/.local/share"
+#set -gx XDG_CACHE_HOME "$HOME/.cache"
+#
+#set -gx MPD_HOST "$XDG_RUNTIME_DIR/mpd.sock"
+#set -gx XINITRC "$XDG_CONFIG_HOME/x11/xinitrc"
+#
+#set -gx CARGO_HOME "$XDG_DATA_HOME/rust/cargo"
+#set -gx RUSTUP_HOME "$XDG_DATA_HOME/rust/rustup"
+#
+#set -gx GOPATH "$XDG_DATA_HOME/go"
+#set -gx GOMODCACHE "$XDG_CACHE_HOME/go/mod"
+#set -pgx PATH '/usr/local/go/bin'
+#set -pgx PATH "$GOPATH/bin"
+#
+#set -gx PYTHONSTARTUP "$XDG_CONFIG_HOME/python/pythonrc"
+#set -gx SQLITE_HISTORY "$XDG_DATA_HOME/sqlite_history"
+#
+#set -gx PASSWORD_STORE_DIR "$XDG_DATA_HOME/password-store"
+#set -gx GNUPGHOME "$XDG_DATA_HOME/gnupg"
+#
+#set -gx FZF_DEFAULT_OPTS "--reverse --height=50%"
+#set -gx _ZO_FZF_OPTS "--scheme=path --tiebreak=index --height=75% --reverse --border=rounded --no-scrollbar --preview=\"ls --color -al {2}\" --preview-window=right"
+##set -gx BAT_THEME "base16"
+#set -gx MANPAGER "less -R --use-color -Dd+r -Du+b"
+#
+## Ollama
+#set -gx OLLAMA_NOHISTORY 1
+#
+## Plan9
+##set -gx PLAN9 "/usr/local/plan9"
+##set -gxax PATH "$PLAN9/bin"
+#
+## Misc.
+## set -gx XINITRC "$XDG_CONFIG_HOME/x11/xinitrc"
+## set -gx XAUTHORITY "$XDG_RUNTIME_DIR/Xauthority"
+#set -gx GTK2_RC_FILES "$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
+#set -gx WGETRC "$XDG_CONFIG_HOME/wget/wgetrc"
+#set -gx INPUTRC "$XDG_CONFIG_HOME/shell/inputrc"
+#set -gx ANSIBLE_CONFIG "$XDG_CONFIG_HOME/ansible/ansible.cfg"
+#set -gx MBSYNCRC "$XDG_CONFIG_HOME/mbsync/config"
+#set -gx ELECTRUMDIR "$XDG_DATA_HOME/electrum"
+#set -gx PYTHONSTARTUP "$XDG_CONFIG_HOME/python/pythonrc"
+#set -gx SQLITE_HISTORY "$XDG_DATA_HOME/sqlite_history"
+#
diff --git a/dot_config/fish/conf.d/rustup.fish b/dot_config/fish/conf.d/rustup.fish
new file mode 100644
index 0000000..cf1d54a
--- /dev/null
+++ b/dot_config/fish/conf.d/rustup.fish
@@ -0,0 +1 @@
+source "/home/tom/.local/share/rust/cargo/env.fish"
diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish
new file mode 100644
index 0000000..0808119
--- /dev/null
+++ b/dot_config/fish/config.fish
@@ -0,0 +1,9 @@
+if status is-interactive
+ # Commands to run in interactive sessions can go here
+ set -g fish_greeting
+ abbr --add lf lfcd
+ fzf --fish | source
+
+ # Set fish_key_bindings globally per 4.3 update instructions
+ set --global fish_key_bindings fish_default_key_bindings
+end
diff --git a/dot_config/fish/fish_variables b/dot_config/fish/fish_variables
new file mode 100644
index 0000000..687fe6c
--- /dev/null
+++ b/dot_config/fish/fish_variables
@@ -0,0 +1,6 @@
+# This file contains fish universal variable definitions.
+# VERSION: 3.0
+SETUVAR --export CARAPACE_BRIDGES:zsh\x2cfish\x2cbash\x2cinshellisense
+SETUVAR __fish_initialized:4300
+SETUVAR _fish_abbr_lf:lfcd
+SETUVAR fish_user_paths:/home/tom/\x2elocal/bin
diff --git a/dot_config/fish/functions/fish_prompt.fish b/dot_config/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..415f452
--- /dev/null
+++ b/dot_config/fish/functions/fish_prompt.fish
@@ -0,0 +1,10 @@
+function fish_prompt
+ set -l last_status $status
+ # Prompt status only if it's not 0
+ set -l stat
+ if test $last_status -ne 0
+ set stat (set_color red)" [$last_status] "(set_color normal)
+ end
+
+ string join '' -- (set_color green) (prompt_pwd -D 50) (set_color normal) $stat '> '
+end
diff --git a/dot_config/fish/functions/lfcd.fish b/dot_config/fish/functions/lfcd.fish
new file mode 100644
index 0000000..9007021
--- /dev/null
+++ b/dot_config/fish/functions/lfcd.fish
@@ -0,0 +1,18 @@
+# Change working dir in fish to last dir in lf on exit (adapted from ranger).
+#
+# You may put this file to a directory in $fish_function_path variable:
+#
+# mkdir -p ~/.config/fish/functions
+# ln -s "/path/to/lfcd.fish" ~/.config/fish/functions
+#
+# You may also like to assign a key (Ctrl-O) to this command:
+#
+# bind \co 'set old_tty (stty -g); stty sane; lfcd; stty $old_tty; commandline -f repaint'
+#
+# You may put this in a function called fish_user_key_bindings.
+
+function lfcd --wraps="lf" --description="lf - Terminal file manager (changing directory on exit)"
+ # `command` is needed in case `lfcd` is aliased to `lf`.
+ # Quotes will cause `cd` to not change directory if `lf` prints nothing to stdout due to an error.
+ cd "$(command lf -print-last-dir $argv)"
+end
diff --git a/dot_config/fish/functions/z.fish b/dot_config/fish/functions/z.fish
new file mode 100644
index 0000000..6b1d535
--- /dev/null
+++ b/dot_config/fish/functions/z.fish
@@ -0,0 +1,76 @@
+# =============================================================================
+#
+# Utility functions for zoxide.
+#
+
+# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
+function __zoxide_pwd
+ builtin pwd -L
+end
+
+# A copy of fish's internal cd function. This makes it possible to use
+# `alias cd=z` without causing an infinite loop.
+if ! builtin functions --query __zoxide_cd_internal
+ string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
+end
+
+# cd + custom logic based on the value of _ZO_ECHO.
+function __zoxide_cd
+ if set -q __zoxide_loop
+ builtin echo "zoxide: infinite loop detected"
+ builtin echo "Avoid aliasing `cd` to `z` directly, use `zoxide init --cmd=cd fish` instead"
+ return 1
+ end
+ __zoxide_loop=1 __zoxide_cd_internal $argv
+end
+
+# =============================================================================
+#
+# Hook configuration for zoxide.
+#
+
+# Initialize hook to add new entries to the database.
+function __zoxide_hook --on-variable PWD
+ test -z "$fish_private_mode"
+ and command zoxide add -- (__zoxide_pwd)
+end
+
+# =============================================================================
+#
+# When using zoxide with --no-cmd, alias these internal functions as desired.
+#
+
+# Jump to a directory using only keywords.
+function z
+ set -l argc (builtin count $argv)
+ if test $argc -eq 0
+ __zoxide_cd $HOME
+ else if test "$argv" = -
+ __zoxide_cd -
+ else if test $argc -eq 1 -a -d $argv[1]
+ __zoxide_cd $argv[1]
+ else if test $argc -eq 2 -a $argv[1] = --
+ __zoxide_cd -- $argv[2]
+ else
+ set -l result (command zoxide query --exclude (__zoxide_pwd) -- $argv)
+ and __zoxide_cd $result
+ end
+end
+
+# Completions.
+function __zoxide_z_complete
+ set -l tokens (builtin commandline --current-process --tokenize)
+ set -l curr_tokens (builtin commandline --cut-at-cursor --current-process --tokenize)
+
+ if test (builtin count $tokens) -le 2 -a (builtin count $curr_tokens) -eq 1
+ # If there are < 2 arguments, use `cd` completions.
+ complete --do-complete "'' "(builtin commandline --cut-at-cursor --current-token) | string match --regex -- '.*/$'
+ else if test (builtin count $tokens) -eq (builtin count $curr_tokens)
+ # If the last argument is empty, use interactive selection.
+ set -l query $tokens[2..-1]
+ set -l result (command zoxide query --exclude (__zoxide_pwd) --interactive -- $query)
+ and __zoxide_cd $result
+ and builtin commandline --function cancel-commandline repaint
+ end
+end
+complete --command __zoxide_z --no-files --arguments '(__zoxide_z_complete)'
diff --git a/dot_config/fish/functions/zi.fish b/dot_config/fish/functions/zi.fish
new file mode 100644
index 0000000..c529662
--- /dev/null
+++ b/dot_config/fish/functions/zi.fish
@@ -0,0 +1,17 @@
+if ! builtin functions --query __zoxide_cd_internal
+ string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
+end
+function __zoxide_cd
+ if set -q __zoxide_loop
+ builtin echo "zoxide: infinite loop detected"
+ builtin echo "Avoid aliasing `cd` to `z` directly, use `zoxide init --cmd=cd fish` instead"
+ return 1
+ end
+ __zoxide_loop=1 __zoxide_cd_internal $argv
+end
+
+# Jump to a directory using interactive search.
+function zi
+ set -l result (command zoxide query --interactive -- $argv)
+ and __zoxide_cd $result
+end
diff --git a/dot_config/foot/acme.ini b/dot_config/foot/acme.ini
new file mode 100644
index 0000000..4b55974
--- /dev/null
+++ b/dot_config/foot/acme.ini
@@ -0,0 +1,25 @@
+# Acme theme
+# Derived from the alacritty `selenized-light` theme
+# and the Helix `acme` theme by Two-Six
+
+[colors]
+background=ffffea
+foreground=000000
+
+regular0=000000
+regular1=a0342f
+regular2=065905
+regular3=ad8900
+regular4=0072d4
+regular5=ca4898
+regular6=009c8f
+regular7=909995
+
+bright0=000000
+bright1=cc3028
+bright2=0fcc0c
+bright3=a78300
+bright4=006dce
+bright5=c44392
+bright6=00978a
+bright7=3a4d53
diff --git a/dot_config/foot/acme.toml b/dot_config/foot/acme.toml
new file mode 100644
index 0000000..4b55974
--- /dev/null
+++ b/dot_config/foot/acme.toml
@@ -0,0 +1,25 @@
+# Acme theme
+# Derived from the alacritty `selenized-light` theme
+# and the Helix `acme` theme by Two-Six
+
+[colors]
+background=ffffea
+foreground=000000
+
+regular0=000000
+regular1=a0342f
+regular2=065905
+regular3=ad8900
+regular4=0072d4
+regular5=ca4898
+regular6=009c8f
+regular7=909995
+
+bright0=000000
+bright1=cc3028
+bright2=0fcc0c
+bright3=a78300
+bright4=006dce
+bright5=c44392
+bright6=00978a
+bright7=3a4d53
diff --git a/dot_config/foot/alacritty.toml b/dot_config/foot/alacritty.toml
new file mode 100644
index 0000000..e427c93
--- /dev/null
+++ b/dot_config/foot/alacritty.toml
@@ -0,0 +1,34 @@
+[env]
+TERM = "xterm-256color"
+
+[cursor]
+#style = {shape = "beam", blinking = "Off"}
+style.shape = "beam"
+
+[font]
+# Customized version of Apple Meslo, very normie
+normal = { family = "MesloLGS Nerd Font", style = "Mono" }
+
+# Patched spleen (font from OpenBSD)
+#normal = { family = "Spleen32x64Nerd Font Mono", style = "Regular" }
+
+#normal = { family = "Terminess Nerd Font", style = "Regular" }
+
+# Somewhat similar to spleen
+#normal = { family = "VictorMono Nerd Font Mono", style = "Regular" }
+#italic = { style = "Oblique" }
+size = 12
+
+[window]
+opacity = 1
+
+[general]
+import = [
+ "~/.config/alacritty/acme.toml"
+ #"~/.config/alacritty/catppuccin-latte.toml"
+ #"~/.config/alacritty/selenized-white.toml"
+ #"~/.config/alacritty/selenized-light.toml"
+ #"~/.config/alacritty/themes/themes/one_light.toml"
+ #"~/.config/alacritty/themes/themes/ayu_light.toml"
+]
+
diff --git a/dot_config/foot/catppuccin-latte b/dot_config/foot/catppuccin-latte
new file mode 100644
index 0000000..7f77dae
--- /dev/null
+++ b/dot_config/foot/catppuccin-latte
@@ -0,0 +1,39 @@
+# _*_ conf _*_
+# Catppuccin Latte
+
+[colors]
+foreground=4c4f69
+background=eff1f5
+
+regular0=5c5f77
+regular1=d20f39
+regular2=40a02b
+regular3=df8e1d
+regular4=1e66f5
+regular5=ea76cb
+regular6=179299
+regular7=acb0be
+
+bright0=6c6f85
+bright1=d20f39
+bright2=40a02b
+bright3=df8e1d
+bright4=1e66f5
+bright5=ea76cb
+bright6=179299
+bright7=bcc0cc
+
+cursor=eff1f5 dc8a78
+
+16=fe640b
+17=dc8a78
+
+selection-foreground=4c4f69
+selection-background=ccced7
+
+search-box-no-match=dce0e8 d20f39
+search-box-match=4c4f69 ccd0da
+
+jump-labels=dce0e8 fe640b
+urls=1e66f5
+
diff --git a/dot_config/foot/catppuccin-latte.toml b/dot_config/foot/catppuccin-latte.toml
new file mode 100644
index 0000000..e9414ad
--- /dev/null
+++ b/dot_config/foot/catppuccin-latte.toml
@@ -0,0 +1,65 @@
+[colors.primary]
+background = "#eff1f5"
+foreground = "#4c4f69"
+dim_foreground = "#8c8fa1"
+bright_foreground = "#4c4f69"
+
+[colors.cursor]
+text = "#eff1f5"
+cursor = "#dc8a78"
+
+[colors.vi_mode_cursor]
+text = "#eff1f5"
+cursor = "#7287fd"
+
+[colors.search.matches]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.search.focused_match]
+foreground = "#eff1f5"
+background = "#40a02b"
+
+[colors.footer_bar]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.hints.start]
+foreground = "#eff1f5"
+background = "#df8e1d"
+
+[colors.hints.end]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.selection]
+text = "#eff1f5"
+background = "#dc8a78"
+
+[colors.normal]
+black = "#bcc0cc"
+red = "#d20f39"
+green = "#40a02b"
+yellow = "#df8e1d"
+blue = "#1e66f5"
+magenta = "#ea76cb"
+cyan = "#179299"
+white = "#5c5f77"
+
+[colors.bright]
+black = "#acb0be"
+red = "#d20f39"
+green = "#40a02b"
+yellow = "#df8e1d"
+blue = "#1e66f5"
+magenta = "#ea76cb"
+cyan = "#179299"
+white = "#6c6f85"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#fe640b"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#dc8a78"
diff --git a/dot_config/foot/demo.ini b/dot_config/foot/demo.ini
new file mode 100644
index 0000000..2ac0c05
--- /dev/null
+++ b/dot_config/foot/demo.ini
@@ -0,0 +1,275 @@
+# -*- conf -*-
+
+# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
+# term=foot (or xterm-256color if built with -Dterminfo=disabled)
+# login-shell=no
+
+# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
+# title=foot
+# locked-title=no
+
+# font=monospace:size=8
+# font-bold=
+# font-italic=
+# font-bold-italic=
+# font-size-adjustment=0.5
+# line-height=
+# letter-spacing=0
+# horizontal-letter-offset=0
+# vertical-letter-offset=0
+# underline-offset=
+# underline-thickness=
+# strikeout-thickness=
+# box-drawings-uses-font-glyphs=no
+# dpi-aware=no
+# gamma-correct-blending=no
+
+# initial-window-size-pixels=700x500 # Or,
+# initial-window-size-chars=
+# initial-window-mode=windowed
+# pad=0x0 # optionally append 'center'
+# resize-by-cells=yes
+# resize-keep-grid=yes
+# resize-delay-ms=100
+
+# bold-text-in-bright=no
+# word-delimiters=,│`|:"'()[]{}<>
+# selection-target=primary
+# workers=
+# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux)
+# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD)
+
+[environment]
+# name=value
+
+[security]
+# osc52=enabled # disabled|copy-enabled|paste-enabled|enabled
+
+[bell]
+# system=yes
+# urgent=no
+# notify=no
+# visual=no
+# command=
+# command-focused=no
+
+[desktop-notifications]
+# command=notify-send --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint STRING:image-path:${icon} --hint BOOLEAN:suppress-sound:${muted} --hint STRING:sound-name:${sound-name} --replace-id ${replace-id} ${action-argument} --print-id -- ${title} ${body}
+# command-action-argument=--action ${action-name}=${action-label}
+# close=""
+# inhibit-when-focused=yes
+
+
+[scrollback]
+# lines=1000
+# multiplier=3.0
+# indicator-position=relative
+# indicator-format=""
+
+[url]
+# launch=xdg-open ${url}
+# label-letters=sadfjklewcmpgh
+# osc8-underline=url-mode
+# regex=(((https?://|mailto:|ftp://|file:|ssh:|ssh://|git://|tel:|magnet:|ipfs://|ipns://|gemini://|gopher://|news:)|www\.)([0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]+|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*')+([0-9a-zA-Z/#@$&*+=~_%^\-]|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*'))
+
+# You can define your own regex's, by adding a section called
+# 'regex:' with a 'regex' and 'launch' key. These can then be tied
+# to a key-binding. See foot.ini(5) for details
+
+# [regex:your-fancy-name]
+# regex=
+# launch= ${match}
+#
+# [key-bindings]
+# regex-launch=[your-fancy-name] Control+Shift+q
+# regex-copy=[your-fancy-name] Control+Alt+Shift+q
+
+[cursor]
+# style=block
+# color=
+# blink=no
+# blink-rate=500
+# beam-thickness=1.5
+# underline-thickness=
+
+[mouse]
+# hide-when-typing=no
+# alternate-scroll-mode=yes
+
+[touch]
+# long-press-delay=400
+
+[colors]
+# alpha=1.0
+# alpha-mode=default # Can be `default`, `matching` or `all`
+# background=242424
+# foreground=ffffff
+# flash=7f7f00
+# flash-alpha=0.5
+
+## Normal/regular colors (color palette 0-7)
+# regular0=242424 # black
+# regular1=f62b5a # red
+# regular2=47b413 # green
+# regular3=e3c401 # yellow
+# regular4=24acd4 # blue
+# regular5=f2affd # magenta
+# regular6=13c299 # cyan
+# regular7=e6e6e6 # white
+
+## Bright colors (color palette 8-15)
+# bright0=616161 # bright black
+# bright1=ff4d51 # bright red
+# bright2=35d450 # bright green
+# bright3=e9e836 # bright yellow
+# bright4=5dc5f8 # bright blue
+# bright5=feabf2 # bright magenta
+# bright6=24dfc4 # bright cyan
+# bright7=ffffff # bright white
+
+## dimmed colors (see foot.ini(5) man page)
+# dim0=
+# ...
+# dim7=
+
+## The remaining 256-color palette
+# 16 = <256-color palette #16>
+# ...
+# 255 = <256-color palette #255>
+
+## Sixel colors
+# sixel0 = 000000
+# sixel1 = 3333cc
+# sixel2 = cc2121
+# sixel3 = 33cc33
+# sixel4 = cc33cc
+# sixel5 = 33cccc
+# sixel6 = cccc33
+# sixel7 = 878787
+# sixel8 = 424242
+# sixel9 = 545499
+# sixel10 = 994242
+# sixel11 = 549954
+# sixel12 = 995499
+# sixel13 = 549999
+# sixel14 = 999954
+# sixel15 = cccccc
+
+## Misc colors
+# selection-foreground=
+# selection-background=
+# jump-labels= # black-on-yellow
+# scrollback-indicator= # black-on-bright-blue
+# search-box-no-match= # black-on-red
+# search-box-match= # black-on-yellow
+# urls=
+
+[csd]
+# preferred=server
+# size=26
+# font=
+# color=
+# hide-when-maximized=no
+# double-click-to-maximize=yes
+# border-width=0
+# border-color=
+# button-width=26
+# button-color=
+# button-minimize-color=
+# button-maximize-color=
+# button-close-color=
+
+[key-bindings]
+# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up
+# scrollback-up-half-page=none
+# scrollback-up-line=none
+# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down
+# scrollback-down-half-page=none
+# scrollback-down-line=none
+# scrollback-home=none
+# scrollback-end=none
+# clipboard-copy=Control+Shift+c XF86Copy
+# clipboard-paste=Control+Shift+v XF86Paste
+# primary-paste=Shift+Insert
+# search-start=Control+Shift+r
+# font-increase=Control+plus Control+equal Control+KP_Add
+# font-decrease=Control+minus Control+KP_Subtract
+# font-reset=Control+0 Control+KP_0
+# spawn-terminal=Control+Shift+n
+# minimize=none
+# maximize=none
+# fullscreen=none
+# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
+# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
+# pipe-selected=[xargs -r firefox] none
+# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard
+# show-urls-launch=Control+Shift+o
+# show-urls-copy=none
+# show-urls-persistent=none
+# prompt-prev=Control+Shift+z
+# prompt-next=Control+Shift+x
+# unicode-input=Control+Shift+u
+# noop=none
+# quit=none
+
+[search-bindings]
+# cancel=Control+g Control+c Escape
+# commit=Return KP_Enter
+# find-prev=Control+r
+# find-next=Control+s
+# cursor-left=Left Control+b
+# cursor-left-word=Control+Left Mod1+b
+# cursor-right=Right Control+f
+# cursor-right-word=Control+Right Mod1+f
+# cursor-home=Home Control+a
+# cursor-end=End Control+e
+# delete-prev=BackSpace
+# delete-prev-word=Mod1+BackSpace Control+BackSpace
+# delete-next=Delete
+# delete-next-word=Mod1+d Control+Delete
+# delete-to-start=Control+u
+# delete-to-end=Control+k
+# extend-char=Shift+Right
+# extend-to-word-boundary=Control+w Control+Shift+Right
+# extend-to-next-whitespace=Control+Shift+w
+# extend-line-down=Shift+Down
+# extend-backward-char=Shift+Left
+# extend-backward-to-word-boundary=Control+Shift+Left
+# extend-backward-to-next-whitespace=none
+# extend-line-up=Shift+Up
+# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
+# primary-paste=Shift+Insert
+# unicode-input=none
+# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up
+# scrollback-up-half-page=none
+# scrollback-up-line=none
+# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down
+# scrollback-down-half-page=none
+# scrollback-down-line=none
+# scrollback-home=none
+# scrollback-end=none
+
+[url-bindings]
+# cancel=Control+g Control+c Control+d Escape
+# toggle-url-visible=t
+
+[text-bindings]
+# \x03=Mod4+c # Map Super+c -> Ctrl+c
+
+[mouse-bindings]
+# scrollback-up-mouse=BTN_WHEEL_BACK
+# scrollback-down-mouse=BTN_WHEEL_FORWARD
+# font-increase=Control+BTN_WHEEL_BACK
+# font-decrease=Control+BTN_WHEEL_FORWARD
+# selection-override-modifiers=Shift
+# primary-paste=BTN_MIDDLE
+# select-begin=BTN_LEFT
+# select-begin-block=Control+BTN_LEFT
+# select-extend=BTN_RIGHT
+# select-extend-character-wise=Control+BTN_RIGHT
+# select-word=BTN_LEFT-2
+# select-word-whitespace=Control+BTN_LEFT-2
+# select-quote = BTN_LEFT-3
+# select-row=BTN_LEFT-4
+
+# vim: ft=dosini
diff --git a/dot_config/foot/foot.ini b/dot_config/foot/foot.ini
new file mode 100644
index 0000000..505ca48
--- /dev/null
+++ b/dot_config/foot/foot.ini
@@ -0,0 +1,10 @@
+[main]
+font=FiraMono Nerd Font Mono:size=9
+include=/home/tom/.config/foot/catppuccin-latte
+#include=/usr/share/foot/themes/catppuccin-latte
+shell=/usr/bin/fish
+#shell=/home/tom/.local/bin/xonsh
+#shell=/usr/bin/nu
+
+[cursor]
+style=beam
diff --git a/dot_config/foot/selenized-light.toml b/dot_config/foot/selenized-light.toml
new file mode 100644
index 0000000..f7dcd54
--- /dev/null
+++ b/dot_config/foot/selenized-light.toml
@@ -0,0 +1,24 @@
+[colors.primary]
+background = "#fbf3db"
+foreground = "#53676d"
+
+[colors.normal]
+black = "#ece3cc"
+red = "#d2212d"
+green = "#489100"
+yellow = "#ad8900"
+blue = "#0072d4"
+magenta = "#ca4898"
+cyan = "#009c8f"
+white = "#909995"
+
+[colors.bright]
+black = "#d5cdb6"
+red = "#cc1729"
+green = "#428b00"
+yellow = "#a78300"
+blue = "#006dce"
+magenta = "#c44392"
+cyan = "#00978a"
+white = "#3a4d53"
+
diff --git a/dot_config/foot/selenized-white.toml b/dot_config/foot/selenized-white.toml
new file mode 100644
index 0000000..7296495
--- /dev/null
+++ b/dot_config/foot/selenized-white.toml
@@ -0,0 +1,24 @@
+[colors.primary]
+background = "#ffffff"
+foreground = "#474747"
+
+[colors.normal]
+black = "#ebebeb"
+red = "#d6000c"
+green = "#1d9700"
+yellow = "#c49700"
+blue = "#0064e4"
+magenta = "#dd0f9d"
+cyan = "#00ad9c"
+white = "#878787"
+
+[colors.bright]
+black = "#cdcdcd"
+red = "#bf0000"
+green = "#008400"
+yellow = "#af8500"
+blue = "#0054cf"
+magenta = "#c7008b"
+cyan = "#009a8a"
+white = "#282828"
+
diff --git a/dot_config/helix/config.toml b/dot_config/helix/config.toml
new file mode 100644
index 0000000..04f710d
--- /dev/null
+++ b/dot_config/helix/config.toml
@@ -0,0 +1,6 @@
+theme = "catppuccin_latte"
+[editor]
+line-number = "relative"
+auto-pairs = false
+
+soft-wrap.enable = true
diff --git a/dot_config/helix/languages.toml b/dot_config/helix/languages.toml
new file mode 100644
index 0000000..c4db5a9
--- /dev/null
+++ b/dot_config/helix/languages.toml
@@ -0,0 +1,20 @@
+[language-server.typescript-language-server]
+command = "vtsls"
+args = ["--stdio"]
+config.hostInfo = "helix"
+
+[language-server.typescript-language-server.config.typescript]
+updateImportsOnFileMove.enabled = "always"
+suggest.completeFunctionCalls = true
+tsserver.enableTracing = true
+inlayHints.parameterNames.enabled = "all"
+inlayHints.parameterTypes.enabled = true
+inlayHints.variableTypes.enabled = true
+inlayHints.propertyDeclarationTypes.enabled = true
+inlayHints.functionLikeReturnTypes = true
+inlayHints.enumMemberValues.enabled = true
+format.enable = false
+format.semicolons = "remove"
+preferences.importModuleSpecifier = "non-relative"
+preferences.importModuleSpecifierEnding = "auto"
+tsserver.pluginPaths = ["typescript-plugin-css-modules", "./node_modules"]
diff --git a/dot_config/kak/autoload/find.kak b/dot_config/kak/autoload/find.kak
new file mode 100644
index 0000000..f970637
--- /dev/null
+++ b/dot_config/kak/autoload/find.kak
@@ -0,0 +1,63 @@
+declare-option -docstring "shell command run to find a file or directory" \
+ str findcmd 'fd -tf -H'
+
+provide-module find %{
+
+require-module jump
+
+define-command -params .. -docstring %{
+ find []: find utility wrapper
+ All optional arguments are forwarded to the find utility
+ Passing no argument will perform a literal-string search for the current selection
+} find %{ evaluate-commands %sh{
+ if [ $# -eq 0 ]; then
+ case "$kak_opt_findcmd" in
+ fd\ * | git\ grep\ * | grep\ * | rg\ * | ripgrep\ * | ugrep\ * | ug\ *)
+ set -- -F "${kak_selection}"
+ ;;
+ *)
+ set -- "${kak_selection}"
+ ;;
+ esac
+ fi
+
+ output=$(mktemp -d "${TMPDIR:-/tmp}"/kak-find.XXXXXXXX)/fifo
+ mkfifo ${output}
+ ( { trap - INT QUIT; ${kak_opt_findcmd} "$@" 2>&1 | tr -d '\r'; } > ${output} 2>&1 & ) > /dev/null 2>&1 < /dev/null
+
+ printf %s\\n "evaluate-commands -try-client '$kak_opt_toolsclient' %{
+ edit! -fifo ${output} *find*
+ set-option buffer filetype find
+ set-option buffer jump_current_line 0
+ hook -always -once buffer BufCloseFifo .* %{ nop %sh{ rm -r $(dirname ${output}) } }
+ }"
+}}
+complete-command find file
+
+hook -group find-highlight global WinSetOption filetype=find %{
+ add-highlighter window/find group
+ add-highlighter window/find/ regex "^(.+)" 1:cyan
+ add-highlighter window/find/ line %{%opt{jump_current_line}} default+b
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/find }
+}
+
+hook global WinSetOption filetype=find %{
+ hook buffer -group find-hooks NormalKey jump
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks buffer find-hooks }
+}
+
+define-command -hidden find-jump %{
+ jump
+}
+
+define-command find-next-match -docstring %{alias for "jump-next *find*"} %{
+ jump-next -matching \*find(-.*)?\*
+}
+
+define-command find-previous-match -docstring %{alias for "jump-previous *find*"} %{
+ jump-previous -matching \*find(-.*)?\*
+}
+
+}
+
+hook -once global KakBegin .* %{ require-module find }
diff --git a/dot_config/kak/autoload/rc/detection/editorconfig.kak b/dot_config/kak/autoload/rc/detection/editorconfig.kak
new file mode 100644
index 0000000..e836c3e
--- /dev/null
+++ b/dot_config/kak/autoload/rc/detection/editorconfig.kak
@@ -0,0 +1,60 @@
+# http://editorconfig.org/#file-format-details
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+# Detection
+# ‾‾‾‾‾‾‾‾‾
+
+hook global BufCreate .*[.](editorconfig) %{
+ set-option buffer filetype ini
+ set-option buffer static_words indent_style indent_size tab_width \
+ end_of_line charset insert_final_newline trim_trailing_whitespace root \
+ latin1 utf-8 utf-8-bom utf-16be utf-16le lf cr crlf unset space tab max_line_length
+}
+
+define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file]: set formatting behavior according to editorconfig" %{
+ evaluate-commands %sh{
+ command -v editorconfig >/dev/null 2>&1 || { echo "fail editorconfig could not be found"; exit 1; }
+
+ file="${1:-$kak_buffile}"
+ case $file in
+ /*) # $kak_buffile is a full path that starts with a '/'
+ printf %s\\n "remove-hooks buffer editorconfig-hooks"
+ editorconfig "$file" | awk -v file="$file" -F= -- '
+ $1 == "indent_style" { indent_style = $2 }
+ $1 == "indent_size" { indent_size = $2 == "tab" ? 4 : $2 }
+ $1 == "tab_width" { tab_width = $2 }
+ $1 == "end_of_line" { end_of_line = $2 }
+ $1 == "charset" { charset = $2 }
+ $1 == "trim_trailing_whitespace" { trim_trailing_whitespace = $2 }
+ $1 == "max_line_length" { max_line_length = $2 }
+
+ END {
+ if (indent_style == "tab") {
+ print "set-option buffer indentwidth 0"
+ }
+ if (indent_style == "space") {
+ print "set-option buffer indentwidth " indent_size
+ }
+ if (indent_size || tab_width) {
+ print "set-option buffer tabstop " (tab_width ? tab_width : indent_size)
+ }
+ if (end_of_line == "lf" || end_of_line == "crlf") {
+ print "set-option buffer eolformat " end_of_line
+ }
+ if (charset == "utf-8-bom") {
+ print "set-option buffer BOM utf8"
+ }
+ if (trim_trailing_whitespace == "true") {
+ print "hook buffer BufWritePre \"" file "\" -group editorconfig-hooks %{ try %{ execute-keys -draft %{%s\\h+$|\\n+\\zd} } }"
+ }
+ if (max_line_length && max_line_length != "off") {
+ print "set window autowrap_column " max_line_length
+ print "autowrap-enable"
+ print "add-highlighter window/ column %sh{ echo $((" max_line_length "+1)) } default,bright-black"
+ }
+ }
+ ' ;;
+ esac
+ }
+}
+complete-command editorconfig-load file
diff --git a/dot_config/kak/autoload/rc/detection/file.kak b/dot_config/kak/autoload/rc/detection/file.kak
new file mode 100644
index 0000000..c707386
--- /dev/null
+++ b/dot_config/kak/autoload/rc/detection/file.kak
@@ -0,0 +1,26 @@
+define-command -hidden file-detection %{ evaluate-commands %sh{
+ if [ -z "${kak_opt_filetype}" ]; then
+ mime=$(file -b --mime-type -L "${kak_buffile}")
+ mime=${mime%;*}
+ case "${mime}" in
+ application/*+xml) filetype="xml" ;;
+ image/*+xml) filetype="xml" ;; #SVG
+ message/rfc822) filetype="mail" ;;
+ text/x-shellscript) filetype="sh" ;;
+ text/x-script.*) filetype="${mime#text/x-script.}" ;;
+ text/x-*) filetype="${mime#text/x-}" ;;
+ text/plain) exit ;;
+ text/*) filetype="${mime#text/}" ;;
+ application/x-shellscript) filetype="sh" ;;
+ application/x-*) filetype="${mime#application/x-}" ;;
+ application/*) filetype="${mime#application/}" ;;
+ *) exit ;;
+ esac
+ if [ -n "${filetype}" ]; then
+ printf "set-option buffer filetype '%s'\n" "${filetype}"
+ fi
+ fi
+} }
+
+hook -group file-detection global BufOpenFile .* file-detection
+hook -group file-detection global BufWritePost .* file-detection
diff --git a/dot_config/kak/autoload/rc/detection/modeline.kak b/dot_config/kak/autoload/rc/detection/modeline.kak
new file mode 100644
index 0000000..6e067b1
--- /dev/null
+++ b/dot_config/kak/autoload/rc/detection/modeline.kak
@@ -0,0 +1,123 @@
+##
+## modeline.kak by lenormf
+##
+
+## Currently supported modeline format: vim
+## Also supports kakoune options with a 'kak' or 'kakoune' prefix
+## Only a few options are supported, in order to prevent the
+## buffers from poking around the configuration too much
+
+declare-option -docstring "amount of lines that will be checked at the beginning and the end of the buffer" \
+ int modelines 5
+
+define-command -hidden modeline-parse-impl %{
+ evaluate-commands %sh{
+ kakquote() { printf "%s" "$*" | sed "s/'/''/g; 1s/^/'/; \$s/\$/'/"; }
+
+ # Translate a vim option into the corresponding kakoune one
+ translate_opt_vim() {
+ local key="$1"
+ local value="$2"
+
+ case "${key}" in
+ so|scrolloff)
+ key="scrolloff";
+ value="${value},${kak_opt_scrolloff##*,}";;
+ siso|sidescrolloff)
+ key="scrolloff";
+ value="${kak_opt_scrolloff%%,*},${value}";;
+ ts|tabstop) key="tabstop";;
+ sw|shiftwidth) key="indentwidth";;
+ tw|textwidth) key="autowrap_column";;
+ ff|fileformat)
+ key="eolformat";
+ case "${value}" in
+ unix) value="lf";;
+ dos) value="crlf";;
+ *)
+ printf '%s\n' "Unsupported file format: ${value}" >&2
+ return;;
+ esac
+ ;;
+ ft|filetype) key="filetype";;
+ bomb)
+ key="BOM";
+ value="utf8";;
+ nobomb)
+ key="BOM";
+ value="none";;
+ spelllang|spl)
+ key="spell_lang";
+ value="${value%%,*}";;
+ *)
+ printf '%s\n' "Unsupported vim variable: ${key}" >&2
+ return;;
+ esac
+
+ printf 'set-option buffer %s %s\n' "${key}" "$(kakquote "${value}")"
+ }
+
+ # Pass a few whitelisted options to kakoune directly
+ translate_opt_kakoune() {
+ local readonly key="$1"
+ local readonly value="$2"
+
+ case "${key}" in
+ scrolloff|tabstop|indentwidth|autowrap_column|eolformat|filetype|BOM|spell_lang);;
+ *) printf 'echo -debug %s' "$(kakquote "Unsupported kakoune variable: ${key}")" \
+ | kak -p "${kak_session}"
+ return;;
+ esac
+
+ printf 'set-option buffer %s %s\n' "${key}" "$(kakquote "${value}")"
+ }
+
+ case "${kak_selection}" in
+ *vi:*|*vim:*) type_selection="vim";;
+ *kak:*|*kakoune:*) type_selection="kakoune";;
+ *)
+ printf 'fail %s\n' "$(kakquote "Unsupported modeline format: ${kak_selection}")"
+ exit 1 ;;
+ esac
+
+ # The following subshell will keep the actual options of the modeline, and strip:
+ # - the text that leads the first option, according to the official vim modeline format
+ # - the trailing text after the last option, and an optional ':' sign before it
+ # It will also convert the ':' seperators beween the option=value pairs
+ # More info: http://vimdoc.sourceforge.net/htmldoc/options.html#modeline
+ printf %s "${kak_selection}" | sed \
+ -e 's/^[^:]\{1,\}://' \
+ -e 's/[ \t]*set\{0,1\}[ \t]\([^:]*\).*$/\1/' \
+ -e 's/:[^a-zA-Z0-9_=-]*$//' \
+ -e 's/:/ /g' \
+ | tr ' ' '\n' \
+ | while read -r option; do
+ name_option="${option%%=*}"
+ value_option="${option#*=}"
+
+ if [ -z "${option}" ]; then
+ continue
+ fi
+
+ case "${type_selection}" in
+ vim) translate_opt_vim "${name_option}" "${value_option}";;
+ kakoune) translate_opt_kakoune "${name_option}" "${value_option}";;
+ *) exit 1;;
+ esac
+ done
+ }
+}
+
+# Add the following function to a hook on BufOpenFile to automatically parse modelines
+# Select the first and last `modelines` lines in the buffer, only keep modelines
+# ref. options.txt (in vim `:help options`) : 2 forms of modelines:
+# [text]{white}{vi:|vim:|ex:}[white]{options}
+# [text]{white}{vi:|vim:|Vim:|ex:}[white]se[t] {options}:[text]
+define-command modeline-parse -docstring "Read and interpret vi-format modelines at the beginning/end of the buffer" %{
+ try %{ evaluate-commands -draft -save-regs ^ %{
+ execute-keys -save-regs "" gk %opt{modelines} JK x Z
+ execute-keys gj %opt{modelines} KJ x a
+ execute-keys s^\S*?\s+?\w+:\s?[^\n]+ x
+ evaluate-commands -draft -itersel modeline-parse-impl
+ } }
+}
diff --git a/dot_config/kak/autoload/rc/filetype/apl.kak b/dot_config/kak/autoload/rc/filetype/apl.kak
new file mode 100644
index 0000000..ff3f2f0
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/apl.kak
@@ -0,0 +1,86 @@
+
+# Detection
+# ‾‾‾‾‾‾‾‾‾
+
+hook global BufCreate .*\.(apl|aplf|aplo|apln|aplc|apli|dyalog) %{
+ set-option buffer filetype apl
+
+ set-option buffer matching_pairs ( ) { } [ ]
+}
+
+# Initialization
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+hook global WinSetOption filetype=apl %|
+ require-module apl
+
+ hook window InsertChar \n -group apl-insert apl-insert-on-new-line
+ hook window InsertChar \n -group apl-indent apl-indent-on-new-line
+ hook window InsertChar [}⟩\]] -group apl-indent apl-indent-on-closing
+
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window apl-.+ }
+|
+
+hook -group apl-highlight global WinSetOption filetype=apl %{
+ add-highlighter window/apl ref apl
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/apl }
+}
+
+provide-module apl %¹
+
+# Highlighters & Completion
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+add-highlighter shared/apl regions
+add-highlighter shared/apl/code default-region group
+add-highlighter shared/apl/comment region "⍝" "$" fill comment
+add-highlighter shared/apl/string region "'" "'" fill string
+
+add-highlighter shared/apl/code/ regex "[{}]" 0:meta
+add-highlighter shared/apl/code/ regex "⋄" 0:meta
+add-highlighter shared/apl/code/ regex "[\[\]]" 0:magenta
+add-highlighter shared/apl/code/ regex "[()]" 0:bright-black
+add-highlighter shared/apl/code/ regex "[:;?]" 0:bright-black
+add-highlighter shared/apl/code/ regex "[←→]" 0:normal
+# Number
+add-highlighter shared/apl/code/ regex "¯?[0-9][¯0-9A-Za-z]*(?:\.[¯0-9Ee][¯0-9A-Za-z]*)*|¯?\.[0-9Ee][¯0-9A-Za-z]*" 0:value
+add-highlighter shared/apl/code/ regex "\." 0:normal
+add-highlighter shared/apl/code/ regex "[⍺⍶⍵⍹χ∇]" 0:blue # arguments
+# function
+add-highlighter shared/apl/code/ regex "[+\-×÷⌈⌊∣|⍳?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⌸⍯↗⊆⊇⍸√⌾…⍮]" 0:green # function
+# operator
+add-highlighter shared/apl/code/ regex "[\.\\/⌿⍀¨⍣⍨⍠⍤∘⌸&⌶@⌺⍥⍛⍢]" 0:magenta
+# system
+add-highlighter shared/apl/code/ regex "⎕[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*" 0:yellow
+add-highlighter shared/apl/code/ regex "\n^\s*\n(\n\t[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ]\n\t[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\n)\n(:)" 0:meta
+
+declare-user-mode apl
+# Commands
+# ‾‾‾‾‾‾‾‾
+
+define-command -hidden apl-insert-on-new-line %{
+ evaluate-commands -draft -itersel %[
+ # copy # comments prefix
+ try %{ execute-keys -draft k s ^\h*\K#+\h* yP }
+ ]
+}
+
+define-command -hidden apl-indent-on-new-line %`
+ evaluate-commands -draft -itersel %_
+ # preserve previous line indent
+ try %{ execute-keys -draft K }
+ # indent after lines ending with { [
+ try %( execute-keys -draft k [{\[]\h*$ j )
+ # cleanup trailing white spaces on the previous line
+ try %{ execute-keys -draft k s \h+$ d }
+ _
+`
+
+define-command -hidden apl-indent-on-closing %`
+ evaluate-commands -draft -itersel %_
+ # align to opening bracket
+ try %( execute-keys -draft ^\h*[}\]]$ h m 1 )
+ _
+`
+
+¹
diff --git a/dot_config/kak/autoload/rc/filetype/arch-linux.kak b/dot_config/kak/autoload/rc/filetype/arch-linux.kak
new file mode 100644
index 0000000..08135a7
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/arch-linux.kak
@@ -0,0 +1,4 @@
+# package build description file
+hook global BufCreate (.*/)?PKGBUILD %{
+ set-option buffer filetype sh
+}
diff --git a/dot_config/kak/autoload/rc/filetype/asciidoc.kak b/dot_config/kak/autoload/rc/filetype/asciidoc.kak
new file mode 100644
index 0000000..453ffd4
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/asciidoc.kak
@@ -0,0 +1,90 @@
+# http://asciidoc.org/
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+# Detection
+# ‾‾‾‾‾‾‾‾‾
+
+hook global BufCreate .+\.(a(scii)?doc|asc) %{
+ set-option buffer filetype asciidoc
+}
+
+# Initialization
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+hook -group asciidoc-highlight global WinSetOption filetype=asciidoc %{
+ require-module asciidoc
+
+ add-highlighter window/asciidoc ref asciidoc
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/asciidoc }
+}
+
+provide-module asciidoc %{
+
+# Highlighters
+# ‾‾‾‾‾‾‾‾‾‾‾‾
+
+add-highlighter shared/asciidoc group
+
+# Titles and headers (multi-line style)
+add-highlighter shared/asciidoc/ regex (\A|\n\n)[^\n]+\n={2,}\h*$ 0:title
+add-highlighter shared/asciidoc/ regex (\A|\n\n)[^\n]+\n-{2,}\h*$ 0:header
+add-highlighter shared/asciidoc/ regex (\A|\n\n)[^\n]+\n~{2,}\h*$ 0:header
+add-highlighter shared/asciidoc/ regex (\A|\n\n)[^\n]+\n\^{2,}\h*$ 0:header
+
+# Titles and headerss (one-line style)
+add-highlighter shared/asciidoc/ regex (\A|\n\n)=\h+[^\n]+$ 0:title
+add-highlighter shared/asciidoc/ regex (\A|\n\n)={2,}\h+[^\n]+$ 0:header
+
+# Comments
+add-highlighter shared/asciidoc/ regex ^//(?:[^\n/][^\n]*|)$ 0:comment
+add-highlighter shared/asciidoc/ regex ^(/{4,}).*?\n(/{4,})$ 0:comment
+
+# List titles
+add-highlighter shared/asciidoc/ regex ^\.[^\h\W][^\n]*$ 0:title
+
+# Bulleted lists
+add-highlighter shared/asciidoc/ regex ^\h*(?[-\*])\h+[^\n]+$ 0:list bullet:bullet
+add-highlighter shared/asciidoc/ regex ^\h*(?[-\*]+)\h+[^\n]+(\n\h+[^-\*\n]*)?$ 0:list bullet:bullet
+
+# Delimited blocks
+# https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/
+add-highlighter shared/asciidoc/ regex ^(-{4,})\n[^\n\h].*?\n(-{4,})$ 0:block
+add-highlighter shared/asciidoc/ regex ^(={4,})\n[^\n\h].*?\n(={4,})$ 0:block
+add-highlighter shared/asciidoc/ regex ^(~{4,})\n[^\n\h].*?\n(~{4,})$ 0:block
+add-highlighter shared/asciidoc/ regex ^(\*{4,})\n[^\n\h].*?\n(\*{4,})$ 0:block
+
+# Monospaced text
+add-highlighter shared/asciidoc/ regex \B(?:\+[^\n]+?\+|`[^\n]+?`)\B 0:mono
+
+# Bolded text
+add-highlighter shared/asciidoc/ regex \s\*[^\n\*]+\*\B 0:+b
+add-highlighter shared/asciidoc/ regex \h\*[^\n\*]+\*\B 0:+b
+add-highlighter shared/asciidoc/ regex \*{2}(?!\h)[^\n\*]+\*{2} 0:+b
+add-highlighter shared/asciidoc/ regex \h\*{2}[^\n\*]+\*{2} 0:+b
+
+# Italicized text
+# (these are simpler since they aren't able to _also_ be bullet characters.)
+add-highlighter shared/asciidoc/ regex \b_[^\n]+?_\b 0:+i
+add-highlighter shared/asciidoc/ regex __[^\n]+?__ 0:+i
+
+# Attributes
+add-highlighter shared/asciidoc/ regex ^:(?:(?!?)[-\w]+|[-\w]+(?!?)): 0:meta neg:operator
+add-highlighter shared/asciidoc/ regex [^\\](\{[-\w]+\})[^\\]? 1:meta
+
+# Options
+add-highlighter shared/asciidoc/ regex ^\[[^\n]+\]$ 0:operator
+
+# Admonition pargraphs
+add-highlighter shared/asciidoc/ regex ^(NOTE|TIP|IMPORTANT|CAUTION|WARNING): 0:block
+add-highlighter shared/asciidoc/ regex ^\[(NOTE|TIP|IMPORTANT|CAUTION|WARNING)\]$ 0:block
+
+# Links, inline macros
+add-highlighter shared/asciidoc/ regex \b((?:https?|ftp|irc://)[^\h\[]+)\[([^\n]*)?\] 1:link 2:+i
+add-highlighter shared/asciidoc/ regex (link|mailto):([^\n]+)(?:\[([^\n]*)\]) 1:keyword 2:link 3:+i
+add-highlighter shared/asciidoc/ regex (xref):([^\n]+)(?:\[([^\n]*)\]) 1:keyword 2:meta 3:+i
+add-highlighter shared/asciidoc/ regex (<<([^\n><]+)>>) 1:link 2:meta
+
+# Commands
+# ‾‾‾‾‾‾‾‾
+
+}
diff --git a/dot_config/kak/autoload/rc/filetype/awk.kak b/dot_config/kak/autoload/rc/filetype/awk.kak
new file mode 100644
index 0000000..536e352
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/awk.kak
@@ -0,0 +1,88 @@
+# Detection
+# ---------
+
+hook global BufCreate .*\.awk %{
+ set-option buffer filetype awk
+}
+
+# Initialization
+# --------------
+
+hook global WinSetOption filetype=awk %{
+ require-module awk
+
+ hook window InsertChar \n -group awk-indent awk-indent-on-new-line
+ hook window ModeChange pop:insert:.* -group awk-trim-indent awk-trim-indent
+
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window awk-.+ }
+}
+
+hook -group awk-highlight global WinSetOption filetype=awk %{
+ add-highlighter window/awk ref awk
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/awk }
+}
+
+provide-module awk %@
+
+# Highlighters
+# ------------
+
+add-highlighter shared/awk regions
+add-highlighter shared/awk/code default-region group
+add-highlighter shared/awk/comment region '#' '$' fill comment
+add-highlighter shared/awk/string region '"' (?|\?|~ 0:operator
+
+evaluate-commands %sh{
+ # Grammar
+ patterns="BEGIN END BEGINFILE ENDFILE"
+ variables="BINMODE CONVFMT FIELDWIDTHS FPAT FS IGNORECASE LINT OFMT OFS
+ ORS PREC ROUNDMODE RS SUBSEP TEXTDOMAIN ARGC ARGV ARGIND ENVIRON
+ ERRNO FILENAME FNR NF FUNCTAB NR PROCINFO RLENGTH RSTART RT SYMTAB"
+ keywords="break continue delete exit function getline next print printf
+ return switch nextfile func if else while for do"
+ functions="atan2 cos exp int intdiv log rand sin sqrt srand asort asort1
+ gensub gsub index length match patsplit split sprintf strtonum sub
+ substr tolower toupper close fflush system mktime strftime systime
+ and compl lshift or rshift xor isarray typeof bindtextdomain dcgettext
+ dcngetext"
+
+ join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
+
+ # Add the language's grammar to the static completion list
+ printf %s\\n "hook global WinSetOption filetype=awk %{
+ set-option window static_words $(join "${patterns} ${variables} ${keywords} ${functions}" ' ')
+ }"
+
+ # Highlight keywords
+ printf %s\\n "add-highlighter shared/awk/code/ regex \b($(join "${patterns}" '|'))\b 0:type"
+ printf %s\\n "add-highlighter shared/awk/code/ regex \b($(join "${variables}" '|'))\b 0:meta"
+ printf %s\\n "add-highlighter shared/awk/code/ regex \b($(join "${keywords}" '|'))\b 0:keyword"
+ printf %s\\n "add-highlighter shared/awk/code/ regex \b($(join "${functions}" '|'))\b 0:function"
+}
+
+# Commands
+# --------
+
+define-command -hidden awk-indent-on-new-line %[
+ evaluate-commands -draft -itersel %[
+ # preserve previous line indent
+ try %[ execute-keys -draft K ]
+ # cleanup trailing whitespaces from previous line
+ try %[ execute-keys -draft k x s \h+$ d ]
+ # indent after line ending in opening curly brace
+ try %[ execute-keys -draft kx \{\h*(#.*)?$ j ]
+ # deindent closing brace when after cursor
+ try %[ execute-keys -draft x ^\h*\} gh / \} m 1 ]
+ ]
+]
+
+define-command -hidden awk-trim-indent %{
+ try %{ execute-keys -draft x s ^\h+$ d }
+}
+
+@
diff --git a/dot_config/kak/autoload/rc/filetype/c-family.kak b/dot_config/kak/autoload/rc/filetype/c-family.kak
new file mode 100644
index 0000000..0677b11
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/c-family.kak
@@ -0,0 +1,476 @@
+# Detection
+hook global BufCreate .*\.(cc|cpp|cxx|C|hh|hpp|hxx|H)$ %{
+ set-option buffer filetype cpp
+}
+
+hook global BufSetOption filetype=c\+\+ %{
+ hook -once buffer NormalIdle '' "set-option buffer filetype cpp"
+}
+
+hook global BufCreate .*\.c$ %{
+ set-option buffer filetype c
+}
+
+hook global BufCreate .*\.h$ %{
+ try %{
+ execute-keys -draft %{%s\b::\b|\btemplate\h*|\bclass\h+\w+|\b(typename|namespace)\b|\b(public|private|protected)\h*:}
+ set-option buffer filetype cpp
+ } catch %{
+ set-option buffer filetype c
+ }
+}
+
+hook global BufCreate .*\.m %{
+ set-option buffer filetype objc
+}
+
+hook global WinSetOption filetype=(c|cpp|objc) %[
+ require-module c-family
+
+ evaluate-commands "set-option window static_words %%opt{%val{hook_param_capture_1}_static_words}"
+
+ hook -group "%val{hook_param_capture_1}-trim-indent" window ModeChange pop:insert:.* c-family-trim-indent
+ hook -group "%val{hook_param_capture_1}-insert" window InsertChar \n c-family-insert-on-newline
+ hook -group "%val{hook_param_capture_1}-indent" window InsertChar \n c-family-indent-on-newline
+ hook -group "%val{hook_param_capture_1}-indent" window InsertChar \{ c-family-indent-on-opening-curly-brace
+ hook -group "%val{hook_param_capture_1}-indent" window InsertChar \} c-family-indent-on-closing-curly-brace
+ hook -group "%val{hook_param_capture_1}-insert" window InsertChar \} c-family-insert-on-closing-curly-brace
+
+ alias window alt "%val{hook_param_capture_1}-alternative-file"
+
+ hook -once -always window WinSetOption filetype=.* "
+ remove-hooks window %val{hook_param_capture_1}-.+
+ unalias window alt %val{hook_param_capture_1}-alternative-file
+ "
+]
+
+hook -group c-highlight global WinSetOption filetype=c %{
+ add-highlighter window/c ref c
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/c }
+}
+
+hook -group cpp-highlight global WinSetOption filetype=cpp %{
+ add-highlighter window/cpp ref cpp
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/cpp }
+}
+
+hook -group objc-highlight global WinSetOption filetype=objc %{
+ add-highlighter window/objc ref objc
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/objc }
+}
+
+
+provide-module c-family %§
+
+define-command -hidden c-family-trim-indent %{
+ # remove the line if it's empty when leaving the insert mode
+ try %{ execute-keys -draft x 1s^(\h+)$ d }
+}
+
+define-command -hidden c-family-indent-on-newline %< evaluate-commands -draft -itersel %<
+ execute-keys
+ try %<
+ # if previous line is part of a comment, do nothing
+ execute-keys -draft /\* ^\h*[^/*\h]
+ > catch %<
+ # else if previous line closed a paren (possibly followed by words and a comment),
+ # copy indent of the opening paren line
+ execute-keys -draft kx 1s(\))(\h+\w+)*\h*(\;\h*)?(?://[^\n]+)?\n\z mJ 1
+ > catch %<
+ # else indent new lines with the same level as the previous one
+ execute-keys -draft K
+ >
+ # remove previous empty lines resulting from the automatic indent
+ try %< execute-keys -draft k x ^\h+$ Hd >
+ # indent after an opening brace or parenthesis at end of line
+ try %< execute-keys -draft k x [{(]\h*$ j >
+ # indent after a label
+ try %< execute-keys -draft k x s[a-zA-Z0-9_-]+:\h*$ j >
+ # indent after a statement not followed by an opening brace
+ try %< execute-keys -draft k x s\)\h*(?://[^\n]+)?\n\z \
+ mB \A\b(if|for|while)\b j >
+ try %< execute-keys -draft k x s \belse\b\h*(?://[^\n]+)?\n\z \
+ j >
+ # deindent after a single line statement end
+ try %< execute-keys -draft K x \;\h*(//[^\n]+)?$ \
+ K x s\)(\h+\w+)*\h*(//[^\n]+)?\n([^\n]*\n){2}\z \
+ MB \A\b(if|for|while)\b 1 >
+ try %< execute-keys -draft K x \;\h*(//[^\n]+)?$ \
+ K x s \belse\b\h*(?://[^\n]+)?\n([^\n]*\n){2}\z \
+ 1 >
+ # deindent closing brace(s) when after cursor
+ try %< execute-keys -draft x ^\h*[})] gh / [})] m 1 >
+ # align to the opening parenthesis or opening brace (whichever is first)
+ # on a previous line if its followed by text on the same line
+ try %< evaluate-commands -draft %<
+ # Go to opening parenthesis and opening brace, then select the most nested one
+ try %< execute-keys [c [({],[)}] >
+ # Validate selection and get first and last char
+ execute-keys \A[{(](\h*\S+)+\n "(([^"]*"){2})* '(([^']*'){2})* L
+ # Remove possibly incorrect indent from new line which was copied from previous line
+ try %< execute-keys -draft , s\h+ d >
+ # Now indent and align that new line with the opening parenthesis/brace
+ execute-keys 1 &
+ > >
+> >
+
+define-command -hidden c-family-indent-on-opening-curly-brace %[
+ # align indent with opening paren when { is entered on a new line after the closing paren
+ try %[ execute-keys -draft -itersel h)M \A\(.*\)\h*\n\h*\{\z 1 ]
+ # align indent with opening paren when { is entered on a new line after the else
+ try %[ execute-keys -draft -itersel hK x s \belse\b\h*(?://[^\n]+)?\n\h*\{ 1 ]
+]
+
+define-command -hidden c-family-indent-on-closing-curly-brace %[
+ evaluate-commands -draft -itersel -verbatim try %[
+ # check if alone on the line and select to opening curly brace
+ execute-keys ^\h+\}$hm
+ try %[
+ # in case open curly brace follows a closing paren possibly with qualifiers, extend to opening paren
+ execute-keys -draft ) \A\)(\h+\w+)*\h*\{\z
+ execute-keys )M
+ ]
+ # align to selection start
+ execute-keys 1
+ ]
+]
+
+define-command -hidden c-family-insert-on-closing-curly-brace %[
+ # add a semicolon after a closing brace if part of a class, union or struct definition
+ evaluate-commands -itersel -draft -verbatim try %[
+ execute-keys -draft hmh \b(class|struct|union|enum)\b \{ \)(\s+\w+)*\s*\z
+ execute-keys -draft ';i;'
+ ]
+]
+
+define-command -hidden c-family-insert-on-newline %[ evaluate-commands -itersel -draft %[
+ execute-keys
+ try %[
+ evaluate-commands -draft -save-regs '/"' %[
+ # copy the commenting prefix
+ execute-keys -save-regs '' k x1s^\h*(//+\h*) y
+ try %[
+ # if the previous comment isn't empty, create a new one
+ execute-keys x^\h*//+\h*$ jxs^\h*P
+ ] catch %[
+ # if there is no text in the previous comment, remove it completely
+ execute-keys d
+ ]
+ ]
+
+ # trim trailing whitespace on the previous line
+ try %[ execute-keys -draft k x s\h+$ d ]
+ ]
+ try %[
+ # if the previous line isn't within a comment scope, break
+ execute-keys -draft kx ^(\h*/\*|\h+\*(?!/))
+
+ # find comment opening, validate it was not closed, and check its using star prefixes
+ execute-keys -draft /\* \*/ \A\h*/\*([^\n]*\n\h*\*)*[^\n]*\n\h*.\z
+
+ try %[
+ # if the previous line is opening the comment, insert star preceeded by space
+ execute-keys -draft kx^\h*/\*
+ execute-keys -draft i*
+ ] catch %[
+ try %[
+ # if the next line is a comment line insert a star
+ execute-keys -draft jx^\h+\*
+ execute-keys -draft i*
+ ] catch %[
+ try %[
+ # if the previous line is an empty comment line, close the comment scope
+ execute-keys -draft kx^\h+\*\h+$ x1s\*(\h*)c/
+ ] catch %[
+ # if the previous line is a non-empty comment line, add a star
+ execute-keys -draft i*
+ ]
+ ]
+ ]
+
+ # trim trailing whitespace on the previous line
+ try %[ execute-keys -draft k x s\h+$ d ]
+ # align the new star with the previous one
+ execute-keys Kx1s^[^*]*(\*)&
+ ]
+] ]
+
+# Regions definition are the same between c++ and objective-c
+evaluate-commands %sh{
+ for ft in c cpp objc; do
+ if [ "${ft}" = "objc" ]; then
+ maybe_at='@?'
+ else
+ maybe_at=''
+ fi
+
+ cat <<-EOF
+ add-highlighter shared/$ft regions
+ add-highlighter shared/$ft/code default-region group
+ add-highlighter shared/$ft/string region %{$maybe_at(?]*>|"(?:[^"\\\\]|\\\\.)*") 1:module
+ add-highlighter shared/$ft/macro/ regex /\\*.*?\\*/ 0:comment
+ EOF
+ done
+}
+
+# c specific
+add-highlighter shared/c/code/numbers regex %{\b-?(0[xX][0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value
+evaluate-commands %sh{
+ # Grammar
+ keywords='asm break case continue default do else for goto if return
+ sizeof switch while offsetof alignas alignof'
+ attributes='auto atomic const enum extern inline register restrict static
+ struct typedef union volatile thread_local'
+ types='char double float int long short signed unsigned void
+ complex imaginary
+ fenv_t fexcept_t
+ imaxdiv_t
+ lconv
+ float_t double_t
+ jmp_buf
+ sig_atomic_t
+ va_list
+ memory_order atomic_flag atomic_bool atomic_char atomic_schar atomic_uchar atomic_wchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_llong atomic_ulong atomic_ullong atomic_char16_t atomic_char32_t atomic_intptr_t atomic_intmax_t atomic_int8_t atomic_int16_t atomic_int32_t atomic_int64_t atomic_int_least8_t atomic_int_least16_t atomic_int_least32_t atomic_int_least64_t atomic_int_fast8_t atomic_int_fast16_t atomic_int_fast32_t atomic_int_fast64_t atomic_uintptr_t atomic_uintmax_t atomic_uint8_t atomic_uint16_t atomic_uint32_t atomic_uint64_t atomic_uint_least8_t atomic_uint_least16_t atomic_uint_least32_t atomic_uint_least64_t atomic_uint_fast8_t atomic_uint_fast16_t atomic_uint_fast32_t atomic_uint_fast64_t atomic_size_t atomic_ptrdiff_t
+ bool
+ ptrdiff_t size_t max_align_t wchar_t
+ intptr_t intmax_t int8_t int16_t int32_t int64_t int_least8_t int_least16_t int_least32_t int_least64_t int_fast8_t int_fast16_t int_fast32_t int_fast64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t uint_least8_t uint_least16_t uint_least32_t uint_least64_t uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t
+ FILE fpos_t
+ div_t ldiv_t lldiv_t
+ cnd_t thrd_t thrd_start_t tss_t tss_dtor_t mtx_t once_flag
+ clock_t time_t timespec tm
+ mbstate_t wint_t
+ wctrans_t wctype_t
+ char16_t char32_t
+ ssize_t gid_t uid_t off_t off64_t useconds_t pid_t socklen_t'
+
+ macros='assert static_assert NDEBUG
+ I
+ EDOM EILSEQ ERANGE errno
+ FE_DIVBYZERO FE_INEXACT FE_INVALID FE_OVERFLOW FE_UNDERFLOW FE_ALL_EXCEPT FE_DOWNWARD FE_TONEAREST FE_TOWARDZERO FE_UPWARD FE_DFL_ENV
+ DECIMAL_DIG FLT_ROUNDS FLT_EVAL_METHOD FLT_RADIX FLT_DIG FLT_MANT_DIG FLT_DECIMAL_DIG FLT_MIN_EXP FLT_MIN_10_EXP FLT_MAX_EXP FLT_MAX FLT_EPSILON FLT_TRUE_MIN FLT_HAS_SUBNORM DBL_DIG DBL_MANT_DIG DBL_DECIMAL_DIG DBL_MIN_EXP DBL_MIN_10_EXP DBL_MAX_EXP DBL_MAX DBL_EPSILON DBL_TRUE_MIN DBL_HAS_SUBNORM LDBL_DIG LDBL_MANT_DIG LDBL_DECIMAL_DIG LDBL_MIN_EXP LDBL_MIN_10_EXP LDBL_MAX_EXP LDBL_MAX LDBL_EPSILON LDBL_TRUE_MIN LDBL_HAS_SUBNORM
+ PRIdMAX PRIdPTR PRId8 PRId16 PRId32 PRId64 PRIdLEAST8 PRIdLEAST16 PRIdLEAST32 PRIdLEAST64 PRIdFAST8 PRIdFAST16 PRIdFAST32 PRIdFAST64 PRIiMAX PRIiPTR PRIi8 PRIi16 PRIi32 PRIi64 PRIiLEAST8 PRIiLEAST16 PRIiLEAST32 PRIiLEAST64 PRIiFAST8 PRIiFAST16 PRIiFAST32 PRIiFAST64 PRIoMAX PRIoPTR PRIo8 PRIo16 PRIo32 PRIo64 PRIoLEAST8 PRIoLEAST16 PRIoLEAST32 PRIoLEAST64 PRIoFAST8 PRIoFAST16 PRIoFAST32 PRIoFAST64 PRIuMAX PRIuPTR PRIu8 PRIu16 PRIu32 PRIu64 PRIuLEAST8 PRIuLEAST16 PRIuLEAST32 PRIuLEAST64 PRIuFAST8 PRIuFAST16 PRIuFAST32 PRIuFAST64 PRIxMAX PRIxPTR PRIx8 PRIx16 PRIx32 PRIx64 PRIxLEAST8 PRIxLEAST16 PRIxLEAST32 PRIxLEAST64 PRIxFAST8 PRIxFAST16 PRIxFAST32 PRIxFAST64 PRIXMAX PRIXPTR PRIX8 PRIX16 PRIX32 PRIX64 PRIXLEAST8 PRIXLEAST16 PRIXLEAST32 PRIXLEAST64 PRIXFAST8 PRIXFAST16 PRIXFAST32 PRIXFAST64 SCNdMAX SCNdPTR SCNd8 SCNd16 SCNd32 SCNd64 SCNdLEAST8 SCNdLEAST16 SCNdLEAST32 SCNdLEAST64 SCNdFAST8 SCNdFAST16 SCNdFAST32 SCNdFAST64 SCNiMAX SCNiPTR SCNi8 SCNi16 SCNi32 SCNi64 SCNiLEAST8 SCNiLEAST16 SCNiLEAST32 SCNiLEAST64 SCNiFAST8 SCNiFAST16 SCNiFAST32 SCNiFAST64 SCNoMAX SCNoPTR SCNo8 SCNo16 SCNo32 SCNo64 SCNoLEAST8 SCNoLEAST16 SCNoLEAST32 SCNoLEAST64 SCNoFAST8 SCNoFAST16 SCNoFAST32 SCNoFAST64 SCNuMAX SCNuPTR SCNu8 SCNu16 SCNu32 SCNu64 SCNuLEAST8 SCNuLEAST16 SCNuLEAST32 SCNuLEAST64 SCNuFAST8 SCNuFAST16 SCNuFAST32 SCNuFAST64 SCNxMAX SCNxPTR SCNx8 SCNx16 SCNx32 SCNx64 SCNxLEAST8 SCNxLEAST16 SCNxLEAST32 SCNxLEAST64 SCNxFAST8 SCNxFAST16 SCNxFAST32 SCNxFAST64
+ and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq
+ CHAR_MIN CHAR_MAX SCHAR_MIN SCHAR_MAX WCHAR_MIN WCHAR_MAX SHRT_MIN SHRT_MAX INT_MIN INT_MAX LONG_MIN LONG_MAX LLONG_MIN LLONG_MAX MB_LEN_MAX UCHAR_MAX USHRT_MAX UINT_MAX ULONG_MAX ULLONG_MAX CHAR_BIT
+ LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME
+ HUGE_VAL HUGE_VALF HUGE_VALL INFINITY NAN FP_INFINITE FP_NAN FP_NORMAL FP_SUBNORMAL FP_ZERO FP_FAST_FMA FP_FAST_FMAF FP_FAST_FMAL FP_ILOGB0 FP_ILOGBNAN MATH_ERRNO MATH_ERREXCEPT math_errhandling isgreater isgreaterequal isless islessequal islessgreater isunordered
+ setjmp
+ SIG_DFL SIG_ERR SIG_IGN SIGABRT SIGFPE SIGILL SIGINT SIGSEGV SIGTERM
+ va_start va_arg va_end va_copy
+ ATOMIC_BOOL_LOCK_FREE ATOMIC_CHAR_LOCK_FREE ATOMIC_CHAR16_T_LOCK_FREE ATOMIC_CHAR32_T_LOCK_FREE ATOMIC_WCHAR_T_LOCK_FREE ATOMIC_SHORT_LOCK_FREE ATOMIC_INT_LOCK_FREE ATOMIC_LONG_LOCK_FREE ATOMIC_LLONG_LOCK_FREE ATOMIC_POINTER_LOCK_FREE ATOMIC_FLAG_INIT ATOMIC_VAR_INIT memory_order_relaxed memory_order_consume memory_order_acquire memory_order_release memory_order_acq_rel memory_order_seq_cst kill_dependency
+ true false
+ NULL
+ _IOFBF _IOLBF _IONBF BUFSIZ EOF FOPEN_MAX FILENAME_MAX TMP_MAX L_tmpnam SEEK_CUR SEEK_END SEEK_SET stderr stdin stdout
+ EXIT_FAILURE EXIT_SUCCESS MB_CUR_MAX RAND_MAX
+ PTRDIFF_MIN PTRDIFF_MAX SIG_ATOMIC_MIN SIG_ATOMIC_MAX WINT_MIN WINT_MAX INTMAX_MIN INTMAX_MAX INTPTR_MIN INTPTR_MAX INT8_MIN INT8_MAX INT16_MIN INT16_MAX INT32_MIN INT32_MAX INT64_MIN INT64_MAX INT_LEAST8_MIN INT_LEAST8_MAX INT_LEAST16_MIN INT_LEAST16_MAX INT_LEAST32_MIN INT_LEAST32_MAX INT_LEAST64_MIN INT_LEAST64_MAX INT_FAST8_MIN INT_FAST8_MAX INT_FAST16_MIN INT_FAST16_MAX INT_FAST32_MIN INT_FAST32_MAX INT_FAST64_MIN INT_FAST64_MAX UINTMAX_MAX UINTPTR_MAX UINT8_MAX UINT16_MAX UINT32_MAX UINT64_MAX UINT_LEAST8_MAX UINT_LEAST16_MAX UINT_LEAST32_MAX UINT_LEAST64_MAX UINT_FAST8_MAX UINT_FAST16_MAX UINT_FAST32_MAX UINT_FAST64_MAX INTMAX_C INT8_C INT16_C INT32_C INT64_C UINTMAX_C UINT8_C UINT16_C UINT32_C UINT64_C
+ mtx_plain mtx_recursive mtx_timed thrd_timedout thrd_success thrd_busy thrd_error thrd_nomem ONCE_FLAG_INIT TSS_DTOR_ITERATION
+ CLOCKS_PER_SEC TIME_UTC
+ WEOF
+ noreturn
+ R_OK W_OK X_OK F_OK F_LOCK F_ULOCK F_TLOCK F_TEST'
+
+ join() { sep=$2; eval set -- $1; IFS="$sep"; echo "$*"; }
+
+ # Add the language's grammar to the static completion list
+ printf %s\\n "declare-option str-list c_static_words $(join "${keywords} ${attributes} ${types} ${macros}" ' ')"
+
+ # Highlight keywords
+ printf %s "
+ add-highlighter shared/c/code/keywords regex \b($(join "${keywords}" '|'))\b 0:keyword
+ add-highlighter shared/c/code/attributes regex \b($(join "${attributes}" '|'))\b 0:attribute
+ add-highlighter shared/c/code/types regex \b($(join "${types}" '|'))\b 0:type
+ add-highlighter shared/c/code/values regex \b($(join "${macros}" '|'))\b 0:value
+ "
+}
+
+# c++ specific
+
+# raw strings
+add-highlighter shared/cpp/raw_string region -match-capture %{R"([^(]*)\(} %{\)([^")]*)"} fill string
+
+# integer literals
+add-highlighter shared/cpp/code/ regex %{(?i)(?xs^.*/dxs\.r_A_INCLUDEDxyPPI#ifndefjI#definejI#endif//O'
+ ;;
+ pragma)
+ echo 'execute-keys ggi#pragmaonce'
+ ;;
+ *);;
+ esac
+ }
+}
+
+hook -group c-family-insert global BufNewFile .*\.(h|hh|hpp|hxx|H) c-family-insert-include-guards
+
+declare-option -docstring "colon separated list of path in which header files will be looked for" \
+ str-list alt_dirs '.' '..'
+
+define-command -hidden c-family-alternative-file %{
+ evaluate-commands %sh{
+ file="${kak_buffile##*/}"
+ file_noext="${file%.*}"
+ dir=$(dirname "${kak_buffile}")
+
+ # Set $@ to alt_dirs
+ eval "set -- ${kak_quoted_opt_alt_dirs}"
+
+ case ${file} in
+ *.c|*.cc|*.cpp|*.cxx|*.C|*.inl|*.m)
+ for alt_dir in "$@"; do
+ for ext in h hh hpp hxx H; do
+ case "$alt_dir" in
+ /*) altname="${alt_dir}/${file_noext}.${ext}" ;;
+ *) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;;
+ esac
+ if [ -f "${altname}" ]; then
+ printf 'edit %%{%s}\n' "${altname}"
+ exit
+ fi
+ done
+ done
+ ;;
+ *.h|*.hh|*.hpp|*.hxx|*.H)
+ for alt_dir in "$@"; do
+ for ext in c cc cpp cxx C m; do
+ case "$alt_dir" in
+ /*) altname="${alt_dir}/${file_noext}.${ext}" ;;
+ *) altname="${dir}/${alt_dir}/${file_noext}.${ext}" ;;
+ esac
+ if [ -f "${altname}" ]; then
+ printf 'edit %%{%s}\n' "${altname}"
+ exit
+ fi
+ done
+ done
+ ;;
+ *)
+ echo "fail 'extension not recognized'"
+ exit
+ ;;
+ esac
+ echo "fail 'alternative file not found'"
+ }
+}
+
+define-command c-alternative-file -docstring "Jump to the alternate c file (header/implementation)" %{
+ c-family-alternative-file
+}
+define-command cpp-alternative-file -docstring "Jump to the alternate cpp file (header/implementation)" %{
+ c-family-alternative-file
+}
+define-command objc-alternative-file -docstring "Jump to the alternate objc file (header/implementation)" %{
+ c-family-alternative-file
+}
+
+§
+
+# Module aliases
+provide-module c %{ require-module c-family }
+provide-module cpp %{ require-module c-family }
+provide-module objc %{ require-module c-family }
diff --git a/dot_config/kak/autoload/rc/filetype/cabal.kak b/dot_config/kak/autoload/rc/filetype/cabal.kak
new file mode 100644
index 0000000..a1f4526
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/cabal.kak
@@ -0,0 +1,88 @@
+# http://haskell.org/cabal
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+# Detection
+# ‾‾‾‾‾‾‾‾‾
+
+hook global BufCreate .*[.](cabal) %{
+ set-option buffer filetype cabal
+}
+
+# Initialization
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+hook global WinSetOption filetype=cabal %[
+ require-module cabal
+
+ hook window ModeChange pop:insert:.* -group cabal-trim-indent cabal-trim-indent
+ hook window InsertChar \n -group cabal-insert cabal-insert-on-new-line
+ hook window InsertChar \n -group cabal-indent cabal-indent-on-new-line
+ hook window InsertChar \{ -group cabal-indent cabal-indent-on-opening-curly-brace
+ hook window InsertChar \} -group cabal-indent cabal-indent-on-closing-curly-brace
+
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window cabal-.+ }
+]
+
+hook -group cabal-highlight global WinSetOption filetype=cabal %{
+ add-highlighter window/cabal ref cabal
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/cabal }
+}
+
+
+provide-module cabal %[
+
+# Highlighters
+# ‾‾‾‾‾‾‾‾‾‾‾‾
+
+add-highlighter shared/cabal regions
+add-highlighter shared/cabal/code default-region group
+add-highlighter shared/cabal/line_comment region (--) $ fill comment
+add-highlighter shared/cabal/comment region -recurse \{- \{- -\} fill comment
+
+add-highlighter shared/cabal/code/ regex \b(true|false)\b|(([<>]?=?)?\d+(\.\d+)+) 0:value
+add-highlighter shared/cabal/code/ regex \b(if|else)\b 0:keyword
+add-highlighter shared/cabal/code/ regex ^\h*([A-Za-z][A-Za-z0-9_-]*)\h*: 1:variable
+
+# Commands
+# ‾‾‾‾‾‾‾‾
+
+define-command -hidden cabal-trim-indent %{
+ # remove trailing white spaces
+ try %{ execute-keys -draft -itersel x s \h+$ d }
+}
+
+define-command -hidden cabal-insert-on-new-line %[
+ evaluate-commands -draft -itersel %[
+ # copy '--' comment prefix and following white spaces
+ try %[ execute-keys -draft k x s ^\h*\K--\h* y gh j P ]
+ ]
+]
+
+define-command -hidden cabal-indent-on-new-line %[
+ evaluate-commands -draft -itersel %[
+ # preserve previous line indent
+ try %[ execute-keys -draft K ]
+ # filter previous line
+ try %[ execute-keys -draft k : cabal-trim-indent ]
+ # indent after lines ending with { or :
+ try %[ execute-keys -draft , k x [:{]$ j ]
+ # deindent closing brace when after cursor
+ try %[ execute-keys -draft x \h*\} gh / \} m 1 ]
+ ]
+]
+
+define-command -hidden cabal-indent-on-opening-curly-brace %[
+ evaluate-commands -draft -itersel %[
+ # align indent with opening paren when { is entered on a new line after the closing paren
+ try %[ execute-keys -draft h ) M \A\(.*\)\h*\n\h*\{\z s \A|.\z 1 ]
+ ]
+]
+
+define-command -hidden cabal-indent-on-closing-curly-brace %[
+ evaluate-commands -draft -itersel %[
+ # align to opening curly brace when alone on a line
+ try %[ execute-keys -draft ^\h+\}$ h m s \A|.\z 1 ]
+ ]
+]
+
+]
diff --git a/dot_config/kak/autoload/rc/filetype/clojure.kak b/dot_config/kak/autoload/rc/filetype/clojure.kak
new file mode 100644
index 0000000..d876262
--- /dev/null
+++ b/dot_config/kak/autoload/rc/filetype/clojure.kak
@@ -0,0 +1,237 @@
+# http://clojure.org
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+
+# Detection
+# ‾‾‾‾‾‾‾‾‾
+
+hook global BufCreate .*[.](clj|cljc|cljs|cljx|edn) %{
+ set-option buffer filetype clojure
+}
+
+# Initialization
+# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
+hook global WinSetOption filetype=clojure %{
+ require-module clojure
+ clojure-configure-window
+}
+
+hook -group clojure-highlight global WinSetOption filetype=clojure %{
+ add-highlighter window/clojure ref clojure
+ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/clojure }
+}
+
+hook -group clojure-insert global BufNewFile .*[.](clj|cljc|cljs|cljx) %{
+ require-module clojure
+ clojure-insert-ns
+}
+
+provide-module clojure %{
+
+require-module lisp
+
+# Highlighters
+# ‾‾‾‾‾‾‾‾‾‾‾‾
+
+add-highlighter shared/clojure regions
+add-highlighter shared/clojure/code default-region group
+add-highlighter shared/clojure/comment region '(? cond->> def definline definterface defmacro defmethod "\
+ "defmulti defn defn- defonce defprotocol defrecord defstruct deftype fn if "\
+ "if-let if-not if-some let letfn new ns when when-first when-let when-not "\
+ "when-some . ..", keywords);
+
+ split( \
+ "* *' + +' - -' -> ->> ->ArrayChunk ->Eduction ->Vec ->VecNode ->VecSeq / < "\
+ "<= = == > >= StackTraceElement->vec Throwable->map accessor aclone "\
+ "add-classpath add-watch agent agent-error agent-errors aget alength alias "\
+ "all-ns alter alter-meta! alter-var-root amap ancestors and any? apply "\
+ "areduce array-map as-> aset aset-boolean aset-byte aset-char aset-double "\
+ "aset-float aset-int aset-long aset-short assert assoc assoc! assoc-in "\
+ "associative? atom await await-for bases bean bigdec bigint biginteger "\
+ "binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set "\
+ "bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array "\
+ "boolean? booleans bound-fn bound-fn* bound? bounded-count butlast byte "\
+ "byte-array bytes bytes? cast cat catch char char-array char-escape-string "\
+ "char-name-string char? chars class class? clear-agent-errors "\
+ "clojure-version coll? comment commute comp comparator compare "\
+ "compare-and-set! compile complement completing concat conj conj! cons "\
+ "constantly construct-proxy contains? count counted? create-ns "\
+ "create-struct cycle dec dec' decimal? declare dedupe default-data-readers "\
+ "delay delay? deliver denominator deref derive descendants disj disj! "\
+ "dissoc dissoc! distinct distinct? do doall dorun doseq dosync dotimes doto "\
+ "double double-array double? doubles drop drop-last drop-while eduction "\
+ "empty empty? ensure ensure-reduced enumeration-seq error-handler "\
+ "error-mode eval even? every-pred every? ex-data ex-info extend "\
+ "extend-protocol extend-type extenders extends? false? ffirst file-seq "\
+ "filter filterv finally find find-keyword find-ns find-var first flatten "\
+ "float float-array float? floats flush fn? fnext fnil for force format "\
+ "frequencies future future-call future-cancel future-cancelled? "\
+ "future-done? future? gen-class gen-interface gensym get get-in get-method "\
+ "get-proxy-class get-thread-bindings get-validator group-by halt-when hash "\
+ "hash-map hash-ordered-coll hash-set hash-unordered-coll ident? identical? "\
+ "identity ifn? import in-ns inc inc' indexed? init-proxy inst-ms inst? "\
+ "instance? int int-array int? integer? interleave intern interpose into "\
+ "into-array ints io! isa? iterate iterator-seq juxt keep keep-indexed key "\
+ "keys keyword keyword? last lazy-cat lazy-seq line-seq list list* list? "\
+ "load load-file load-reader load-string loaded-libs locking long long-array "\
+ "longs loop macroexpand macroexpand-1 make-array make-hierarchy map "\
+ "map-entry? map-indexed map? mapcat mapv max max-key memfn memoize merge "\
+ "merge-with meta methods min min-key mix-collection-hash mod monitor-enter "\
+ "monitor-exit name namespace namespace-munge nat-int? neg-int? neg? newline "\
+ "next nfirst nil? nnext not not-any? not-empty not-every? not= ns-aliases "\
+ "ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve "\
+ "ns-unalias ns-unmap nth nthnext nthrest num number? numerator object-array "\
+ "odd? or parents partial partition partition-all partition-by pcalls peek "\
+ "persistent! pmap pop pop! pop-thread-bindings pos-int? pos? pr pr-str "\
+ "prefer-method prefers print print-str printf println println-str prn "\
+ "prn-str promise proxy proxy-mappings proxy-super push-thread-bindings "\
+ "pvalues qualified-ident? qualified-keyword? qualified-symbol? quot quote "\
+ "rand rand-int rand-nth random-sample range ratio? rational? rationalize "\
+ "re-find re-groups re-matcher re-matches re-pattern re-seq read read-line "\
+ "read-string reader-conditional reader-conditional? realized? record? recur "\
+ "reduce reduce-kv reduced reduced? reductions ref ref-history-count "\
+ "ref-max-history ref-min-history ref-set refer refer-clojure reify "\
+ "release-pending-sends rem remove remove-all-methods remove-method "\
+ "remove-ns remove-watch repeat repeatedly replace replicate require reset! "\
+ "reset-meta! reset-vals! resolve rest restart-agent resultset-seq reverse "\
+ "reversible? rseq rsubseq run! satisfies? second select-keys send send-off "\
+ "send-via seq seq? seqable? seque sequence sequential? set set! "\
+ "set-agent-send-executor! set-agent-send-off-executor! set-error-handler! "\
+ "set-error-mode! set-validator! set? short short-array shorts shuffle "\
+ "shutdown-agents simple-ident? simple-keyword? simple-symbol? slurp some "\
+ "some-> some->> some-fn some? sort sort-by sorted-map sorted-map-by "\
+ "sorted-set sorted-set-by sorted? special-symbol? spit split-at split-with "\
+ "str string? struct struct-map subs subseq subvec supers swap! swap-vals! "\
+ "symbol symbol? sync tagged-literal tagged-literal? take take-last take-nth "\
+ "take-while test the-ns thread-bound? throw time to-array to-array-2d "\
+ "trampoline transduce transient tree-seq true? try type unchecked-add "\
+ "unchecked-add-int unchecked-byte unchecked-char unchecked-dec "\
+ "unchecked-dec-int unchecked-divide-int unchecked-double unchecked-float "\
+ "unchecked-inc unchecked-inc-int unchecked-int unchecked-long "\
+ "unchecked-multiply unchecked-multiply-int unchecked-negate "\
+ "unchecked-negate-int unchecked-remainder-int unchecked-short "\
+ "unchecked-subtract unchecked-subtract-int underive unreduced "\
+ "unsigned-bit-shift-right update update-in update-proxy uri? use uuid? val "\
+ "vals var var-get var-set var? vary-meta vec vector vector-of vector? "\
+ "volatile! volatile? vreset! vswap! while with-bindings with-bindings* "\
+ "with-in-str with-local-vars with-meta with-open with-out-str "\
+ "with-precision with-redefs with-redefs-fn xml-seq zero? zipmap", core_fns);
+
+ split( \
+ "*1 *2 *3 *agent* *clojure-version* *command-line-args* *compile-files* "\
+ "*compile-path* *compiler-options* *data-readers* *default-data-reader-fn* "\
+ "*e *err* *file* *flush-on-newline* *in* *ns* *out* *print-dup* "\
+ "*print-length* *print-level* *print-meta* *print-namespace-maps* "\
+ "*print-readably* *read-eval* *unchecked-math* *warn-on-reflection*", core_vars);
+ }
+ function print_word_highlighter(words, face, first) {
+ printf("add-highlighter shared/clojure/code/ regex (? ! : "'"
+ hook -once -always window WinSetOption filetype=.* %{ remove-hooks window clojure-.+ }
+}
+
+define-command -hidden clojure-trim-indent lisp-trim-indent
+
+declare-option \
+ -docstring 'regex matching the head of forms which have options *and* indented bodies' \
+ regex clojure_special_indent_forms \
+ '(?:def.*|doseq|for|fn\*?|if(-.*|)|let.*|loop|ns|testing|with-.*|when(-.*|))'
+
+define-command -hidden clojure-indent-on-new-line %{
+ # registers: i = best align point so far; w = start of first word of form
+ evaluate-commands -draft -save-regs '/"|^@iw' -itersel %{
+ execute-keys -draft 'gk"iZ'
+ try %{
+ execute-keys -draft '[bl"i"wZ'
+
+ try %{
+ # If a special form, indent another (indentwidth - 1) spaces
+ execute-keys -draft '"wze[\s()\[\]\{\}]\A' %opt{clojure_special_indent_forms} '\z'
+ execute-keys -draft '"wzes.{' %sh{printf $(( kak_opt_indentwidth - 1 ))} '}\K.*;"i'
+ } catch %{
+ # If not special and parameter appears on line 1, indent to parameter
+ execute-keys -draft '"wz[()[\]{}]e[\s()\[\]\{\}]s\h\K[^\s].*;"i'
+ }
+ }
+ try %{ execute-keys -draft '[rl"i