feat: Add alacritty conf
This commit is contained in:
20
.alacritty.toml
Normal file
20
.alacritty.toml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import = [
|
||||||
|
"~/.config/alacritty/themes/themes/hyper.toml"
|
||||||
|
]
|
||||||
|
|
||||||
|
[env]
|
||||||
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
|
shell = "zsh"
|
||||||
|
|
||||||
|
[window]
|
||||||
|
decorations = "none"
|
||||||
|
opacity = 0.5
|
||||||
|
blur = true
|
||||||
|
padding = { x = 10, y = 10 }
|
||||||
|
|
||||||
|
[font]
|
||||||
|
normal = { family = "Fira Code", style = "Regular" }
|
||||||
|
|
||||||
|
[selection]
|
||||||
|
save_to_clipboard = true
|
||||||
3
.profile
3
.profile
@@ -34,3 +34,6 @@ export PATH="$PATH:/home/nathan/Android/Sdk/cmdline-tools/latest/bin/"
|
|||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
export PATH="/home/nathan/.local/share/solana/install/active_release/bin:$PATH"
|
export PATH="/home/nathan/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
|
export HSD_API_KEY=30e7b7974d99c62b241a9daf3d4924a108515b03
|
||||||
|
|
||||||
|
. "$HOME/.atuin/bin/env"
|
||||||
|
|||||||
288
.zsh_functions/_alacritty
Normal file
288
.zsh_functions/_alacritty
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
#compdef alacritty
|
||||||
|
|
||||||
|
autoload -U is-at-least
|
||||||
|
|
||||||
|
_alacritty() {
|
||||||
|
typeset -A opt_args
|
||||||
|
typeset -a _arguments_options
|
||||||
|
local ret=1
|
||||||
|
|
||||||
|
if is-at-least 5.2; then
|
||||||
|
_arguments_options=(-s -S -C)
|
||||||
|
else
|
||||||
|
_arguments_options=(-s -C)
|
||||||
|
fi
|
||||||
|
|
||||||
|
local context curcontext="$curcontext" state line
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
'--embed=[X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix)]:EMBED: ' \
|
||||||
|
'--config-file=[Specify alternative configuration file \[default\: \$XDG_CONFIG_HOME/alacritty/alacritty.toml\]]:CONFIG_FILE:_files' \
|
||||||
|
'--socket=[Path for IPC socket creation]:SOCKET:_files' \
|
||||||
|
'--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \
|
||||||
|
'*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||||
|
'*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||||
|
'-T+[Defines the window title \[default\: Alacritty\]]:TITLE: ' \
|
||||||
|
'--title=[Defines the window title \[default\: Alacritty\]]:TITLE: ' \
|
||||||
|
'--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | <general>,<instance: ' \
|
||||||
|
'*-o+[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||||
|
'*--option=[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||||
|
'--print-events[Print all events to STDOUT]' \
|
||||||
|
'--ref-test[Generates ref test]' \
|
||||||
|
'(-v)*-q[Reduces the level of verbosity (the min level is -qq)]' \
|
||||||
|
'(-q)*-v[Increases the level of verbosity (the max level is -vvv)]' \
|
||||||
|
'--hold[Remain open after child process exit]' \
|
||||||
|
'-h[Print help]' \
|
||||||
|
'--help[Print help]' \
|
||||||
|
'-V[Print version]' \
|
||||||
|
'--version[Print version]' \
|
||||||
|
":: :_alacritty_commands" \
|
||||||
|
"*::: :->alacritty" \
|
||||||
|
&& ret=0
|
||||||
|
case $state in
|
||||||
|
(alacritty)
|
||||||
|
words=($line[1] "${words[@]}")
|
||||||
|
(( CURRENT += 1 ))
|
||||||
|
curcontext="${curcontext%:*:*}:alacritty-command-$line[1]:"
|
||||||
|
case $line[1] in
|
||||||
|
(msg)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
'-s+[IPC socket connection path override]:SOCKET:_files' \
|
||||||
|
'--socket=[IPC socket connection path override]:SOCKET:_files' \
|
||||||
|
'-h[Print help]' \
|
||||||
|
'--help[Print help]' \
|
||||||
|
":: :_alacritty__msg_commands" \
|
||||||
|
"*::: :->msg" \
|
||||||
|
&& ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(msg)
|
||||||
|
words=($line[1] "${words[@]}")
|
||||||
|
(( CURRENT += 1 ))
|
||||||
|
curcontext="${curcontext%:*:*}:alacritty-msg-command-$line[1]:"
|
||||||
|
case $line[1] in
|
||||||
|
(create-window)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
'--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \
|
||||||
|
'*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||||
|
'*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||||
|
'-T+[Defines the window title \[default\: Alacritty\]]:TITLE: ' \
|
||||||
|
'--title=[Defines the window title \[default\: Alacritty\]]:TITLE: ' \
|
||||||
|
'--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | <general>,<instance: ' \
|
||||||
|
'*-o+[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||||
|
'*--option=[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||||
|
'--hold[Remain open after child process exit]' \
|
||||||
|
'-h[Print help]' \
|
||||||
|
'--help[Print help]' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(config)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
'-w+[Window ID for the new config]:WINDOW_ID: ' \
|
||||||
|
'--window-id=[Window ID for the new config]:WINDOW_ID: ' \
|
||||||
|
'()-r[Clear all runtime configuration changes]' \
|
||||||
|
'()--reset[Clear all runtime configuration changes]' \
|
||||||
|
'-h[Print help (see more with '\''--help'\'')]' \
|
||||||
|
'--help[Print help (see more with '\''--help'\'')]' \
|
||||||
|
'*::options -- Configuration file options \[example\: '\''cursor.style="Beam"'\''\]:' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(help)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
":: :_alacritty__msg__help_commands" \
|
||||||
|
"*::: :->help" \
|
||||||
|
&& ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(help)
|
||||||
|
words=($line[1] "${words[@]}")
|
||||||
|
(( CURRENT += 1 ))
|
||||||
|
curcontext="${curcontext%:*:*}:alacritty-msg-help-command-$line[1]:"
|
||||||
|
case $line[1] in
|
||||||
|
(create-window)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(config)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(help)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
(migrate)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
'-c+[Path to the configuration file]:CONFIG_FILE:_files' \
|
||||||
|
'--config-file=[Path to the configuration file]:CONFIG_FILE:_files' \
|
||||||
|
'-d[Only output TOML config to STDOUT]' \
|
||||||
|
'--dry-run[Only output TOML config to STDOUT]' \
|
||||||
|
'-i[Do not recurse over imports]' \
|
||||||
|
'--skip-imports[Do not recurse over imports]' \
|
||||||
|
'--skip-renames[Do not move renamed fields to their new location]' \
|
||||||
|
'-s[Do not output to STDOUT]' \
|
||||||
|
'--silent[Do not output to STDOUT]' \
|
||||||
|
'-h[Print help]' \
|
||||||
|
'--help[Print help]' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(help)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
":: :_alacritty__help_commands" \
|
||||||
|
"*::: :->help" \
|
||||||
|
&& ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(help)
|
||||||
|
words=($line[1] "${words[@]}")
|
||||||
|
(( CURRENT += 1 ))
|
||||||
|
curcontext="${curcontext%:*:*}:alacritty-help-command-$line[1]:"
|
||||||
|
case $line[1] in
|
||||||
|
(msg)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
":: :_alacritty__help__msg_commands" \
|
||||||
|
"*::: :->msg" \
|
||||||
|
&& ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(msg)
|
||||||
|
words=($line[1] "${words[@]}")
|
||||||
|
(( CURRENT += 1 ))
|
||||||
|
curcontext="${curcontext%:*:*}:alacritty-help-msg-command-$line[1]:"
|
||||||
|
case $line[1] in
|
||||||
|
(create-window)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(config)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
(migrate)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
(help)
|
||||||
|
_arguments "${_arguments_options[@]}" : \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
(( $+functions[_alacritty_commands] )) ||
|
||||||
|
_alacritty_commands() {
|
||||||
|
local commands; commands=(
|
||||||
|
'msg:Send a message to the Alacritty socket' \
|
||||||
|
'migrate:Migrate the configuration file' \
|
||||||
|
'help:Print this message or the help of the given subcommand(s)' \
|
||||||
|
)
|
||||||
|
_describe -t commands 'alacritty commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help_commands] )) ||
|
||||||
|
_alacritty__help_commands() {
|
||||||
|
local commands; commands=(
|
||||||
|
'msg:Send a message to the Alacritty socket' \
|
||||||
|
'migrate:Migrate the configuration file' \
|
||||||
|
'help:Print this message or the help of the given subcommand(s)' \
|
||||||
|
)
|
||||||
|
_describe -t commands 'alacritty help commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help__help_commands] )) ||
|
||||||
|
_alacritty__help__help_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty help help commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help__migrate_commands] )) ||
|
||||||
|
_alacritty__help__migrate_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty help migrate commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help__msg_commands] )) ||
|
||||||
|
_alacritty__help__msg_commands() {
|
||||||
|
local commands; commands=(
|
||||||
|
'create-window:Create a new window in the same Alacritty process' \
|
||||||
|
'config:Update the Alacritty configuration' \
|
||||||
|
)
|
||||||
|
_describe -t commands 'alacritty help msg commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help__msg__config_commands] )) ||
|
||||||
|
_alacritty__help__msg__config_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty help msg config commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__help__msg__create-window_commands] )) ||
|
||||||
|
_alacritty__help__msg__create-window_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty help msg create-window commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__migrate_commands] )) ||
|
||||||
|
_alacritty__migrate_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty migrate commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg_commands] )) ||
|
||||||
|
_alacritty__msg_commands() {
|
||||||
|
local commands; commands=(
|
||||||
|
'create-window:Create a new window in the same Alacritty process' \
|
||||||
|
'config:Update the Alacritty configuration' \
|
||||||
|
'help:Print this message or the help of the given subcommand(s)' \
|
||||||
|
)
|
||||||
|
_describe -t commands 'alacritty msg commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__config_commands] )) ||
|
||||||
|
_alacritty__msg__config_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty msg config commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__create-window_commands] )) ||
|
||||||
|
_alacritty__msg__create-window_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty msg create-window commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__help_commands] )) ||
|
||||||
|
_alacritty__msg__help_commands() {
|
||||||
|
local commands; commands=(
|
||||||
|
'create-window:Create a new window in the same Alacritty process' \
|
||||||
|
'config:Update the Alacritty configuration' \
|
||||||
|
'help:Print this message or the help of the given subcommand(s)' \
|
||||||
|
)
|
||||||
|
_describe -t commands 'alacritty msg help commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__help__config_commands] )) ||
|
||||||
|
_alacritty__msg__help__config_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty msg help config commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__help__create-window_commands] )) ||
|
||||||
|
_alacritty__msg__help__create-window_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty msg help create-window commands' commands "$@"
|
||||||
|
}
|
||||||
|
(( $+functions[_alacritty__msg__help__help_commands] )) ||
|
||||||
|
_alacritty__msg__help__help_commands() {
|
||||||
|
local commands; commands=()
|
||||||
|
_describe -t commands 'alacritty msg help help commands' commands "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$funcstack[1]" = "_alacritty" ]; then
|
||||||
|
_alacritty "$@"
|
||||||
|
else
|
||||||
|
compdef _alacritty alacritty
|
||||||
|
fi
|
||||||
8
.zshrc
8
.zshrc
@@ -133,3 +133,11 @@ alias ls='exa'
|
|||||||
alias ll='exa --long --group --header --icons --classify'
|
alias ll='exa --long --group --header --icons --classify'
|
||||||
|
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
export HSD_API_KEY=30e7b7974d99c62b241a9daf3d4924a108515b03
|
||||||
|
|
||||||
|
alias z='zellij'
|
||||||
|
|
||||||
|
. "$HOME/.atuin/bin/env"
|
||||||
|
|
||||||
|
eval "$(atuin init zsh)"
|
||||||
|
fpath+=${ZDOTDIR:-~}/.zsh_functions
|
||||||
|
|||||||
Reference in New Issue
Block a user