[feat] Restructure the repo
@@ -1,7 +0,0 @@
|
|||||||
complete --command fisher --exclusive --long help --description "Print help"
|
|
||||||
complete --command fisher --exclusive --long version --description "Print version"
|
|
||||||
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins"
|
|
||||||
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins"
|
|
||||||
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins"
|
|
||||||
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex"
|
|
||||||
complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)"
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
complete -c sflasher -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_use_subcommand" -f -a "list" -d 'List the connected keyboards supported by this tool'
|
|
||||||
complete -c sflasher -n "__fish_use_subcommand" -f -a "firmware" -d 'Operation on a specific keyboard'
|
|
||||||
complete -c sflasher -n "__fish_use_subcommand" -f -a "flash"
|
|
||||||
complete -c sflasher -n "__fish_use_subcommand" -f -a "reboot"
|
|
||||||
complete -c sflasher -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from list" -s v -l verbose -d 'Print the devices in verbose mode'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from list" -s b -l bootloader -d 'Show devices in bootloader mode'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from list" -s n -l normal -d 'Show devices in normal mode'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from list" -s a -l all -d 'Show devices in any mode'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from list" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from check; and not __fish_seen_subcommand_from help" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from check; and not __fish_seen_subcommand_from help" -f -a "check"
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from check; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and __fish_seen_subcommand_from check" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from check; and not __fish_seen_subcommand_from help" -f -a "check"
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from firmware; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from check; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from flash" -s k -l keyboard -d 'The path to the keyboard' -r
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from flash" -s o -l offset -d 'The offset to flash from' -r
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from flash" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from reboot" -s h -l help -d 'Print help information'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from flash; and not __fish_seen_subcommand_from reboot; and not __fish_seen_subcommand_from help" -f -a "list" -d 'List the connected keyboards supported by this tool'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from flash; and not __fish_seen_subcommand_from reboot; and not __fish_seen_subcommand_from help" -f -a "firmware" -d 'Operation on a specific keyboard'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from flash; and not __fish_seen_subcommand_from reboot; and not __fish_seen_subcommand_from help" -f -a "flash"
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from flash; and not __fish_seen_subcommand_from reboot; and not __fish_seen_subcommand_from help" -f -a "reboot"
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from list; and not __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from flash; and not __fish_seen_subcommand_from reboot; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
|
|
||||||
complete -c sflasher -n "__fish_seen_subcommand_from help; and __fish_seen_subcommand_from firmware; and not __fish_seen_subcommand_from check" -f -a "check"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
abbr t '$HOME/.config/tmux/start-tmux'
|
|
||||||
|
|
||||||
if uname | grep -q Darwin
|
|
||||||
abbr find gfind
|
|
||||||
abbr sed gsed
|
|
||||||
end
|
|
||||||
|
|
||||||
if type -q nvim
|
|
||||||
abbr vim nvim
|
|
||||||
abbr v nvim
|
|
||||||
end
|
|
||||||
if type -q bat
|
|
||||||
abbr cat bat
|
|
||||||
end
|
|
||||||
if type -q exa
|
|
||||||
abbr ls exa
|
|
||||||
abbr ll exa -l
|
|
||||||
abbr la exa -la
|
|
||||||
end
|
|
||||||
if type -q zoxide
|
|
||||||
abbr cd z
|
|
||||||
end
|
|
||||||
if type -q git
|
|
||||||
abbr g git
|
|
||||||
abbr gp git push
|
|
||||||
abbr gpu git pull
|
|
||||||
end
|
|
||||||
if type -q evcxr
|
|
||||||
abbr reru evcxr
|
|
||||||
end
|
|
||||||
if not type -q wget
|
|
||||||
abbr wget curl -O
|
|
||||||
end
|
|
||||||
|
|
||||||
abbr rpc 'patch -p0 < ~/.local/share/console.diff'
|
|
||||||
abbr yy yazi
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
alias axbrew='HOMEBREW_CELLAR=/usr/local/Cellar HOMEBREW_PREFIX=/usr/local HOMEBREW_REPOSITORY=/usr/local/Homebrew arch -x86_64 /usr/local/homebrew/bin/brew'
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export BUN_INSTALL="$HOME/.bun"
|
|
||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git"
|
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
set -gx PATH "/run/user/1000/fnm_multishells/295966_1690289932404/bin" $PATH;
|
|
||||||
set -gx FNM_VERSION_FILE_STRATEGY "local";
|
|
||||||
set -gx FNM_LOGLEVEL "info";
|
|
||||||
set -gx FNM_ARCH "x64";
|
|
||||||
set -gx FNM_DIR "/home/fs0c131y/.local/share/fnm";
|
|
||||||
set -gx FNM_COREPACK_ENABLED "false";
|
|
||||||
set -gx FNM_MULTISHELL_PATH "/run/user/1000/fnm_multishells/295966_1690289932404";
|
|
||||||
set -gx FNM_NODE_DIST_MIRROR "https://nodejs.org/dist";
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
function open
|
|
||||||
handlr open $argv
|
|
||||||
end
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
if [ (uname) = "Darwin" ]
|
|
||||||
set arch (arch)
|
|
||||||
if [ "$arch" = "i386" ]
|
|
||||||
# eval /usr/local/Caskroom/miniconda/base/bin/conda "shell.fish" "hook" $argv | source
|
|
||||||
/usr/local/bin/brew shellenv | source
|
|
||||||
export PATH="/usr/local/opt/llvm/bin:$PATH"
|
|
||||||
else
|
|
||||||
eval /opt/homebrew/Caskroom/miniconda/base/bin/conda "shell.fish" "hook" $argv | source
|
|
||||||
/opt/homebrew/bin/brew shellenv | source
|
|
||||||
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
|
|
||||||
end
|
|
||||||
|
|
||||||
export XDG_CONFIG_HOME="/Users/fs0c131y/.config"
|
|
||||||
end
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
if [ (uname) = "Darwin" ]
|
|
||||||
export PATH="/opt/local/bin:$PATH"
|
|
||||||
end
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
set -gx PATH "/Users/fs0c131y/Library/Caches/fnm_multishells/57420_1689833237098/bin" $PATH;
|
|
||||||
set -gx FNM_NODE_DIST_MIRROR "https://nodejs.org/dist";
|
|
||||||
set -gx FNM_COREPACK_ENABLED "false";
|
|
||||||
set -gx FNM_ARCH "arm64";
|
|
||||||
set -gx FNM_VERSION_FILE_STRATEGY "local";
|
|
||||||
set -gx FNM_MULTISHELL_PATH "/Users/fs0c131y/Library/Caches/fnm_multishells/57420_1689833237098";
|
|
||||||
set -gx FNM_DIR "/Users/fs0c131y/Library/Application Support/fnm";
|
|
||||||
set -gx FNM_LOGLEVEL "info";
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export EDITOR=nvim
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
switch (uname)
|
|
||||||
case "Darwin"
|
|
||||||
for file in (ls ~/.config/fish/conf.d/macos/)
|
|
||||||
source ~/.config/fish/conf.d/macos/"$file"
|
|
||||||
end
|
|
||||||
case "Linux"
|
|
||||||
for file in (ls ~/.config/fish/conf.d/linux/)
|
|
||||||
source ~/.config/fish/conf.d/linux/"$file"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
starship init fish | source
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
zoxide init fish | source
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
if status is-interactive
|
|
||||||
macchina
|
|
||||||
end
|
|
||||||
|
|
||||||
export DYLD_FALLBACK_LIBRARY_PATH="/Library/Developer/CommandLineTools/usr/lib"
|
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git"
|
|
||||||
export CARGO_TARGET_DIR="$HOME/.local/share/cargo-target"
|
|
||||||
|
|
||||||
# fish_vi_key_bindings
|
|
||||||
# The next line updates PATH for the Google Cloud SDK.
|
|
||||||
if [ -f '/Users/fs0c131y/Projects/gcloud/google-cloud-sdk/path.fish.inc' ]; . '/Users/fs0c131y/Projects/gcloud/google-cloud-sdk/path.fish.inc'; end
|
|
||||||
|
|
||||||
alias rebuds="bluetoothctl remove XX:XX:XX:XX:XX:XX; bluetoothctl scan on;bluetoothctl pair XX:XX:XX:XX:XX:XX; bluetoothctl connect XX:XX:XX:XX:XX:XX"
|
|
||||||
mkdir -p ~/.config/fish/completions
|
|
||||||
carapace --list | awk '{print $1}' | xargs -I{} touch ~/.config/fish/completions/{}.fish # disable auto-loaded completions (#185)
|
|
||||||
carapace _carapace | source
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
jorgebucaran/fisher
|
|
||||||
edc/bass
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
# This file contains fish universal variable definitions.
|
|
||||||
# VERSION: 3.0
|
|
||||||
SETUVAR AFTERSHOOT_LOG:desktop_rust_backend\x3dtrace
|
|
||||||
SETUVAR BW_SESSION:lW6\x2bALLBSowAJgVMgqI6sSMqku9z/192K\x2bDNX0jF2WlzRGhBtKGlUAqXJgbWKTw/cDKU2MRO5Z/6aQPi6fkA6Q\x3d\x3d
|
|
||||||
SETUVAR __fish_initialized:3400
|
|
||||||
SETUVAR _fisher_edc_2F_bass_files:/home/fs0c131y/\x2econfig/fish/functions/__bass\x2epy\x1e/home/fs0c131y/\x2econfig/fish/functions/bass\x2efish
|
|
||||||
SETUVAR _fisher_jorgebucaran_2F_fisher_files:/Users/fs0c131y/\x2econfig/fish/functions/fisher\x2efish\x1e/Users/fs0c131y/\x2econfig/fish/completions/fisher\x2efish
|
|
||||||
SETUVAR _fisher_plugins:jorgebucaran/fisher\x1eedc/bass
|
|
||||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
|
||||||
SETUVAR fish_color_command:005fd7
|
|
||||||
SETUVAR fish_color_comment:990000
|
|
||||||
SETUVAR fish_color_cwd:green
|
|
||||||
SETUVAR fish_color_cwd_root:red
|
|
||||||
SETUVAR fish_color_end:009900
|
|
||||||
SETUVAR fish_color_error:ff0000
|
|
||||||
SETUVAR fish_color_escape:00a6b2
|
|
||||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
|
||||||
SETUVAR fish_color_host:normal
|
|
||||||
SETUVAR fish_color_host_remote:yellow
|
|
||||||
SETUVAR fish_color_normal:normal
|
|
||||||
SETUVAR fish_color_operator:00a6b2
|
|
||||||
SETUVAR fish_color_param:00afff
|
|
||||||
SETUVAR fish_color_quote:999900
|
|
||||||
SETUVAR fish_color_redirection:00afff
|
|
||||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_status:red
|
|
||||||
SETUVAR fish_color_user:brgreen
|
|
||||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
|
||||||
SETUVAR fish_greeting:
|
|
||||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
|
||||||
SETUVAR fish_pager_color_completion:\x1d
|
|
||||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
|
||||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
|
||||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
|
||||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
|
||||||
SETUVAR fish_user_paths:/opt/homebrew/bin\x1e/usr/lib/emscripten\x1e/home/fs0c131y/\x2elocal/bin\x1e/home/fs0c131y/\x2ecargo/bin\x1e/opt/homebrew/Cellar/arm\x2dgcc\x2dbin\x408/8\x2d2019\x2dq3\x2dupdate_2/bin\x1e/Users/fs0c131y/\x2ecargo/bin\x1e/Users/fs0c131y/\x2elocal/bin
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
function cclose --argument-names issue target --description "Comment and close github issue"
|
|
||||||
if test -z "$issue"
|
|
||||||
echo "Usage: cclose {issue num}"
|
|
||||||
return 1
|
|
||||||
end
|
|
||||||
gh issue comment "$issue"
|
|
||||||
gh issue close "$issue"
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,212 +0,0 @@
|
|||||||
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|
||||||
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
|
||||||
set --local fisher_version 4.3.1
|
|
||||||
set --local fish_plugins $__fish_config_dir/fish_plugins
|
|
||||||
|
|
||||||
switch "$cmd"
|
|
||||||
case -v --version
|
|
||||||
echo "fisher, version $fisher_version"
|
|
||||||
case "" -h --help
|
|
||||||
echo "Usage: fisher install <plugins...> Install plugins"
|
|
||||||
echo " fisher remove <plugins...> Remove installed plugins"
|
|
||||||
echo " fisher update <plugins...> Update installed plugins"
|
|
||||||
echo " fisher update Update all installed plugins"
|
|
||||||
echo " fisher list [<regex>] List installed plugins matching regex"
|
|
||||||
echo "Options:"
|
|
||||||
echo " -v or --version Print version"
|
|
||||||
echo " -h or --help Print this help message"
|
|
||||||
echo "Variables:"
|
|
||||||
echo " \$fisher_path Plugin installation path. Default: ~/.config/fish"
|
|
||||||
case ls list
|
|
||||||
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
|
||||||
case install update remove
|
|
||||||
isatty || read --local --null --array stdin && set --append argv $stdin
|
|
||||||
|
|
||||||
set --local install_plugins
|
|
||||||
set --local update_plugins
|
|
||||||
set --local remove_plugins
|
|
||||||
set --local arg_plugins $argv[2..-1]
|
|
||||||
set --local old_plugins $_fisher_plugins
|
|
||||||
set --local new_plugins
|
|
||||||
|
|
||||||
if ! set --query argv[2]
|
|
||||||
if test "$cmd" != update
|
|
||||||
echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
|
|
||||||
else if test ! -e $fish_plugins
|
|
||||||
echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
|
|
||||||
end
|
|
||||||
set arg_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
|
|
||||||
end
|
|
||||||
|
|
||||||
for plugin in $arg_plugins
|
|
||||||
test -e "$plugin" && set plugin (realpath $plugin)
|
|
||||||
contains -- "$plugin" $new_plugins || set --append new_plugins $plugin
|
|
||||||
end
|
|
||||||
|
|
||||||
if set --query argv[2]
|
|
||||||
for plugin in $new_plugins
|
|
||||||
if contains -- "$plugin" $old_plugins
|
|
||||||
test "$cmd" = remove &&
|
|
||||||
set --append remove_plugins $plugin ||
|
|
||||||
set --append update_plugins $plugin
|
|
||||||
else if test "$cmd" = install
|
|
||||||
set --append install_plugins $plugin
|
|
||||||
else
|
|
||||||
echo "fisher: Plugin not installed: \"$plugin\"" >&2 && return 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
for plugin in $new_plugins
|
|
||||||
contains -- "$plugin" $old_plugins &&
|
|
||||||
set --append update_plugins $plugin ||
|
|
||||||
set --append install_plugins $plugin
|
|
||||||
end
|
|
||||||
|
|
||||||
for plugin in $old_plugins
|
|
||||||
contains -- "$plugin" $new_plugins || set --append remove_plugins $plugin
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
set --local pid_list
|
|
||||||
set --local source_plugins
|
|
||||||
set --local fetch_plugins $update_plugins $install_plugins
|
|
||||||
echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
|
|
||||||
|
|
||||||
for plugin in $fetch_plugins
|
|
||||||
set --local source (command mktemp -d)
|
|
||||||
set --append source_plugins $source
|
|
||||||
|
|
||||||
command mkdir -p $source/{completions,conf.d,functions}
|
|
||||||
|
|
||||||
fish --command "
|
|
||||||
if test -e $plugin
|
|
||||||
command cp -Rf $plugin/* $source
|
|
||||||
else
|
|
||||||
set temp (command mktemp -d)
|
|
||||||
set name (string split \@ $plugin) || set name[2] HEAD
|
|
||||||
set url https://api.github.com/repos/\$name[1]/tarball/\$name[2]
|
|
||||||
set header 'Accept: application/vnd.github.v3+json'
|
|
||||||
|
|
||||||
echo Fetching (set_color --underline)\$url(set_color normal)
|
|
||||||
|
|
||||||
if curl --silent -L -H \$header \$url | tar -xzC \$temp -f - 2>/dev/null
|
|
||||||
command cp -Rf \$temp/*/* $source
|
|
||||||
else
|
|
||||||
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
|
||||||
command rm -rf $source
|
|
||||||
end
|
|
||||||
command rm -rf \$temp
|
|
||||||
end
|
|
||||||
|
|
||||||
set files $source/* && string match --quiet --regex -- .+\.fish\\\$ \$files
|
|
||||||
" &
|
|
||||||
|
|
||||||
set --append pid_list (jobs --last --pid)
|
|
||||||
end
|
|
||||||
|
|
||||||
wait $pid_list 2>/dev/null
|
|
||||||
|
|
||||||
for plugin in $fetch_plugins
|
|
||||||
if set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)] && test ! -e $source
|
|
||||||
if set --local index (contains --index -- "$plugin" $install_plugins)
|
|
||||||
set --erase install_plugins[$index]
|
|
||||||
else
|
|
||||||
set --erase update_plugins[(contains --index -- "$plugin" $update_plugins)]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for plugin in $update_plugins $remove_plugins
|
|
||||||
if set --local index (contains --index -- "$plugin" $_fisher_plugins)
|
|
||||||
set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
|
|
||||||
|
|
||||||
if contains -- "$plugin" $remove_plugins
|
|
||||||
for name in (string replace --filter --regex -- '.+/conf\.d/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
|
||||||
emit {$name}_uninstall
|
|
||||||
end
|
|
||||||
printf "%s\n" Removing\ (set_color red --bold)$plugin(set_color normal) " "$$plugin_files_var
|
|
||||||
end
|
|
||||||
|
|
||||||
command rm -rf $$plugin_files_var
|
|
||||||
functions --erase (string replace --filter --regex -- '.+/functions/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
|
||||||
|
|
||||||
for name in (string replace --filter --regex -- '.+/completions/([^/]+)\.fish$' '$1' $$plugin_files_var)
|
|
||||||
complete --erase --command $name
|
|
||||||
end
|
|
||||||
|
|
||||||
set --erase _fisher_plugins[$index]
|
|
||||||
set --erase $plugin_files_var
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if set --query update_plugins[1] || set --query install_plugins[1]
|
|
||||||
command mkdir -p $fisher_path/{functions,conf.d,completions}
|
|
||||||
end
|
|
||||||
|
|
||||||
for plugin in $update_plugins $install_plugins
|
|
||||||
set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)]
|
|
||||||
set --local files $source/{functions,conf.d,completions}/*
|
|
||||||
|
|
||||||
if set --local index (contains --index -- $plugin $install_plugins)
|
|
||||||
set --local user_files $fisher_path/{functions,conf.d,completions}/*
|
|
||||||
set --local conflict_files
|
|
||||||
|
|
||||||
for file in (string replace -- $source/ $fisher_path/ $files)
|
|
||||||
contains -- $file $user_files && set --append conflict_files $file
|
|
||||||
end
|
|
||||||
|
|
||||||
if set --query conflict_files[1] && set --erase install_plugins[$index]
|
|
||||||
echo -s "fisher: Cannot install \"$plugin\": please remove or move conflicting files first:" \n" "$conflict_files >&2
|
|
||||||
continue
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for file in (string replace -- $source/ "" $files)
|
|
||||||
command cp -Rf $source/$file $fisher_path/$file
|
|
||||||
end
|
|
||||||
|
|
||||||
set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
|
|
||||||
set --query files[1] && set --universal $plugin_files_var (string replace -- $source $fisher_path $files)
|
|
||||||
|
|
||||||
contains -- $plugin $_fisher_plugins || set --universal --append _fisher_plugins $plugin
|
|
||||||
contains -- $plugin $install_plugins && set --local event install || set --local event update
|
|
||||||
|
|
||||||
printf "%s\n" Installing\ (set_color --bold)$plugin(set_color normal) " "$$plugin_files_var
|
|
||||||
|
|
||||||
for file in (string match --regex -- '.+/[^/]+\.fish$' $$plugin_files_var)
|
|
||||||
source $file
|
|
||||||
if set --local name (string replace --regex -- '.+conf\.d/([^/]+)\.fish$' '$1' $file)
|
|
||||||
emit {$name}_$event
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
command rm -rf $source_plugins
|
|
||||||
|
|
||||||
set --query _fisher_plugins[1] || set --erase _fisher_plugins
|
|
||||||
set --query _fisher_plugins &&
|
|
||||||
printf "%s\n" $_fisher_plugins >$fish_plugins ||
|
|
||||||
command rm -f $fish_plugins
|
|
||||||
|
|
||||||
set --local total (count $install_plugins) (count $update_plugins) (count $remove_plugins)
|
|
||||||
test "$total" != "0 0 0" && echo (string join ", " (
|
|
||||||
test $total[1] = 0 || echo "Installed $total[1]") (
|
|
||||||
test $total[2] = 0 || echo "Updated $total[2]") (
|
|
||||||
test $total[3] = 0 || echo "Removed $total[3]")
|
|
||||||
) plugin/s
|
|
||||||
case \*
|
|
||||||
echo "fisher: Unknown command: \"$cmd\"" >&2 && return 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
## Migrations ##
|
|
||||||
function _fisher_fish_postexec --on-event fish_postexec
|
|
||||||
if functions --query _fisher_list
|
|
||||||
fisher update >/dev/null 2>/dev/null
|
|
||||||
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
|
||||||
test -e $XDG_DATA_HOME/fisher && command rm -rf $XDG_DATA_HOME/fisher
|
|
||||||
functions --erase _fisher_list _fisher_plugin_parse
|
|
||||||
set --erase fisher_data
|
|
||||||
end
|
|
||||||
functions --erase _fisher_fish_postexec
|
|
||||||
end
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
function ga --argument-names source target --description "Check how much ahead a git branch is from another"
|
|
||||||
if test -z "$source"
|
|
||||||
echo "Usage: ga source target"
|
|
||||||
return 1
|
|
||||||
end
|
|
||||||
if test -z "$target"
|
|
||||||
set target (git rev-parse --abbrev-ref HEAD)
|
|
||||||
end
|
|
||||||
echo "$source"\t"$target"
|
|
||||||
git rev-list --left-right --count "$source"..."$target"
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
function list_dir --on-variable PWD; ls -F; end;
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
monitors:
|
|
||||||
HDMI-A-2:
|
|
||||||
position: bottom
|
|
||||||
start:
|
|
||||||
- type: launcher
|
|
||||||
favourites:
|
|
||||||
- firefox
|
|
||||||
- discord
|
|
||||||
show_names: false
|
|
||||||
show_icons: true
|
|
||||||
- type: focused
|
|
||||||
|
|
||||||
end:
|
|
||||||
# - type: custom
|
|
||||||
# bar:
|
|
||||||
# - type: slider
|
|
||||||
# # orientation: h
|
|
||||||
# step: 1
|
|
||||||
# # length: 100
|
|
||||||
# max: 100
|
|
||||||
# # value: "!xbacklight get"
|
|
||||||
# # on_change: "!xbacklight set ${0%.*}"
|
|
||||||
- type: clipboard
|
|
||||||
max_items: 3
|
|
||||||
truncate:
|
|
||||||
length: 50
|
|
||||||
mode: end
|
|
||||||
- type: music
|
|
||||||
player_type: mpris
|
|
||||||
- type: clock
|
|
||||||
|
|
||||||
DP-1:
|
|
||||||
position: bottom
|
|
||||||
icon_theme: Paper-Mono-Dark
|
|
||||||
end:
|
|
||||||
- type: sys_info
|
|
||||||
format:
|
|
||||||
- CPU {cpu_percent}% | {temp_c:coretemp-Package-id-0}°C
|
|
||||||
- RAM {memory_percent}%
|
|
||||||
# - {disk_used:/home} GiB / {disk_total:/home} GiB ({disk_percent:/home}%)
|
|
||||||
# - 猪 {load_average:1} | {load_average:5} | {load_average:15}
|
|
||||||
# - 李 {net_down:eno1} / {net_up:eno1} Mbps
|
|
||||||
# - {uptime}
|
|
||||||
interval:
|
|
||||||
cpu: 1
|
|
||||||
temps: 5
|
|
||||||
memory: 30
|
|
||||||
# disks: 300
|
|
||||||
# networks: 3
|
|
||||||
- type: "tray"
|
|
||||||
start:
|
|
||||||
|
|
||||||
- type: workspaces
|
|
||||||
name_map:
|
|
||||||
"1": icon:code
|
|
||||||
"2":
|
|
||||||
"3": icon:chrome
|
|
||||||
"4": icon:discord
|
|
||||||
"5": icon:steam
|
|
||||||
"6": icon:misc
|
|
||||||
"7": icon:misc
|
|
||||||
"8": icon:docky
|
|
||||||
"9": icon:monodoc
|
|
||||||
"10": icon:spotify
|
|
||||||
favorites:
|
|
||||||
- "1"
|
|
||||||
- "2"
|
|
||||||
- "3"
|
|
||||||
- "4"
|
|
||||||
- "5"
|
|
||||||
- "6"
|
|
||||||
- "7"
|
|
||||||
- "8"
|
|
||||||
- "9"
|
|
||||||
- "10"
|
|
||||||
all_monitors: true
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/nix/store/87j6kznxyqcic67gphrcyb5bz6ydnfpl-home-manager-files/.config/ironbar/style.css
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
protocol file
|
|
||||||
mime image/*
|
|
||||||
action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;197;228;243m.[38;2;188;224;242m.[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;240;248;252m [38;2;63;166;217mc[38;2;49;159;214ml[38;2;225;241;249m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;247;251;253m [38;2;82;174;221m:[38;2;23;147;209mo[38;2;23;147;209mo[38;2;65;166;217mc[38;2;238;247;252m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;253;254;255m [38;2;103;184;225m;[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;72;170;219m:[38;2;239;247;252m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;252;254;254m [38;2;193;226;243m.[38;2;37;154;212ml[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;78;172;220m:[38;2;242;249;252m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;249;252;254m [38;2;105;185;225m;[38;2;55;162;215mc[38;2;103;184;225m;[38;2;77;172;220m:[38;2;45;157;213ml[38;2;24;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;69;168;218mc[38;2;231;244;250m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;242;249;252m [38;2;87;177;222m:[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;24;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;59;164;216mc[38;2;225;241;249m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;236;246;251m [38;2;75;171;219m:[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;47;158;214ml[38;2;210;234;246m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;221;239;248m [38;2;58;163;216mc[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;44;157;213ml[38;2;95;181;223m;[38;2;98;182;224m;[38;2;50;160;214ml[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;40;155;212ml[38;2;197;228;244m.[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;200;229;244m.[38;2;46;158;214ml[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;128;196;230m'[38;2;247;251;253m [38;2;255;255;255m [38;2;255;255;255m [38;2;250;252;254m [38;2;151;207;234m.[38;2;26;148;210mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;30;150;210mo[38;2;169;215;238m.[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;171;216;238m.[38;2;29;150;210mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;62;165;217mc[38;2;254;254;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;102;184;225m;[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;29;150;210mo[38;2;55;162;215mc[38;2;46;158;214ml[38;2;140;201;232m'[38;2;254;254;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;255;255;255m [38;2;253;254;255m [38;2;141;202;232m'[38;2;25;148;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;85;176;221m:[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;130;197;230m'[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;25;148;209mo[38;2;72;170;219m:[38;2;112;189;227m,[38;2;210;234;246m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m
|
|
||||||
[38;2;255;255;255m [38;2;249;252;254m [38;2;110;187;226m,[38;2;23;147;209mo[38;2;23;147;209mo[38;2;23;147;209mo[38;2;43;156;213ml[38;2;86;176;221m:[38;2;125;195;229m,[38;2;160;211;236m.[38;2;190;225;242m.[38;2;218;238;248m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;227;242;249m [38;2;192;226;243m.[38;2;162;212;237m.[38;2;128;196;230m,[38;2;89;178;222m:[38;2;46;158;214ml[38;2;23;147;209mo[38;2;23;147;209mo[38;2;28;149;210mo[38;2;102;184;225m;[38;2;240;248;252m [38;2;255;255;255m
|
|
||||||
[38;2;235;246;251m [38;2;81;174;221m:[38;2;59;164;216mc[38;2;114;189;227m,[38;2;166;214;237m.[38;2;215;237;247m [38;2;252;254;254m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;254;254;255m [38;2;219;238;248m [38;2;170;215;238m.[38;2;117;191;228m,[38;2;63;166;217mc[38;2;72;170;219m:[38;2;231;244;250m
|
|
||||||
[38;2;153;207;235m.[38;2;193;226;243m.[38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;255;255;255m [38;2;200;230;244m.[38;2;141;202;232m'
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣠⠤⡤⣄⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⣶⠞⠋⢡⠀⠀⠀⢠⡀⠀⠉⠙⠲⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⢞⣉⡴⢁⡾⠁⠀⠀⢸⡆⠀⠀⠀⠉⠳⣦⡀⠀⠈⠋⠳⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⠀⠀⢀⡴⢟⡿⠋⠈⠀⣼⠁⠀⠀⠀⠈⢳⡀⠀⠀⠀⠀⠀⠙⢶⣄⠀⠀⠀⠙⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⠀⣠⠟⢄⡞⠀⠀⠀⢨⡏⠀⠀⠀⠀⠀⠈⢷⠀⠀⠀⠀⠀⠀⠀⠙⢦⡀⠀⠂⠈⢳⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⣠⠿⢀⡞⠀⠀⠀⠀⢻⡇⠀⠀⠀⣀⣀⢀⡈⣇⠀⠀⠀⠀⠀⠀⠀⠀⠳⡄⠀⠀⠀⢻⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⢠⠟⠀⣾⠀⠀⠀⠐⠲⣼⡇⢀⠀⣾⡏⢹⣷⡀⢹⡄⠀⠀⠀⠀⠀⠀⠀⠀⠹⡆⠀⠀⠀⢷⡀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⣾⠀⢸⠇⠀⢀⣀⣀⣠⠿⠿⠾⠷⢾⡇⢸⡟⠋⠛⠋⠉⠉⠙⠓⠒⠲⠶⠦⣼⢽⡄⠀⠀⠘⣇⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⣼⠋⠀⣿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠛⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⠠⢿⡀⠀⠀⢻⡀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⢀⣿⠀⢠⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠈⡷⢄⠀⢸⣇⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⢸⠁⠸⢹⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣶⠀⢹⡀⠀⠈⣿⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⣼⠀⠀⣿⣽⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⢦⡜⢷⠄⠀⣿⡄⠀⠀⠀⠀⠀⠀
|
|
||||||
⢀⡏⠀⠀⣿⢺⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡿⠀⠀⠀⠀⠀⢻⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⢸⡇⠀⠀⣿⢼⡇⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⣇⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⣾⣿⠀⡀⢹⣼⡇⠀⠀⠀⠀⠀⣿⣿⠆⠀⠀⠐⠒⠒⠒⠀⠀⢼⣿⡷⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⣿⣿⣄⢣⠸⣿⡇⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⠀⠀⠀⠀⠀⡇⠀⠈⢳⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⣿⡇⣏⡄⣧⢺⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⣸⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⣿⣿⣿⡃⠈⠈⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⢰⠀⢸⠀⠀⣾⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⢹⣧⢻⡆⠀⠀⢻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⢸⠀⢸⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀
|
|
||||||
⢸⣿⢸⡇⢠⣀⠻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⡿⠀⢸⠀⠀⢺⣷⠀⠀⠀⠀⠀⠀
|
|
||||||
⠈⣿⣆⡇⠀⢹⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣧⡇⠀⢸⠀⠀⢸⢸⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠸⣿⣧⠀⣾⡟⡷⢤⣤⣤⠴⣶⣶⣶⠶⣶⣶⣖⣲⠒⢒⣒⣶⣶⣷⣾⠒⣶⢲⠒⠲⣿⠇⠀⢸⠀⠄⣾⢸⠀⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠹⣿⡄⢸⡇⢹⡄⠀⢹⠀⢸⡀⢾⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡿⢻⠀⣿⢸⡄⠀⡞⠀⠀⢸⢀⡄⣿⢺⡆⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠙⣿⠀⡇⠐⣇⠀⢸⠀⠈⣇⢸⣇⣬⣿⣿⣹⣿⣿⣿⣿⠟⠀⢸⣤⣏⢸⠆⢠⡇⠀⠀⢸⠀⠁⢯⢸⣷⠀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⣿⡆⣧⠀⠹⡄⠘⡇⠀⣿⣿⣿⣿⡟⢿⣿⣿⠿⠟⠁⠀⠀⠸⣿⣿⣿⣀⣾⠀⠀⠀⠸⠀⠀⠸⡖⢹⡀⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⢻⠀⣿⠀⠀⢧⢠⣧⣼⣿⣿⣿⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢹⣿⢹⣿⣶⣶⣤⣀⡀⠀⠀⢻⠘⡇⠀⠀⠀⠀
|
|
||||||
⠀⠀⠀⠀⢸⠀⣹⣠⣴⣾⣾⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡿⣸⣿⣿⣿⣿⣿⣿⣿⣶⣾⣤⣷⠀⠀⠀⠀
|
|
||||||
⠀⠀⣀⣠⠾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⢀⣀⣀⣤⣄⣀⠀⠀⣾⣿⣷⣿⣿⣿⣿⠿⢿⣿⣿⣿⣿⣽⣿⣿⣷⣤⡀
|
|
||||||
⣴⣿⣿⣿⣷⣶⣤⣤⣌⣙⣛⡻⠿⣿⣿⣿⣿⣿⡟⢛⣋⣉⣁⣈⡛⡿⣾⣿⣿⣿⣿⠟⣋⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;232;230;230mN[0m[38;2;245;244;244mW[0m[38;2;250;250;250mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;250;250;250mM[0m[38;2;240;238;238mW[0m[38;2;232;210;212mX[0m[38;2;232;185;189m0[0m[38;2;220;160;166mk[0m[38;2;235;168;174mO[0m[38;2;225;160;166mO[0m[38;2;224;163;169mO[0m[38;2;226;181;185m0[0m[38;2;238;218;219mX[0m[38;2;254;254;254mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;227;201;203mK[0m[38;2;215;152;159mk[0m[38;2;231;188;183m0[0m[38;2;225;172;171mO[0m[38;2;227;163;169mO[0m[38;2;229;185;180m0[0m[38;2;222;159;166mk[0m[38;2;238;170;175mO[0m[38;2;220;155;163mk[0m[38;2;211;192;196m0[0m[38;2;250;250;250mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;254;254;254mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;225;218;219mX[0m[38;2;219;156;165mk[0m[38;2;205;171;172mO[0m[38;2;238;214;203mX[0m[38;2;246;226;213mN[0m[38;2;238;208;199mX[0m[38;2;236;209;196mX[0m[38;2;226;187;180m0[0m[38;2;240;171;176m0[0m[38;2;196;140;153mx[0m[38;2;203;182;189mO[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
[0m[38;2;254;254;254mM[0m[38;2;254;254;254mM[0m[38;2;254;254;254mM[0m[38;2;254;254;254mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;209;191;193m0[0m[38;2;212;155;164mk[0m[38;2;232;223;220mX[0m[38;2;253;253;251mM[0m[38;2;242;239;237mW[0m[38;2;222;213;216mX[0m[38;2;233;224;229mN[0m[38;2;222;187;191m0[0m[38;2;236;167;174mO[0m[38;2;224;203;208mK[0m[38;2;222;216;219mX[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m[38;2;255;255;255mM[0m
|
|
||||||
|
Before Width: | Height: | Size: 481 KiB |
@@ -1,5 +0,0 @@
|
|||||||
long_shell = true
|
|
||||||
long_uptime = true
|
|
||||||
current_shell = true
|
|
||||||
physical_cores = true
|
|
||||||
theme = "Beryllium"
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
# Beryllium
|
|
||||||
spacing = 1
|
|
||||||
# hide_ascii = true
|
|
||||||
key_color = "#FB6B90"
|
|
||||||
separator = ""
|
|
||||||
|
|
||||||
[box]
|
|
||||||
border = "double"
|
|
||||||
visible = true
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
glyph = "○ "
|
|
||||||
visible = true
|
|
||||||
|
|
||||||
# [bar]
|
|
||||||
# glyph = "○"
|
|
||||||
# hide_delimiters = false
|
|
||||||
# visible = true
|
|
||||||
|
|
||||||
[box.inner_margin]
|
|
||||||
x = 2
|
|
||||||
y = 1
|
|
||||||
|
|
||||||
[custom_ascii]
|
|
||||||
# color = "#FF7001"
|
|
||||||
# path = "~/.config/macchina/image.png"
|
|
||||||
path = "~/.config/macchina/archlinux.ascii"
|
|
||||||
|
|
||||||
[keys]
|
|
||||||
host = "Host"
|
|
||||||
kernel = "Kernel"
|
|
||||||
battery = "Battery"
|
|
||||||
os = "OS"
|
|
||||||
de = "DE"
|
|
||||||
wm = "WM"
|
|
||||||
distro = "Distro"
|
|
||||||
terminal = "Terminal"
|
|
||||||
shell = "Shell"
|
|
||||||
packages = "Packages"
|
|
||||||
uptime = "Uptime"
|
|
||||||
memory = "Memory"
|
|
||||||
machine = "Machine"
|
|
||||||
local_ip = "Local IP"
|
|
||||||
backlight = "Brightness"
|
|
||||||
resolution = "Resolution"
|
|
||||||
cpu_load = "CPU Load"
|
|
||||||
cpu = "CPU"
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
# Hydrogen
|
|
||||||
|
|
||||||
spacing = 2
|
|
||||||
padding = 0
|
|
||||||
hide_ascii = true
|
|
||||||
separator = ">"
|
|
||||||
key_color = "Cyan"
|
|
||||||
separator_color = "White"
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
type = "Full"
|
|
||||||
visible = false
|
|
||||||
|
|
||||||
[bar]
|
|
||||||
glyph = "ߋ"
|
|
||||||
symbol_open = '['
|
|
||||||
symbol_close = ']'
|
|
||||||
hide_delimiters = true
|
|
||||||
visible = true
|
|
||||||
|
|
||||||
[box]
|
|
||||||
border = "plain"
|
|
||||||
visible = true
|
|
||||||
|
|
||||||
[box.inner_margin]
|
|
||||||
x = 1
|
|
||||||
y = 0
|
|
||||||
|
|
||||||
[randomize]
|
|
||||||
key_color = false
|
|
||||||
separator_color = false
|
|
||||||
|
|
||||||
[keys]
|
|
||||||
host = "Host"
|
|
||||||
kernel = "Kernel"
|
|
||||||
battery = "Battery"
|
|
||||||
os = "OS"
|
|
||||||
de = "DE"
|
|
||||||
wm = "WM"
|
|
||||||
distro = "Distro"
|
|
||||||
terminal = "Terminal"
|
|
||||||
shell = "Shell"
|
|
||||||
packages = "Packages"
|
|
||||||
uptime = "Uptime"
|
|
||||||
memory = "Memory"
|
|
||||||
machine = "Machine"
|
|
||||||
local_ip = "Local IP"
|
|
||||||
backlight = "Brightness"
|
|
||||||
resolution = "Resolution"
|
|
||||||
cpu_load = "CPU Load"
|
|
||||||
cpu = "CPU"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
alias disroot Uttarayan Mondal <uttarayan21@disroot.org>
|
|
||||||
alias gmail Uttarayan Mondal <uttarayan21@gmail.com>
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
unmailboxes *
|
|
||||||
|
|
||||||
set imap_user = uttarayan21@disroot.org
|
|
||||||
#set folder = imaps://"$imap_user"/
|
|
||||||
set folder = ~/Mail/disroot
|
|
||||||
set spoolfile = +INBOX
|
|
||||||
set postponed = +Drafts
|
|
||||||
set mbox = +Archive
|
|
||||||
set record = +Sent
|
|
||||||
|
|
||||||
set crypt_autosign = yes
|
|
||||||
set realname = "Uttarayan Mondal"
|
|
||||||
set from = "uttarayan21@disroot.org"
|
|
||||||
set signature = "~/.config/neomutt/signature"
|
|
||||||
set smtp_pass = "`pass user.disroot.org/uttarayan21`"
|
|
||||||
set smtp_url = "smtp://$imap_user:587"
|
|
||||||
set ssl_starttls
|
|
||||||
|
|
||||||
mailboxes =INBOX =Drafts =Sent =Trash =Archive =Junk
|
|
||||||
# account-hook $folder "set imap_user=uttarayan21@disroot.org"
|
|
||||||
|
|
||||||
color status green default
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
unmailboxes *
|
|
||||||
|
|
||||||
# Read password
|
|
||||||
unset my_pass
|
|
||||||
set my_pass = "`pass Email/neomutt`"
|
|
||||||
|
|
||||||
set crypt_autosign = yes
|
|
||||||
# Sending mail
|
|
||||||
set smtp_url = "smtp://uttarayan21@smtp.gmail.com:587"
|
|
||||||
set smtp_pass = $my_pass
|
|
||||||
|
|
||||||
# Creds
|
|
||||||
set from = "uttarayan21@gmail.com"
|
|
||||||
set signature = "~/.config/neomutt/signature"
|
|
||||||
|
|
||||||
# mailbox
|
|
||||||
set mbox_type = Maildir
|
|
||||||
set folder = ~/Mail/gmail
|
|
||||||
set spoolfile = +Inbox
|
|
||||||
set postponed = +Drafts
|
|
||||||
set record = ""
|
|
||||||
|
|
||||||
mailboxes =Inbox =Trash =Drafts =Sent =Spam
|
|
||||||
|
|
||||||
color status yellow default
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# text/html; lynx -dump %s ; copiousoutput; nametemplate=%s.html
|
|
||||||
text/html; w3m -I %{charset} -T text/html ; copiousoutput; nametemplate=%s.html
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
# Disroot
|
|
||||||
source ~/.config/neomutt/disroot/uttarayan21
|
|
||||||
folder-hook 'disroot' 'source ~/.config/neomutt/disroot/uttarayan21'
|
|
||||||
|
|
||||||
# Gmail
|
|
||||||
source ~/.config/neomutt/gmail/uttarayan21
|
|
||||||
folder-hook 'gmail' 'source ~/.config/neomutt/gmail/uttarayan21'
|
|
||||||
|
|
||||||
|
|
||||||
# Macros for switching accounts
|
|
||||||
macro index <f2> '<sync-mailbox><refresh><enter-command>source ~/.config/neomutt/gmail/uttarayan21<enter><change-folder>!<enter>'
|
|
||||||
macro index <f3> '<sync-mailbox><refresh><enter-command>source ~/.config/neomutt/disroot/uttarayan21<enter><change-folder>!<enter>'
|
|
||||||
|
|
||||||
# Sign with gpgme
|
|
||||||
set crypt_use_gpgme=yes
|
|
||||||
set postpone_encrypt = yes
|
|
||||||
set pgp_self_encrypt = yes
|
|
||||||
set crypt_use_pka = no
|
|
||||||
set crypt_autoencrypt = no
|
|
||||||
set crypt_autopgp = yes
|
|
||||||
set crypt_autosign = yes
|
|
||||||
set crypt_verify_sig = yes
|
|
||||||
set pgp_sign_as=0xAAB106209B043AD6
|
|
||||||
|
|
||||||
# Sidebar
|
|
||||||
set sidebar_visible
|
|
||||||
# set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
|
|
||||||
set sidebar_format = "%D%* [%N]%*"
|
|
||||||
set mail_check_stats
|
|
||||||
|
|
||||||
# Activate caching, as it can greatly improve speed
|
|
||||||
set header_cache = "~/.cache/neomutt/headers"
|
|
||||||
set message_cachedir = "~/.cache/neomutt/bodies"
|
|
||||||
|
|
||||||
# Disable saving outgoing mail since Gmail saves them by default.
|
|
||||||
# set record = ""
|
|
||||||
# set editor
|
|
||||||
set editor = "nvim"
|
|
||||||
|
|
||||||
# Sort by threads
|
|
||||||
set sort = threads
|
|
||||||
# Sort threads by last date recieved - newest first
|
|
||||||
set sort_aux = reverse-last-date-received
|
|
||||||
# Show date in year/month/day hour:minute format
|
|
||||||
set date_format="%d/%m/%y %I:%M%p"
|
|
||||||
|
|
||||||
# mailcap and auto_view
|
|
||||||
set mailcap_path = "~/.config/neomutt/mailcap"
|
|
||||||
auto_view text/html
|
|
||||||
|
|
||||||
set alias_file = "~/.config/neomutt/aliases"
|
|
||||||
source ~/.config/neomutt/vimkeys.muttrc
|
|
||||||
source ~/.config/neomutt/dracula/dracula.muttrc
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Uttarayan Mondal
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
#------------------------------------------------------------
|
|
||||||
# Vi Key Bindings
|
|
||||||
#------------------------------------------------------------
|
|
||||||
|
|
||||||
# Moving around
|
|
||||||
bind attach,browser,index g noop
|
|
||||||
bind attach,browser,index gg first-entry
|
|
||||||
bind attach,browser,index G last-entry
|
|
||||||
bind pager g noop
|
|
||||||
bind pager gg top
|
|
||||||
bind pager G bottom
|
|
||||||
bind pager k previous-line
|
|
||||||
bind pager j next-line
|
|
||||||
|
|
||||||
# Scrolling
|
|
||||||
# bind attach,browser,pager,index \CF next-page
|
|
||||||
# bind attach,browser,pager,index \CB previous-page
|
|
||||||
|
|
||||||
bind attach,browser,pager,index \Cu half-up
|
|
||||||
bind attach,browser,pager,index \Cd half-down
|
|
||||||
bind browser,pager \Ce next-line
|
|
||||||
bind browser,pager \Cy previous-line
|
|
||||||
bind index \Ce next-line
|
|
||||||
bind index \Cy previous-line
|
|
||||||
|
|
||||||
bind pager,index d noop
|
|
||||||
bind pager,index dd delete-message
|
|
||||||
|
|
||||||
macro pager,index \Cb | urlview\n
|
|
||||||
|
|
||||||
# Mail & Reply
|
|
||||||
# bind index \Cm list-reply # Doesn't work currently
|
|
||||||
|
|
||||||
|
|
||||||
# Threads
|
|
||||||
bind browser,pager,index N search-opposite
|
|
||||||
bind pager,index dT delete-thread
|
|
||||||
bind pager,index dt delete-subthread
|
|
||||||
bind pager,index gt next-thread
|
|
||||||
bind pager,index gT previous-thread
|
|
||||||
bind index za collapse-thread
|
|
||||||
bind index zA collapse-all # Missing :folddisable/foldenable
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
auto-reload yes
|
|
||||||
reload-time 5
|
|
||||||
reload-threads 4
|
|
||||||
|
|
||||||
# Open in mpv
|
|
||||||
macro m set browser "/usr/bin/mpv %u > /dev/null 2>&1 &"; open-in-browser ; set browser "xdg-open %u"
|
|
||||||
|
|
||||||
# Image preview
|
|
||||||
# pipe-to "tee ~/log"
|
|
||||||
|
|
||||||
# notification
|
|
||||||
notify-program /usr/bin/notify-send
|
|
||||||
# notify-always yes
|
|
||||||
|
|
||||||
# pager
|
|
||||||
# pager "nvim -R -c 'set ft=mail nomod noma nolist' -c 'nnoremap q :qa! <enter>' -"
|
|
||||||
pager "~/.local/bin/newspager"
|
|
||||||
# html-renderer /usr/bin/cat
|
|
||||||
# pager "xargs echo"
|
|
||||||
|
|
||||||
macro l pipe-to "~/.local/bin/newspager"
|
|
||||||
|
|
||||||
# vim keybinds
|
|
||||||
unbind-key h
|
|
||||||
unbind-key j
|
|
||||||
unbind-key k
|
|
||||||
unbind-key l
|
|
||||||
|
|
||||||
# bind-key h quit
|
|
||||||
bind-key j down
|
|
||||||
bind-key k up
|
|
||||||
# bind-key l open
|
|
||||||
|
|
||||||
unbind-key g
|
|
||||||
bind-key g home
|
|
||||||
unbind-key G
|
|
||||||
bind-key G end
|
|
||||||
|
|
||||||
color background default default
|
|
||||||
color listnormal default default
|
|
||||||
color listnormal_unread default default
|
|
||||||
color listfocus black cyan
|
|
||||||
color listfocus_unread black cyan
|
|
||||||
color info default black
|
|
||||||
color article default default
|
|
||||||
|
|
||||||
highlight article "^(Title):.*$" blue default
|
|
||||||
highlight article "https?://[^ ]+" red default
|
|
||||||
highlight article "\\[image\\ [0-9]+\\]" green default
|
|
||||||
4
config/nushell/.gitignore
vendored
@@ -1,4 +0,0 @@
|
|||||||
history.sqlite3
|
|
||||||
history.sqlite3-wal
|
|
||||||
history.sqlite3-shm
|
|
||||||
history.txt
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
alias ll = ls -al
|
|
||||||
alias cd = z
|
|
||||||
alias t = ~/.config/tmux/start-tmux
|
|
||||||
alias yy = yazi
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
def "cargo search" [ query: string, --limit=10] {
|
|
||||||
^cargo search $query --limit $limit
|
|
||||||
| lines
|
|
||||||
| each {
|
|
||||||
|line| if ($line | str contains "#") {
|
|
||||||
$line | parse --regex '(?P<name>.+) = "(?P<version>.+)" +# (?P<description>.+)'
|
|
||||||
} else {
|
|
||||||
$line | parse --regex '(?P<name>.+) = "(?P<version>.+)"'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
| flatten
|
|
||||||
}
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
export-env {
|
|
||||||
$env.CONDA_BASE_PATH = (if ((sys).host.name == "Windows") {$env.Path} else {$env.PATH})
|
|
||||||
|
|
||||||
let info = (
|
|
||||||
if not (which mamba | is-empty) {
|
|
||||||
(mamba info --envs --json | from json)
|
|
||||||
} else if not (which conda | is-empty) {
|
|
||||||
(conda info --envs --json | from json)
|
|
||||||
} else {
|
|
||||||
('{"root_prefix": "", "envs": ""}' | from json)
|
|
||||||
})
|
|
||||||
|
|
||||||
$env.CONDA_ROOT = $info.root_prefix
|
|
||||||
|
|
||||||
$env.CONDA_ENVS = ($info.envs | reduce -f {} {|it, acc|
|
|
||||||
if $it == $info.root_prefix {
|
|
||||||
$acc | upsert "base" $it
|
|
||||||
} else {
|
|
||||||
$acc | upsert ($it | path basename) $it
|
|
||||||
}})
|
|
||||||
|
|
||||||
$env.CONDA_CURR = null
|
|
||||||
}
|
|
||||||
|
|
||||||
export def --env activate [name: string] {
|
|
||||||
if ($env.CONDA_ROOT | is-empty) {
|
|
||||||
print "Neither Conda nor Mamba is valid."
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if not ($name in $env.CONDA_ENVS) {
|
|
||||||
print $"Environment ($name) is invalid. Available:"
|
|
||||||
print $env.CONDA_ENVS
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
let new_path = (
|
|
||||||
if ((sys).host.name == "Windows") {
|
|
||||||
update-path-windows ($env.CONDA_ENVS | get $name)
|
|
||||||
} else {
|
|
||||||
update-path-linux ($env.CONDA_ENVS | get $name)
|
|
||||||
})
|
|
||||||
|
|
||||||
load-env ({CONDA_CURR: $name} | merge $new_path)
|
|
||||||
}
|
|
||||||
|
|
||||||
export def --env deactivate [] {
|
|
||||||
if ($env.CONDA_ROOT | is-empty) {
|
|
||||||
print "Neither Conda nor Mamba is valid."
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.CONDA_CURR = null
|
|
||||||
|
|
||||||
load-env {Path: $env.CONDA_BASE_PATH, PATH: $env.CONDA_BASE_PATH}
|
|
||||||
}
|
|
||||||
|
|
||||||
export def --env list [] {
|
|
||||||
$env.CONDA_ENVS |
|
|
||||||
flatten |
|
|
||||||
transpose |
|
|
||||||
rename name path |
|
|
||||||
insert active { |it| $it.name == $env.CONDA_CURR } |
|
|
||||||
move path --after active
|
|
||||||
}
|
|
||||||
|
|
||||||
def update-path-linux [env_path: path] {
|
|
||||||
let env_path = [
|
|
||||||
$env_path,
|
|
||||||
([$env_path, "bin"] | path join)
|
|
||||||
]
|
|
||||||
|
|
||||||
return {
|
|
||||||
Path: ($env.PATH | prepend $env_path),
|
|
||||||
PATH: ($env.PATH | prepend $env_path)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def update-path-windows [env_path: path] {
|
|
||||||
let env_path = [
|
|
||||||
$env_path,
|
|
||||||
([$env_path, "Scripts"] | path join),
|
|
||||||
]
|
|
||||||
|
|
||||||
return {
|
|
||||||
Path: ($env.Path | prepend $env_path),
|
|
||||||
PATH: ($env.Path | prepend $env_path)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
$env.STARSHIP_SHELL = "nu"
|
|
||||||
$env.STARSHIP_SESSION_KEY = (random chars -l 16)
|
|
||||||
$env.PROMPT_MULTILINE_INDICATOR = (^starship prompt --continuation)
|
|
||||||
|
|
||||||
# Does not play well with default character module.
|
|
||||||
# TODO: Also Use starship vi mode indicators?
|
|
||||||
$env.PROMPT_INDICATOR = ""
|
|
||||||
|
|
||||||
$env.PROMPT_COMMAND = { ||
|
|
||||||
# jobs are not supported
|
|
||||||
let width = (term size).columns
|
|
||||||
^starship prompt $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Whether we have config items
|
|
||||||
let has_config_items = (not ($env | get -i config | is-empty))
|
|
||||||
|
|
||||||
$env.config = if $has_config_items {
|
|
||||||
$env.config | upsert render_right_prompt_on_last_line true
|
|
||||||
} else {
|
|
||||||
{render_right_prompt_on_last_line: true}
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.PROMPT_COMMAND_RIGHT = { ||
|
|
||||||
let width = (term size).columns
|
|
||||||
^starship prompt --right $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
|
|
||||||
}
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
# Code generated by zoxide. DO NOT EDIT.
|
|
||||||
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# Hook configuration for zoxide.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Initialize hook to add new entries to the database.
|
|
||||||
if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
|
|
||||||
$env.__zoxide_hooked = true
|
|
||||||
$env.config = ($env | default {} config).config
|
|
||||||
$env.config = ($env.config | default {} hooks)
|
|
||||||
$env.config = ($env.config | update hooks ($env.config.hooks | default {} env_change))
|
|
||||||
$env.config = ($env.config | update hooks.env_change ($env.config.hooks.env_change | default [] PWD))
|
|
||||||
$env.config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.env_change.PWD | append {|_, dir|
|
|
||||||
zoxide add -- $dir
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# When using zoxide with --no-cmd, alias these internal functions as desired.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Jump to a directory using only keywords.
|
|
||||||
def --env __zoxide_z [...rest:string] {
|
|
||||||
let arg0 = ($rest | append '~').0
|
|
||||||
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
|
|
||||||
$arg0
|
|
||||||
} else {
|
|
||||||
(zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
|
|
||||||
}
|
|
||||||
cd $path
|
|
||||||
}
|
|
||||||
|
|
||||||
# Jump to a directory using interactive search.
|
|
||||||
def --env __zoxide_zi [...rest:string] {
|
|
||||||
cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
|
|
||||||
}
|
|
||||||
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# Commands for zoxide. Disable these using --no-cmd.
|
|
||||||
#
|
|
||||||
|
|
||||||
alias z = __zoxide_z
|
|
||||||
alias zi = __zoxide_zi
|
|
||||||
|
|
||||||
# =============================================================================
|
|
||||||
#
|
|
||||||
# Add this to your env file (find it by running `$nu.env-path` in Nushell):
|
|
||||||
#
|
|
||||||
# zoxide init nushell | save -f ~/.zoxide.nu
|
|
||||||
#
|
|
||||||
# Now, add this to the end of your config file (find it by running
|
|
||||||
# `$nu.config-path` in Nushell):
|
|
||||||
#
|
|
||||||
# source ~/.zoxide.nu
|
|
||||||
#
|
|
||||||
# Note: zoxide only supports Nushell v0.73.0 and above.
|
|
||||||
@@ -1,566 +0,0 @@
|
|||||||
# Nushell Config File
|
|
||||||
|
|
||||||
# let fish_completer = {|spans|
|
|
||||||
# fish --command $'complete "--do-complete=($spans | str join " ")"'
|
|
||||||
# | $"value(char tab)description(char newline)" + $in
|
|
||||||
# | from tsv --flexible --no-infer
|
|
||||||
# }
|
|
||||||
|
|
||||||
# let carapace_completer = {|spans: list<string>|
|
|
||||||
# carapace $spans.0 nushell ...$spans
|
|
||||||
# | from json
|
|
||||||
# | if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
|
|
||||||
# }
|
|
||||||
|
|
||||||
# # This completer will use carapace by default
|
|
||||||
# let external_completer = {|spans|
|
|
||||||
# let expanded_alias = scope aliases
|
|
||||||
# | where name == $spans.0
|
|
||||||
# | get -i 0.expansion
|
|
||||||
|
|
||||||
# let spans = if $expanded_alias != null {
|
|
||||||
# $spans
|
|
||||||
# | skip 1
|
|
||||||
# | prepend ($expanded_alias | split row ' ')
|
|
||||||
# } else {
|
|
||||||
# $spans
|
|
||||||
# }
|
|
||||||
|
|
||||||
# match $spans.0 {
|
|
||||||
# nu => $fish_completer
|
|
||||||
# git => $fish_completer
|
|
||||||
# _ => $carapace_completer
|
|
||||||
# } | do $in $spans
|
|
||||||
# }
|
|
||||||
|
|
||||||
# For more information on themes, see
|
|
||||||
# https://www.nushell.sh/book/coloring_and_theming.html
|
|
||||||
let dark_theme = {
|
|
||||||
# color for nushell primitives
|
|
||||||
separator: white
|
|
||||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
|
|
||||||
header: green_bold
|
|
||||||
empty: blue
|
|
||||||
# Closures can be used to choose colors for specific values.
|
|
||||||
# The value (in this case, a bool) is piped into the closure.
|
|
||||||
bool: { if $in { 'light_cyan' } else { 'light_gray' } }
|
|
||||||
int: white
|
|
||||||
filesize: {|e|
|
|
||||||
if $e == 0b {
|
|
||||||
'white'
|
|
||||||
} else if $e < 1mb {
|
|
||||||
'cyan'
|
|
||||||
} else { 'blue' }
|
|
||||||
}
|
|
||||||
duration: white
|
|
||||||
date: { (date now) - $in |
|
|
||||||
if $in < 1hr {
|
|
||||||
'red3b'
|
|
||||||
} else if $in < 6hr {
|
|
||||||
'orange3'
|
|
||||||
} else if $in < 1day {
|
|
||||||
'yellow3b'
|
|
||||||
} else if $in < 3day {
|
|
||||||
'chartreuse2b'
|
|
||||||
} else if $in < 1wk {
|
|
||||||
'green3b'
|
|
||||||
} else if $in < 6wk {
|
|
||||||
'darkturquoise'
|
|
||||||
} else if $in < 52wk {
|
|
||||||
'deepskyblue3b'
|
|
||||||
} else { 'dark_gray' }
|
|
||||||
}
|
|
||||||
range: white
|
|
||||||
float: white
|
|
||||||
string: white
|
|
||||||
nothing: white
|
|
||||||
binary: white
|
|
||||||
cellpath: white
|
|
||||||
row_index: green_bold
|
|
||||||
record: white
|
|
||||||
list: white
|
|
||||||
block: white
|
|
||||||
hints: dark_gray
|
|
||||||
|
|
||||||
shape_and: purple_bold
|
|
||||||
shape_binary: purple_bold
|
|
||||||
shape_block: blue_bold
|
|
||||||
shape_bool: light_cyan
|
|
||||||
shape_custom: green
|
|
||||||
shape_datetime: cyan_bold
|
|
||||||
shape_directory: cyan
|
|
||||||
shape_external: cyan
|
|
||||||
shape_externalarg: green_bold
|
|
||||||
shape_filepath: cyan
|
|
||||||
shape_flag: blue_bold
|
|
||||||
shape_float: purple_bold
|
|
||||||
# shapes are used to change the cli syntax highlighting
|
|
||||||
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b}
|
|
||||||
shape_globpattern: cyan_bold
|
|
||||||
shape_int: purple_bold
|
|
||||||
shape_internalcall: cyan_bold
|
|
||||||
shape_list: cyan_bold
|
|
||||||
shape_literal: blue
|
|
||||||
shape_matching_brackets: { attr: u }
|
|
||||||
shape_nothing: light_cyan
|
|
||||||
shape_operator: yellow
|
|
||||||
shape_or: purple_bold
|
|
||||||
shape_pipe: purple_bold
|
|
||||||
shape_range: yellow_bold
|
|
||||||
shape_record: cyan_bold
|
|
||||||
shape_redirection: purple_bold
|
|
||||||
shape_signature: green_bold
|
|
||||||
shape_string: green
|
|
||||||
shape_string_interpolation: cyan_bold
|
|
||||||
shape_table: blue_bold
|
|
||||||
shape_variable: purple
|
|
||||||
}
|
|
||||||
|
|
||||||
let light_theme = {
|
|
||||||
# color for nushell primitives
|
|
||||||
separator: dark_gray
|
|
||||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
|
|
||||||
header: green_bold
|
|
||||||
empty: blue
|
|
||||||
# Closures can be used to choose colors for specific values.
|
|
||||||
# The value (in this case, a bool) is piped into the closure.
|
|
||||||
bool: { if $in { 'dark_cyan' } else { 'dark_gray' } }
|
|
||||||
int: dark_gray
|
|
||||||
filesize: {|e|
|
|
||||||
if $e == 0b {
|
|
||||||
'dark_gray'
|
|
||||||
} else if $e < 1mb {
|
|
||||||
'cyan_bold'
|
|
||||||
} else { 'blue_bold' }
|
|
||||||
}
|
|
||||||
duration: dark_gray
|
|
||||||
date: { (date now) - $in |
|
|
||||||
if $in < 1hr {
|
|
||||||
'red3b'
|
|
||||||
} else if $in < 6hr {
|
|
||||||
'orange3'
|
|
||||||
} else if $in < 1day {
|
|
||||||
'yellow3b'
|
|
||||||
} else if $in < 3day {
|
|
||||||
'chartreuse2b'
|
|
||||||
} else if $in < 1wk {
|
|
||||||
'green3b'
|
|
||||||
} else if $in < 6wk {
|
|
||||||
'darkturquoise'
|
|
||||||
} else if $in < 52wk {
|
|
||||||
'deepskyblue3b'
|
|
||||||
} else { 'dark_gray' }
|
|
||||||
}
|
|
||||||
range: dark_gray
|
|
||||||
float: dark_gray
|
|
||||||
string: dark_gray
|
|
||||||
nothing: dark_gray
|
|
||||||
binary: dark_gray
|
|
||||||
cellpath: dark_gray
|
|
||||||
row_index: green_bold
|
|
||||||
record: white
|
|
||||||
list: white
|
|
||||||
block: white
|
|
||||||
hints: dark_gray
|
|
||||||
|
|
||||||
shape_and: purple_bold
|
|
||||||
shape_binary: purple_bold
|
|
||||||
shape_block: blue_bold
|
|
||||||
shape_bool: light_cyan
|
|
||||||
shape_custom: green
|
|
||||||
shape_datetime: cyan_bold
|
|
||||||
shape_directory: cyan
|
|
||||||
shape_external: cyan
|
|
||||||
shape_externalarg: green_bold
|
|
||||||
shape_filepath: cyan
|
|
||||||
shape_flag: blue_bold
|
|
||||||
shape_float: purple_bold
|
|
||||||
# shapes are used to change the cli syntax highlighting
|
|
||||||
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b}
|
|
||||||
shape_globpattern: cyan_bold
|
|
||||||
shape_int: purple_bold
|
|
||||||
shape_internalcall: cyan_bold
|
|
||||||
shape_list: cyan_bold
|
|
||||||
shape_literal: blue
|
|
||||||
shape_matching_brackets: { attr: u }
|
|
||||||
shape_nothing: light_cyan
|
|
||||||
shape_operator: yellow
|
|
||||||
shape_or: purple_bold
|
|
||||||
shape_pipe: purple_bold
|
|
||||||
shape_range: yellow_bold
|
|
||||||
shape_record: cyan_bold
|
|
||||||
shape_redirection: purple_bold
|
|
||||||
shape_signature: green_bold
|
|
||||||
shape_string: green
|
|
||||||
shape_string_interpolation: cyan_bold
|
|
||||||
shape_table: blue_bold
|
|
||||||
shape_variable: purple
|
|
||||||
}
|
|
||||||
|
|
||||||
# External completer example
|
|
||||||
# let carapace_completer = {|spans|
|
|
||||||
# carapace $spans.0 nushell $spans | from json
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|
||||||
# The default config record. This is where much of your global configuration is setup.
|
|
||||||
$env.config = {
|
|
||||||
ls: {
|
|
||||||
use_ls_colors: true # use the LS_COLORS environment variable to colorize output
|
|
||||||
clickable_links: true # enable or disable clickable links. Your terminal has to support links.
|
|
||||||
}
|
|
||||||
rm: {
|
|
||||||
always_trash: false # always act as if -t was given. Can be overridden with -p
|
|
||||||
}
|
|
||||||
table: {
|
|
||||||
mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
|
|
||||||
index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
|
|
||||||
trim: {
|
|
||||||
methodology: wrapping # wrapping or truncating
|
|
||||||
wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology
|
|
||||||
truncating_suffix: "..." # A suffix used by the 'truncating' methodology
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
explore: {
|
|
||||||
help_banner: false
|
|
||||||
exit_esc: true
|
|
||||||
|
|
||||||
command_bar_text: '#C4C9C6'
|
|
||||||
# command_bar: {fg: '#C4C9C6' bg: '#223311' }
|
|
||||||
|
|
||||||
status_bar_background: {fg: '#1D1F21' bg: '#C4C9C6' }
|
|
||||||
# status_bar_text: {fg: '#C4C9C6' bg: '#223311' }
|
|
||||||
|
|
||||||
highlight: {bg: 'yellow' fg: 'black' }
|
|
||||||
|
|
||||||
status: {
|
|
||||||
# warn: {bg: 'yellow', fg: 'blue'}
|
|
||||||
# error: {bg: 'yellow', fg: 'blue'}
|
|
||||||
# info: {bg: 'yellow', fg: 'blue'}
|
|
||||||
}
|
|
||||||
|
|
||||||
try: {
|
|
||||||
# border_color: 'red'
|
|
||||||
# highlighted_color: 'blue'
|
|
||||||
|
|
||||||
# reactive: false
|
|
||||||
}
|
|
||||||
|
|
||||||
table: {
|
|
||||||
split_line: '#404040'
|
|
||||||
|
|
||||||
cursor: true
|
|
||||||
|
|
||||||
line_index: true
|
|
||||||
line_shift: true
|
|
||||||
line_head_top: true
|
|
||||||
line_head_bottom: true
|
|
||||||
|
|
||||||
show_head: true
|
|
||||||
show_index: true
|
|
||||||
|
|
||||||
# selected_cell: {fg: 'white', bg: '#777777'}
|
|
||||||
# selected_row: {fg: 'yellow', bg: '#C1C2A3'}
|
|
||||||
# selected_column: blue
|
|
||||||
|
|
||||||
# padding_column_right: 2
|
|
||||||
# padding_column_left: 2
|
|
||||||
|
|
||||||
# padding_index_left: 2
|
|
||||||
# padding_index_right: 1
|
|
||||||
}
|
|
||||||
|
|
||||||
config: {
|
|
||||||
cursor_color: {bg: 'yellow' fg: 'black' }
|
|
||||||
|
|
||||||
# border_color: white
|
|
||||||
# list_color: green
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
history: {
|
|
||||||
max_size: 10000 # Session has to be reloaded for this to take effect
|
|
||||||
sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
|
|
||||||
file_format: "sqlite" # "sqlite" or "plaintext"
|
|
||||||
isolation: true
|
|
||||||
}
|
|
||||||
completions: {
|
|
||||||
case_sensitive: false # set to true to enable case-sensitive completions
|
|
||||||
quick: true # set this to false to prevent auto-selecting completions when only one remains
|
|
||||||
partial: true # set this to false to prevent partial filling of the prompt
|
|
||||||
algorithm: "fuzzy" # prefix or fuzzy
|
|
||||||
external: {
|
|
||||||
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
|
|
||||||
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
|
|
||||||
# completer: $external_completer
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filesize: {
|
|
||||||
metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard)
|
|
||||||
format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto
|
|
||||||
}
|
|
||||||
cursor_shape: {
|
|
||||||
emacs: line # block, underscore, line (line is the default)
|
|
||||||
vi_insert: block # block, underscore, line (block is the default)
|
|
||||||
vi_normal: underscore # block, underscore, line (underscore is the default)
|
|
||||||
}
|
|
||||||
color_config: $dark_theme # if you want a light theme, replace `$dark_theme` to `$light_theme`
|
|
||||||
use_grid_icons: true
|
|
||||||
footer_mode: "25" # always, never, number_of_rows, auto
|
|
||||||
float_precision: 2 # the precision for displaying floats in tables
|
|
||||||
# buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL
|
|
||||||
use_ansi_coloring: true
|
|
||||||
edit_mode: vi # emacs, vi
|
|
||||||
shell_integration: true # enables terminal markers and a workaround to arrow keys stop working issue
|
|
||||||
# true or false to enable or disable the welcome banner at startup
|
|
||||||
show_banner: false
|
|
||||||
render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt.
|
|
||||||
|
|
||||||
hooks: {
|
|
||||||
pre_prompt: [{
|
|
||||||
null # replace with source code to run before the prompt is shown
|
|
||||||
}]
|
|
||||||
pre_execution: [{
|
|
||||||
null # replace with source code to run before the repl input is run
|
|
||||||
}]
|
|
||||||
env_change: {
|
|
||||||
PWD: [{|before, after|
|
|
||||||
null # replace with source code to run if the PWD environment is different since the last repl input
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
display_output: {
|
|
||||||
if (term size).columns >= 100 { table -e } else { table }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
menus: [
|
|
||||||
# Configuration for default nushell menus
|
|
||||||
# Note the lack of source parameter
|
|
||||||
{
|
|
||||||
name: completion_menu
|
|
||||||
only_buffer_difference: false
|
|
||||||
marker: "| "
|
|
||||||
type: {
|
|
||||||
layout: columnar
|
|
||||||
columns: 4
|
|
||||||
col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
|
|
||||||
col_padding: 2
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: history_menu
|
|
||||||
only_buffer_difference: true
|
|
||||||
marker: "? "
|
|
||||||
type: {
|
|
||||||
layout: list
|
|
||||||
page_size: 10
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: help_menu
|
|
||||||
only_buffer_difference: true
|
|
||||||
marker: "? "
|
|
||||||
type: {
|
|
||||||
layout: description
|
|
||||||
columns: 4
|
|
||||||
col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
|
|
||||||
col_padding: 2
|
|
||||||
selection_rows: 4
|
|
||||||
description_rows: 10
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
}
|
|
||||||
# Example of extra menus created using a nushell source
|
|
||||||
# Use the source field to create a list of records that populates
|
|
||||||
# the menu
|
|
||||||
{
|
|
||||||
name: commands_menu
|
|
||||||
only_buffer_difference: false
|
|
||||||
marker: "# "
|
|
||||||
type: {
|
|
||||||
layout: columnar
|
|
||||||
columns: 4
|
|
||||||
col_width: 20
|
|
||||||
col_padding: 2
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
source: { |buffer, position|
|
|
||||||
$nu.scope.commands
|
|
||||||
| where name =~ $buffer
|
|
||||||
| each { |it| {value: $it.name description: $it.usage} }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: vars_menu
|
|
||||||
only_buffer_difference: true
|
|
||||||
marker: "# "
|
|
||||||
type: {
|
|
||||||
layout: list
|
|
||||||
page_size: 10
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
source: { |buffer, position|
|
|
||||||
$nu.scope.vars
|
|
||||||
| where name =~ $buffer
|
|
||||||
| sort-by name
|
|
||||||
| each { |it| {value: $it.name description: $it.type} }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: commands_with_description
|
|
||||||
only_buffer_difference: true
|
|
||||||
marker: "# "
|
|
||||||
type: {
|
|
||||||
layout: description
|
|
||||||
columns: 4
|
|
||||||
col_width: 20
|
|
||||||
col_padding: 2
|
|
||||||
selection_rows: 4
|
|
||||||
description_rows: 10
|
|
||||||
}
|
|
||||||
style: {
|
|
||||||
text: green
|
|
||||||
selected_text: green_reverse
|
|
||||||
description_text: yellow
|
|
||||||
}
|
|
||||||
source: { |buffer, position|
|
|
||||||
$nu.scope.commands
|
|
||||||
| where name =~ $buffer
|
|
||||||
| each { |it| {value: $it.name description: $it.usage} }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
keybindings: [
|
|
||||||
{
|
|
||||||
name: completion_menu
|
|
||||||
modifier: none
|
|
||||||
keycode: tab
|
|
||||||
mode: [emacs vi_normal vi_insert]
|
|
||||||
event: {
|
|
||||||
until: [
|
|
||||||
{ send: menu name: completion_menu }
|
|
||||||
{ send: menunext }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: completion_previous
|
|
||||||
modifier: shift
|
|
||||||
keycode: backtab
|
|
||||||
mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list
|
|
||||||
event: { send: menuprevious }
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: history_menu
|
|
||||||
modifier: control
|
|
||||||
keycode: char_r
|
|
||||||
mode: emacs
|
|
||||||
event: { send: menu name: history_menu }
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: next_page
|
|
||||||
modifier: control
|
|
||||||
keycode: char_x
|
|
||||||
mode: emacs
|
|
||||||
event: { send: menupagenext }
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: undo_or_previous_page
|
|
||||||
modifier: control
|
|
||||||
keycode: char_z
|
|
||||||
mode: emacs
|
|
||||||
event: {
|
|
||||||
until: [
|
|
||||||
{ send: menupageprevious }
|
|
||||||
{ edit: undo }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: yank
|
|
||||||
modifier: control
|
|
||||||
keycode: char_y
|
|
||||||
mode: emacs
|
|
||||||
event: {
|
|
||||||
until: [
|
|
||||||
{edit: pastecutbufferafter}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: unix-line-discard
|
|
||||||
modifier: control
|
|
||||||
keycode: char_u
|
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
|
||||||
event: {
|
|
||||||
until: [
|
|
||||||
{edit: cutfromlinestart}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: kill-line
|
|
||||||
modifier: control
|
|
||||||
keycode: char_k
|
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
|
||||||
event: {
|
|
||||||
until: [
|
|
||||||
{edit: cuttolineend}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
# Keybindings used to trigger the user defined menus
|
|
||||||
{
|
|
||||||
name: commands_menu
|
|
||||||
modifier: control
|
|
||||||
keycode: char_t
|
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
|
||||||
event: { send: menu name: commands_menu }
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: vars_menu
|
|
||||||
modifier: alt
|
|
||||||
keycode: char_o
|
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
|
||||||
event: { send: menu name: vars_menu }
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name: commands_with_description
|
|
||||||
modifier: control
|
|
||||||
keycode: char_s
|
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
|
||||||
event: { send: menu name: commands_with_description }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
source ~/.cache/carapace/init.nu
|
|
||||||
source starship.nu
|
|
||||||
source zoxide.nu
|
|
||||||
source alias.nu
|
|
||||||
source cargo.nu
|
|
||||||
use conda.nu
|
|
||||||
macchina
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
# Nushell Environment Config File
|
|
||||||
|
|
||||||
def create_left_prompt [] {
|
|
||||||
let path_segment = if (is-admin) {
|
|
||||||
$"(ansi red_bold)($env.PWD)"
|
|
||||||
} else {
|
|
||||||
$"(ansi green_bold)($env.PWD)"
|
|
||||||
}
|
|
||||||
|
|
||||||
$path_segment
|
|
||||||
}
|
|
||||||
|
|
||||||
def create_right_prompt [] {
|
|
||||||
let time_segment = ([
|
|
||||||
(date now | format date '%m/%d/%Y %r')
|
|
||||||
] | str join)
|
|
||||||
|
|
||||||
$time_segment
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use nushell functions to define your right and left prompt
|
|
||||||
$env.PROMPT_COMMAND = { create_left_prompt }
|
|
||||||
$env.PROMPT_COMMAND_RIGHT = { create_right_prompt }
|
|
||||||
|
|
||||||
# The prompt indicators are environmental variables that represent
|
|
||||||
# the state of the prompt
|
|
||||||
$env.PROMPT_INDICATOR = { "〉" }
|
|
||||||
$env.PROMPT_INDICATOR_VI_INSERT = { ": " }
|
|
||||||
$env.PROMPT_INDICATOR_VI_NORMAL = { "〉" }
|
|
||||||
$env.PROMPT_MULTILINE_INDICATOR = { "::: " }
|
|
||||||
|
|
||||||
# Specifies how environment variables are:
|
|
||||||
# - converted from a string to a value on Nushell startup (from_string)
|
|
||||||
# - converted from a value back to a string when running external commands (to_string)
|
|
||||||
# Note: The conversions happen *after* config.nu is loaded
|
|
||||||
$env.ENV_CONVERSIONS = {
|
|
||||||
"PATH": {
|
|
||||||
from_string: { |s| $s | split row (char esep) | path expand -n }
|
|
||||||
to_string: { |v| $v | path expand -n | str join (char esep) }
|
|
||||||
}
|
|
||||||
"Path": {
|
|
||||||
from_string: { |s| $s | split row (char esep) | path expand -n }
|
|
||||||
to_string: { |v| $v | path expand -n | str join (char esep) }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Directories to search for scripts when calling source or use
|
|
||||||
#
|
|
||||||
# By default, <nushell-config-dir>/scripts is added
|
|
||||||
$env.NU_LIB_DIRS = [
|
|
||||||
($nu.config-path | path dirname | path join 'scripts')
|
|
||||||
($nu.config-path | path dirname | path join 'conf.d')
|
|
||||||
]
|
|
||||||
|
|
||||||
# Directories to search for plugin binaries when calling register
|
|
||||||
#
|
|
||||||
# By default, <nushell-config-dir>/plugins is added
|
|
||||||
$env.NU_PLUGIN_DIRS = [
|
|
||||||
($nu.config-path | path dirname | path join 'plugins')
|
|
||||||
]
|
|
||||||
|
|
||||||
load-env (fnm env --shell bash | lines | str replace 'export ' '' | str replace -a '"' '' | split column = | rename name value | where name != "FNM_ARCH" and name != "PATH" | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value })
|
|
||||||
|
|
||||||
# To add entries to PATH (on Windows you might use Path), you can use the following pattern:
|
|
||||||
# $env.PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
|
|
||||||
|
|
||||||
# macOS ARM64 (Apple Silicon)
|
|
||||||
let os = (sys | get host.long_os_version)
|
|
||||||
if ($os | str contains MacOS) {
|
|
||||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '/opt/homebrew/bin')
|
|
||||||
}
|
|
||||||
# Linux
|
|
||||||
if ($os | str contains Linux) {
|
|
||||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '/home/linuxbrew/.linuxbrew/bin')
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.PATH = ($env.PATH | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|
|
||||||
$env.EDITOR = "nvim"
|
|
||||||
$env.VISUAL = "nvim"
|
|
||||||
|
|
||||||
if ($os | str contains Windows) {
|
|
||||||
} else {
|
|
||||||
$env.PATH = ($env.PATH | prepend $"($env.HOME)/local/bin")
|
|
||||||
$env.PATH = ($env.PATH | prepend $"($env.HOME)/.local/vcpkg")
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
|
|
||||||
mkdir ~/.cache/carapace
|
|
||||||
carapace _carapace nushell | save --force ~/.cache/carapace/init.nu
|
|
||||||
|
|
||||||
2
config/nvim/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
plugin/*
|
|
||||||
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
local vim = vim;
|
|
||||||
-- autocmd BufWinLeave,BufLeave,BufWritePost,BufHidden,QuitPre ?* nested mkview!
|
|
||||||
-- autocmd BufWinEnter ?* silent! loadview
|
|
||||||
-- vim.api.nvim_exec([[
|
|
||||||
-- augroup AutoSaveGroup
|
|
||||||
-- autocmd!
|
|
||||||
-- autocmd BufWritePost ?* nested mkview!
|
|
||||||
-- autocmd BufRead * silent! loadview
|
|
||||||
-- augroup end
|
|
||||||
-- ]], false)
|
|
||||||
|
|
||||||
vim.o.number = true
|
|
||||||
vim.o.relativenumber = true
|
|
||||||
vim.o.timeoutlen = 700
|
|
||||||
vim.o.guifont = 'Hasklug Nerd Font Mono,Hack Nerd Font,NotoEmoji Nerd Font:h11'
|
|
||||||
|
|
||||||
vim.o.undodir = vim.fn.stdpath('cache') .. '/undodir'
|
|
||||||
vim.o.undofile = true
|
|
||||||
|
|
||||||
vim.o.autoread = true
|
|
||||||
vim.o.foldmethod = 'indent'
|
|
||||||
|
|
||||||
vim.o.showmode = false
|
|
||||||
vim.o.showtabline = 0
|
|
||||||
vim.o.autoindent = true
|
|
||||||
|
|
||||||
vim.o.tabstop = 4
|
|
||||||
vim.o.softtabstop = 4
|
|
||||||
|
|
||||||
vim.o.shiftwidth = 4
|
|
||||||
vim.bo.shiftwidth = 4
|
|
||||||
|
|
||||||
vim.o.expandtab = true
|
|
||||||
vim.o.hidden = true
|
|
||||||
vim.o.ignorecase = true
|
|
||||||
vim.o.smartcase = true
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
-- No clue why window scoped
|
|
||||||
vim.wo.signcolumn = 'yes'
|
|
||||||
vim.opt.list = true
|
|
||||||
-- vim.o.colorcolumn = '+1'
|
|
||||||
-- vim.o.textwidth = 120
|
|
||||||
|
|
||||||
-- vim.opt.listchars:append("eol:↴")
|
|
||||||
-- vim.diagnostic.config({
|
|
||||||
-- virtual_text = false,
|
|
||||||
-- })
|
|
||||||
|
|
||||||
|
|
||||||
vim.o.wrap = false
|
|
||||||
|
|
||||||
-- vim.o.modifiable = true
|
|
||||||
-- vim.bo.modifiable = true
|
|
||||||
vim.g.dashboard_default_executive = 'fzf'
|
|
||||||
vim.g.python_highlight_all = 1
|
|
||||||
|
|
||||||
vim.g.suda_smart_edit = 1
|
|
||||||
|
|
||||||
|
|
||||||
-- vim.g.test = {
|
|
||||||
-- default = {
|
|
||||||
-- default = {
|
|
||||||
-- complete_items = { 'lsp', 'snippet' },
|
|
||||||
-- mode = 'file',
|
|
||||||
-- },
|
|
||||||
-- comment = {},
|
|
||||||
-- string = { complete_items = { 'path' } },
|
|
||||||
-- },
|
|
||||||
-- rust = { { complete_items = { 'ts' } } },
|
|
||||||
-- }
|
|
||||||
|
|
||||||
|
|
||||||
vim.o.completeopt = 'menu,menuone,noselect'
|
|
||||||
|
|
||||||
-- vim.g.coq_settings = {
|
|
||||||
-- auto_start = 'shut-up',
|
|
||||||
-- weights = {
|
|
||||||
-- prefix_matches = 4
|
|
||||||
-- },
|
|
||||||
-- clients = {
|
|
||||||
-- lsp = {
|
|
||||||
-- weight_adjust = 2
|
|
||||||
-- },
|
|
||||||
-- -- buffers = {
|
|
||||||
-- -- -- weight_adjust = -0.5
|
|
||||||
-- -- },
|
|
||||||
-- -- snippets = {
|
|
||||||
-- -- -- weight_adjust = -0.1
|
|
||||||
-- -- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- vim.g.rooter_manual_only = 1
|
|
||||||
|
|
||||||
-- local fnm_dir = os.getenv("FNM_DIR") or "/Users/fs0c131y/Library/Application Support/fnm"
|
|
||||||
|
|
||||||
-- if vim.fn.has('win32') == 1 then
|
|
||||||
-- vim.g.copilot_node_command = fnm_dir .. "/node-versions/v17.9.1/installation/node.exe"
|
|
||||||
-- else
|
|
||||||
-- vim.g.copilot_node_command = fnm_dir .. "/node-versions/v17.9.1/installation/bin/node"
|
|
||||||
-- end
|
|
||||||
vim.g.copilot_node_command = "node"
|
|
||||||
|
|
||||||
vim.g.copilot_no_tab_map = true
|
|
||||||
|
|
||||||
require('keymaps')
|
|
||||||
require('plugins')
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
{
|
|
||||||
"LuaSnip": { "branch": "master", "commit": "04266a90ff213367c4159d78f3a60aa03d23ef8a" },
|
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
|
||||||
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
|
||||||
"cmp-git": { "branch": "main", "commit": "8d8993680d627c8f13bd85094eba84604107dbdd" },
|
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
|
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
|
||||||
"comfortable-motion.vim": { "branch": "master", "commit": "e20aeafb07c6184727b29f7674530150f7ab2036" },
|
|
||||||
"copilot-cmp": { "branch": "master", "commit": "72fbaa03695779f8349be3ac54fa8bd77eed3ee3" },
|
|
||||||
"copilot.lua": { "branch": "master", "commit": "03f825956ec49e550d07875d867ea6e7c4dc8c00" },
|
|
||||||
"d2-vim": { "branch": "master", "commit": "981c87dccb63df2887cc41b96e84bf550f736c57" },
|
|
||||||
"diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
|
|
||||||
"fidget.nvim": { "branch": "main", "commit": "ad8873c16faa123fe3f9fd6539c41dfb0f97a9e9" },
|
|
||||||
"formatter.nvim": { "branch": "master", "commit": "cb4778b8432f1ae86dae4634c0b611cb269a4c2f" },
|
|
||||||
"galaxyline.nvim": { "branch": "main", "commit": "4d4f5fc8e20a10824117e5beea7ec6e445466a8f" },
|
|
||||||
"git-conflict.nvim": { "branch": "main", "commit": "4c8e252b87d54d944c1e56bfb477f78b6fdaf661" },
|
|
||||||
"glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
|
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "821a7acd88587d966f7e464b0b3031dfe7f5680c" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
|
|
||||||
"lazygit.nvim": { "branch": "main", "commit": "1e08e3f5ac1152339690140e61a4a32b3bdc7de5" },
|
|
||||||
"lsp-status.nvim": { "branch": "master", "commit": "54f48eb5017632d81d0fd40112065f1d062d0629" },
|
|
||||||
"lspsaga.nvim": { "branch": "main", "commit": "2198c07124bef27ef81335be511c8abfd75db933" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "fe4cce44dec93c69be17dad79b21de867dde118a" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
|
|
||||||
"mini.nvim": { "branch": "main", "commit": "b5645ac6eefce8e7af9d7dd4e5e296a81cba8a10" },
|
|
||||||
"neorg": { "branch": "main", "commit": "bd12dacc9cf561cbffc8d6f8f4b76aa9d734665b" },
|
|
||||||
"no-neck-pain.nvim": { "branch": "main", "commit": "7ab539aaa083e92ef438d4cdc0261d8661916f1d" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
|
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
|
|
||||||
"nvim-dap": { "branch": "master", "commit": "3b4bdea2c0e9ed356d8cffbf974f3d0af891bbea" },
|
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "d845ebd798ad1cf30aa4abd4c4eff795cdcfdd4f" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "c656fe5a58b9eae474f61d294648a897d53639cc" },
|
|
||||||
"nvim-nu": { "branch": "main", "commit": "f45f36a97fb0ea6e39f08cc2fac7a2fb3dc3999b" },
|
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "5a5cabd712b8bd14768c72034479fb9cd176beb6" },
|
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "f33905bf5aec67e59a14d2cc0e67d80ac5aa5bd8" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "7f30f2da3c3641841ceb0e2c150281f624445e8f" },
|
|
||||||
"octo.nvim": { "branch": "master", "commit": "0d0abffed42b0e77aff286279fb7c958f1f79ce6" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
|
|
||||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
|
||||||
"rest.nvim": { "branch": "main", "commit": "9741f827bd88b588e5136d67c7963e1904f8f1f7" },
|
|
||||||
"ron.vim": { "branch": "master", "commit": "f749e543975a82e8dd9a6e7df9600a1c098ae800" },
|
|
||||||
"rustaceanvim": { "branch": "master", "commit": "bc8c4b8f7606d5b7c067cd8369e25c1a7ff77bd0" },
|
|
||||||
"sonokai": { "branch": "master", "commit": "a62656a798043f3c6b603efa98d4de2da89c72b2" },
|
|
||||||
"ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
|
|
||||||
"suda.vim": { "branch": "master", "commit": "8b0fc3711760195aba104e2d190cff9af8267052" },
|
|
||||||
"symbols-outline.nvim": { "branch": "master", "commit": "564ee65dfc9024bdde73a6621820866987cbb256" },
|
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
|
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
|
||||||
"telescope.nvim": { "branch": "master", "commit": "eb88dc6434194bd8eebfcc6ade5dd36e850849ce" },
|
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "833d8dd8b07eeda37a09e99460f72a02616935cb" },
|
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
|
||||||
"tree-sitter-just": { "branch": "main", "commit": "4f5d53b52a65771f9695df3f1a294d5c80b916fb" },
|
|
||||||
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
|
|
||||||
"vim-abolish": { "branch": "master", "commit": "dcbfe065297d31823561ba787f51056c147aa682" },
|
|
||||||
"vim-commentary": { "branch": "master", "commit": "f67e3e67ea516755005e6cccb178bc8439c6d402" },
|
|
||||||
"vim-fugitive": { "branch": "master", "commit": "011cf4fcb93a9649ffc6dcdff56ef948f5d0f7cc" },
|
|
||||||
"vim-mergetool": { "branch": "master", "commit": "0275a85256ad173e3cde586d54f66566c01b607f" },
|
|
||||||
"vim-repeat": { "branch": "master", "commit": "24afe922e6a05891756ecf331f39a1f6743d3d5a" },
|
|
||||||
"vim-speeddating": { "branch": "master", "commit": "5a36fd29df63ea3f65562bd2bb837be48a5ec90b" },
|
|
||||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
|
||||||
"vim-vinegar": { "branch": "master", "commit": "bb1bcddf43cfebe05eb565a84ab069b357d0b3d6" },
|
|
||||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"diagnostics.globals": [
|
|
||||||
"vim"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
local vim = vim
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
vim.cmd.colorscheme "catppuccin"
|
|
||||||
-- vim.cmd [[colorscheme sonokai]]
|
|
||||||
-- require("catppuccin").setup({
|
|
||||||
-- -- flavour = "mocha",
|
|
||||||
-- background = { -- :h background
|
|
||||||
-- light = "latte",
|
|
||||||
-- dark = "mocha",
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
local colors = {
|
|
||||||
black = '#181819',
|
|
||||||
bg0 = '#2c2e34',
|
|
||||||
bg1 = '#30323a',
|
|
||||||
bg2 = '#363944',
|
|
||||||
bg3 = '#3b3e48',
|
|
||||||
bg4 = '#414550',
|
|
||||||
bg_red = '#ff6077',
|
|
||||||
diff_red = '#55393d',
|
|
||||||
bg_green = '#a7df78',
|
|
||||||
diff_green = '#394634',
|
|
||||||
bg_blue = '#85d3f2',
|
|
||||||
diff_blue = '#354157',
|
|
||||||
diff_yellow = '#4e432f',
|
|
||||||
fg = '#e2e2e3',
|
|
||||||
red = '#fc5d7c',
|
|
||||||
orange = '#f39660',
|
|
||||||
yellow = '#e7c664',
|
|
||||||
green = '#9ed072',
|
|
||||||
blue = '#76cce0',
|
|
||||||
purple = '#b39df3',
|
|
||||||
grey = '#7f8490',
|
|
||||||
none = 'NONE',
|
|
||||||
}
|
|
||||||
|
|
||||||
-- vim.cmd.colorscheme "catppuccin"
|
|
||||||
-- Override some colors
|
|
||||||
-- vim.cmd('hi Normal guibg=' .. colors.black)
|
|
||||||
-- vim.cmd('hi NormalNC guibg=' .. colors.black)
|
|
||||||
-- vim.cmd('hi EndOfBuffer guibg=' .. colors.black)
|
|
||||||
-- -- vim.cmd('hi ToggleTerm1Buffer guibg='..colors.black)
|
|
||||||
-- vim.cmd('hi NonText guibg=' .. colors.black)
|
|
||||||
-- vim.cmd('hi link LspInlayHint Comment')
|
|
||||||
require('catppuccin').setup({
|
|
||||||
flavour = "mocha",
|
|
||||||
})
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
---@diagnostic disable: redefined-local
|
|
||||||
local vim = vim
|
|
||||||
vim.api.nvim_set_keymap('', '<Space>', '<Nop>', { noremap = true, silent = true })
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.g.maplocalleader = " "
|
|
||||||
-- nnoremap <silent> <F5> <Cmd>lua require'dap'.continue()<CR>
|
|
||||||
-- nnoremap <silent> <F10> <Cmd>lua require'dap'.step_over()<CR>
|
|
||||||
-- nnoremap <silent> <F11> <Cmd>lua require'dap'.step_into()<CR>
|
|
||||||
-- nnoremap <silent> <F12> <Cmd>lua require'dap'.step_out()<CR>
|
|
||||||
-- nnoremap <silent> <Leader>b <Cmd>lua require'dap'.toggle_breakpoint()<CR>
|
|
||||||
-- nnoremap <silent> <Leader>B <Cmd>lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>
|
|
||||||
-- nnoremap <silent> <Leader>lp <Cmd>lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<CR>
|
|
||||||
-- nnoremap <silent> <Leader>dr <Cmd>lua require'dap'.repl.open()<CR>
|
|
||||||
-- nnoremap <silent> <Leader>dl <Cmd>lua require'dap'.run_last()<CR>
|
|
||||||
|
|
||||||
|
|
||||||
local options = { noremap = true, silent = true }
|
|
||||||
local normal_mode_maps = {
|
|
||||||
-- toggles
|
|
||||||
{ key = '<F2>', map = [[<cmd>set number! relativenumber!<cr>]] },
|
|
||||||
|
|
||||||
-- dap
|
|
||||||
{ key = '<F5>', map = [[<cmd>lua require'dap'.continue()<cr>]] },
|
|
||||||
{ key = '<F10>', map = [[<cmd>lua require'dap'.step_over()<cr>]] },
|
|
||||||
{ key = '<F11>', map = [[<cmd>lua require'dap'.step_into()<cr>]] },
|
|
||||||
{ key = '<F12>', map = [[<cmd>lua require'dap'.step_out()<cr>]] },
|
|
||||||
{ key = '<Leader>bb', map = [[<cmd>lua require'dap'.toggle_breakpoint()<cr>]] },
|
|
||||||
{ key = '<Leader>B', map = [[<cmd>lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<cr>]] },
|
|
||||||
{
|
|
||||||
key = '<Leader>lp',
|
|
||||||
map = [[<cmd>lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<cr>]]
|
|
||||||
},
|
|
||||||
{ key = '<Leader>dr', map = [[<cmd>lua require'dap'.repl.open()<cr>]] },
|
|
||||||
{ key = '<Leader>dl', map = [[<cmd>lua require'dap'.run_last()<cr>]] },
|
|
||||||
|
|
||||||
-- navigation
|
|
||||||
{ key = '<leader><leader>', map = [[<c-^>]] },
|
|
||||||
{ key = '<leader>n', map = [[<cmd>bnext<cr>]] },
|
|
||||||
{ key = '<leader>p', map = [[<cmd>bprev<cr>]] },
|
|
||||||
{ key = '<leader>q', map = [[<cmd>bw<cr>]] },
|
|
||||||
{ key = '<leader>v', map = [[<cmd>CHADopen<cr>]] },
|
|
||||||
|
|
||||||
-- " Find files using Telescope command-line sugar.
|
|
||||||
{ key = '<leader>ff', map = [[<cmd>lua require('telescope.builtin').find_files()<cr>]] },
|
|
||||||
{ key = '<leader>gg', map = [[<cmd>lua require('telescope.builtin').live_grep()<cr>]] },
|
|
||||||
{ key = '<leader>;', map = [[<cmd>lua require('telescope.builtin').buffers()<cr>]] },
|
|
||||||
{ key = '<leader>fh', map = [[<cmd>lua require('telescope.builtin').help_tags()<cr>]] },
|
|
||||||
{ key = '<leader>gB', map = [[<cmd>Git blame<cr>]] },
|
|
||||||
{ key = '<leader>rd', map = [[<cmd>RustDebuggables<cr>]] },
|
|
||||||
-- { key = '<leader>rr', map = vim.cmd.RustLsp('runnables') },
|
|
||||||
{ key = 'vff', map = [[<cmd>vertical Gdiffsplit<cr>]] },
|
|
||||||
-- { key = 'vff!', map = [[<cmd>vertical Gdiffsplit!<cr>]] },
|
|
||||||
-- { key = 'ssr', map = [[<cmd>lua require'rust-tools'.ssr.ssr(query)<cr>]] },
|
|
||||||
{ key = 'ssr', map = [[<cmd>lua require("ssr").open()<cr>]] },
|
|
||||||
{ key = '<C-\\>', map = [[<cmd>ToggleTerm<cr>]] },
|
|
||||||
|
|
||||||
-- Session
|
|
||||||
{ key = '<leader>ss', map = [[<cmd>SessionSave<cr>]] },
|
|
||||||
{ key = '<leader>sl', map = [[<cmd>SessionLoad<cr>]] },
|
|
||||||
|
|
||||||
-- lsp
|
|
||||||
-- { key = 'K', map = [[<cmd>lua vim.lsp.buf.hover()<cr>]] },
|
|
||||||
-- vim.keymap.set('n', 'K', '<cmd>Lspsaga hover_doc')
|
|
||||||
{ key = 'K', map = [[<cmd>Lspsaga hover_doc<cr>]] },
|
|
||||||
{ key = '<C-k>', map = [[<cmd>lua vim.lsp.buf.definition()<cr>]] },
|
|
||||||
{ key = 'gi', map = [[<cmd>lua vim.lsp.buf.implementation()<cr>]] },
|
|
||||||
{ key = '<leader>o', map = [[<cmd>TroubleToggle<cr>]] },
|
|
||||||
{ key = '<leader>dd', map = [[<cmd>lua require'dapui'.toggle()<cr>]] },
|
|
||||||
|
|
||||||
-- { key = '<leader>a', map = [[<cmd>lua vim.lsp.buf.document_highlight()<cr>]] },
|
|
||||||
-- { key = '<leader>c', map = [[<cmd>lua vim.lsp.buf.clear_references()<cr>]] },
|
|
||||||
{ key = '<leader>"', map = [["+]] },
|
|
||||||
{ key = 'F', map = [[<cmd>lua vim.lsp.buf.format { async = true }<cr>]] },
|
|
||||||
{ key = '<C-W>%', map = [[<cmd>vsplit<cr>]] },
|
|
||||||
{ key = '<C-W>"', map = [[<cmd>split<cr>]] },
|
|
||||||
{ key = '<C-l>', map = [[<cmd>:SymbolsOutline<cr>]] },
|
|
||||||
{ key = '<leader>a', map = [[<cmd>:lua vim.lsp.buf.code_action()<cr>]] },
|
|
||||||
|
|
||||||
-- Other
|
|
||||||
{ key = '<leader>m', map = [[<cmd>silent !mpcfzf<cr>]] },
|
|
||||||
-- { key = '<leader>l',
|
|
||||||
-- map = [[<cmd>lua require('telescope.builtin').lsp_references({include_current_line = true, fname_width = 40})<cr>]] },
|
|
||||||
{
|
|
||||||
key = '<leader>l',
|
|
||||||
map = [[<cmd>Lspsaga finder<cr>]]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = '<leader>i',
|
|
||||||
map = [[<cmd>lua require('telescope.builtin').lsp_incoming_calls({fname_width = 40})<cr>]]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = '<leader>e',
|
|
||||||
map = [[<Plug>RestNvim<cr>]]
|
|
||||||
},
|
|
||||||
{ key = '<leader>u', map = [[<cmd>Telescope undo<cr>]] },
|
|
||||||
{ key = '<C-c>', map = [[<cmd>Telescope commands<cr>]] },
|
|
||||||
-- { key = '<ScrollWheelDown>', map = [[<cmd>call comfortable_motion#flick(40)<cr>]], options = { silent = true } },
|
|
||||||
-- { key = '<ScrollWheelUp>', map = [[<cmd>call comfortable_motion#flick(-40)<cr>]], options = { silent = true } },
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
local insert_mode_maps = {
|
|
||||||
{ key = '<C-j>', map = '<ESC>' },
|
|
||||||
-- { key = "<C-l>", map = 'copilot#Accept("<CR>")', options = { silent = true, expr = true } },
|
|
||||||
-- { key = "<C-m>", map = 'copilot#Accept("<CR>")', options = { silent = true, expr = true } },
|
|
||||||
-- { key = '<C-c>', map = [[<cmd>Telescope commands<cr>]] },
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for idx = 1, #normal_mode_maps do
|
|
||||||
if normal_mode_maps[idx].options then
|
|
||||||
local options = normal_mode_maps[idx].options
|
|
||||||
vim.api.nvim_set_keymap('n', normal_mode_maps[idx].key, normal_mode_maps[idx].map, options)
|
|
||||||
else
|
|
||||||
vim.api.nvim_set_keymap('n', normal_mode_maps[idx].key, normal_mode_maps[idx].map, options)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for idx = 1, #insert_mode_maps do
|
|
||||||
if insert_mode_maps[idx].options then
|
|
||||||
local options = insert_mode_maps[idx].options
|
|
||||||
vim.api.nvim_set_keymap('i', insert_mode_maps[idx].key, insert_mode_maps[idx].map, options)
|
|
||||||
else
|
|
||||||
vim.api.nvim_set_keymap('i', insert_mode_maps[idx].key, insert_mode_maps[idx].map, options)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
local lspconfig = require 'lspconfig'
|
|
||||||
local lspstatus = require 'lsp-status'
|
|
||||||
local lsp_zero = require'lsp-zero'
|
|
||||||
local cmp_nvim_lsp = require 'cmp_nvim_lsp'
|
|
||||||
|
|
||||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
|
||||||
|
|
||||||
lsp_zero.extend_lspconfig()
|
|
||||||
lsp_zero.on_attach(function(client, bufnr)
|
|
||||||
lsp_zero.default_keymaps({buffer = bufnr})
|
|
||||||
if client.server_capabilities.inlayHintProvider then
|
|
||||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
local lua_opts = lsp_zero.nvim_lua_ls()
|
|
||||||
lspconfig.lua_ls.setup(lua_opts)
|
|
||||||
lspconfig.nil_ls.setup({
|
|
||||||
settings = {
|
|
||||||
['nil'] = {
|
|
||||||
formatting = {
|
|
||||||
command = { "nixfmt" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
lspconfig.clangd.setup({})
|
|
||||||
@@ -1,361 +0,0 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
|
||||||
vim.fn.system({
|
|
||||||
"git",
|
|
||||||
"clone",
|
|
||||||
"--filter=blob:none",
|
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
|
||||||
"--branch=stable", -- latest stable release
|
|
||||||
lazypath,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
-- require("lazy").setup(plugins, opts)
|
|
||||||
-- if fn.empty(fn.glob(install_path)) > 0 then
|
|
||||||
-- fn.system({ 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path })
|
|
||||||
-- execute 'packadd packer.nvim'
|
|
||||||
-- end
|
|
||||||
|
|
||||||
-- local use = require('packer').use
|
|
||||||
|
|
||||||
return require('lazy').setup({
|
|
||||||
{
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
priority = 1000,
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
require('colorscheme')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ellisonleao/glow.nvim",
|
|
||||||
config = true,
|
|
||||||
cmd =
|
|
||||||
"Glow"
|
|
||||||
},
|
|
||||||
'samoshkin/vim-mergetool',
|
|
||||||
{
|
|
||||||
cmd = { "Format", "FormatWrite" },
|
|
||||||
'mhartington/formatter.nvim'
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
{ 'tpope/vim-commentary', lazy = false },
|
|
||||||
{
|
|
||||||
'tpope/vim-fugitive',
|
|
||||||
cmd = { "Git", "Gdiffsplit", "Gvdiffsplit", "Gedit", "Gread", "Gwrite",
|
|
||||||
"Ggrep", "Gbrowse", "GMove", "GDelete" }
|
|
||||||
},
|
|
||||||
{ 'tpope/vim-repeat', lazy = false },
|
|
||||||
{ 'tpope/vim-speeddating', lazy = false },
|
|
||||||
{ 'tpope/vim-surround', lazy = false },
|
|
||||||
{ 'tpope/vim-vinegar', lazy = false },
|
|
||||||
{ 'tpope/vim-abolish', lazy = false },
|
|
||||||
{ 'yuttie/comfortable-motion.vim', event = "BufEnter" },
|
|
||||||
{ 'rest-nvim/rest.nvim', event = "BufEnter" },
|
|
||||||
{ 'echasnovski/mini.nvim', version = '*' },
|
|
||||||
{
|
|
||||||
'folke/todo-comments.nvim',
|
|
||||||
event = "BufEnter",
|
|
||||||
config = function() require('todo-comments').setup() end,
|
|
||||||
},
|
|
||||||
-- {
|
|
||||||
-- 'github/copilot.vim',
|
|
||||||
-- event = "LspAttach",
|
|
||||||
-- cmd = "Copilot",
|
|
||||||
-- },
|
|
||||||
-- 'ggandor/leap.nvim',
|
|
||||||
-- {
|
|
||||||
-- 'sainnhe/sonokai',
|
|
||||||
-- lazy = false,
|
|
||||||
-- config = function()
|
|
||||||
-- require('colorscheme')
|
|
||||||
-- end
|
|
||||||
-- },
|
|
||||||
{ 'folke/which-key.nvim', config = function() require("which-key").setup() end, event = "BufEnter" },
|
|
||||||
{
|
|
||||||
'nvim-telescope/telescope.nvim',
|
|
||||||
cmd = "Telescope",
|
|
||||||
dependencies = { 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-ui-select.nvim',
|
|
||||||
'nvim-telescope/telescope-fzf-native.nvim' }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'NTBBloodbath/galaxyline.nvim',
|
|
||||||
branch = 'main',
|
|
||||||
lazy = false,
|
|
||||||
config = function() require('statusline') end,
|
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons' }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
|
||||||
-- build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
|
|
||||||
build = 'make',
|
|
||||||
config = function()
|
|
||||||
require('telescope').setup {
|
|
||||||
defaults = {
|
|
||||||
initial_mode = 'insert',
|
|
||||||
},
|
|
||||||
extensions = {
|
|
||||||
fzf = {
|
|
||||||
fuzzy = true, -- false will only do exact matching
|
|
||||||
override_generic_sorter = true, -- override the generic sorter
|
|
||||||
override_file_sorter = true, -- override the file sorter
|
|
||||||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
require('telescope').load_extension('fzf')
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{ 'lambdalisue/suda.vim', lazy = false },
|
|
||||||
{
|
|
||||||
'nvim-telescope/telescope-ui-select.nvim',
|
|
||||||
config = function()
|
|
||||||
require("telescope").load_extension("ui-select")
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{ 'norcalli/nvim-colorizer.lua', config = function() require 'colorizer'.setup() end },
|
|
||||||
{
|
|
||||||
'IndianBoy42/tree-sitter-just',
|
|
||||||
config = function()
|
|
||||||
require 'tree-sitter-just'.setup({})
|
|
||||||
end,
|
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
|
||||||
ft = "just"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'LhKipp/nvim-nu',
|
|
||||||
config = function()
|
|
||||||
require 'nu'.setup({
|
|
||||||
use_lsp_features = false,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
ft = "nu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'folke/trouble.nvim',
|
|
||||||
cmd = {
|
|
||||||
"Trouble",
|
|
||||||
"TroubleClose",
|
|
||||||
"TroubleToggle",
|
|
||||||
"TroubleRefresh",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
-- local actions = require("telescope.actions")
|
|
||||||
require("trouble").setup()
|
|
||||||
local trouble = require("trouble.providers.telescope")
|
|
||||||
local telescope = require("telescope")
|
|
||||||
telescope.setup {
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
n = { ["<c-t>"] = trouble.open_with_trouble },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'neovim/nvim-lspconfig',
|
|
||||||
cmd = "LspStart",
|
|
||||||
ft = { "rust", "toml", "lua", "c", "cpp", "markdown", "sql", "python", "go", "nix" },
|
|
||||||
config = function()
|
|
||||||
require("lsp")
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{ 'VonHeikemen/lsp-zero.nvim', lazy = false },
|
|
||||||
{ 'hrsh7th/cmp-nvim-lsp', lazy = false },
|
|
||||||
{ 'hrsh7th/cmp-buffer', lazy = false },
|
|
||||||
{ 'hrsh7th/cmp-path', lazy = false },
|
|
||||||
{ 'hrsh7th/cmp-cmdline', lazy = false },
|
|
||||||
{ 'L3MON4D3/LuaSnip' },
|
|
||||||
{ "nvim-treesitter/nvim-treesitter", lazy = false },
|
|
||||||
{ 'saadparwaiz1/cmp_luasnip' },
|
|
||||||
{
|
|
||||||
"zbirenbaum/copilot-cmp",
|
|
||||||
config = function()
|
|
||||||
require("copilot_cmp").setup()
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"petertriho/cmp-git",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function() require "cmp_git".setup() end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'hrsh7th/nvim-cmp',
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
local cmp = require("cmp")
|
|
||||||
cmp.setup({
|
|
||||||
view = {
|
|
||||||
entries = { name = 'custom', selection_order = 'near_cursor' }
|
|
||||||
},
|
|
||||||
snippet = {
|
|
||||||
expand = function(args)
|
|
||||||
require('luasnip').lsp_expand(args.body)
|
|
||||||
end
|
|
||||||
},
|
|
||||||
window = {
|
|
||||||
completion = cmp.config.window.bordered(),
|
|
||||||
documentation = cmp.config.window.bordered(),
|
|
||||||
},
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = "copilot", },
|
|
||||||
{ name = 'buffer' },
|
|
||||||
{ name = 'nvim_lsp' },
|
|
||||||
{ name = 'luasnip' },
|
|
||||||
{ name = 'path' },
|
|
||||||
{ name = 'git' },
|
|
||||||
}),
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
['<CR>'] = cmp.mapping.confirm(),
|
|
||||||
['<C-y>'] = cmp.mapping.complete(),
|
|
||||||
-- ['<C-Space>'] = cmp.mapping.complete(),
|
|
||||||
['<C-n>'] = cmp.config.next,
|
|
||||||
['<C-p>'] = cmp.config.prev,
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
cmp.setup.cmdline({ '/', '?' }, {
|
|
||||||
mapping = cmp.mapping.preset.cmdline {
|
|
||||||
['<C-n>'] = cmp.config.disable,
|
|
||||||
['<C-p>'] = cmp.config.disable,
|
|
||||||
},
|
|
||||||
sources = {
|
|
||||||
{ name = 'buffer' }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
cmp.setup.cmdline(':', {
|
|
||||||
mapping = cmp.mapping.preset.cmdline {
|
|
||||||
['<C-n>'] = cmp.config.disable,
|
|
||||||
['<C-p>'] = cmp.config.disable,
|
|
||||||
},
|
|
||||||
-- mapping = cmp.mapping.preset.cmdline(),
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'path' }
|
|
||||||
}, {
|
|
||||||
{ name = 'cmdline' }
|
|
||||||
})
|
|
||||||
})
|
|
||||||
cmp.setup.filetype('gitcommit', {
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
|
||||||
}, {
|
|
||||||
{ name = 'buffer' },
|
|
||||||
})
|
|
||||||
})
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'nvim-lua/lsp-status.nvim',
|
|
||||||
event = "LspAttach"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'terrastruct/d2-vim',
|
|
||||||
ft = "d2",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'mrcjkb/rustaceanvim',
|
|
||||||
version = '^3', -- Recommended
|
|
||||||
ft = { 'rust' },
|
|
||||||
config = function()
|
|
||||||
require 'setup.rtools'
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
dependencies = { "mfussenegger/nvim-dap" },
|
|
||||||
config = function() require("dapui").setup() end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
-- event = "LspAttach",
|
|
||||||
config = function()
|
|
||||||
local dap = require('dap')
|
|
||||||
-- local registry = require('mason-registry').get_package("codelldb");
|
|
||||||
-- local codelldb = registry:get_install_path() .. "/codelldb"
|
|
||||||
dap.adapters.codelldb = {
|
|
||||||
type = 'server',
|
|
||||||
port = "${port}",
|
|
||||||
executable = {
|
|
||||||
-- CHANGE THIS to your path!
|
|
||||||
command = "codelldb",
|
|
||||||
args = { "--port", "${port}" },
|
|
||||||
|
|
||||||
-- On windows you may have to uncomment this:
|
|
||||||
-- detached = false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
local program = function()
|
|
||||||
return vim.ui.select({
|
|
||||||
}, {
|
|
||||||
prompt = "Select program to debug: ",
|
|
||||||
format_item = function(item)
|
|
||||||
return item
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
dap.configurations.rust = {
|
|
||||||
{
|
|
||||||
name = "Launch Rust (CODELLDB)",
|
|
||||||
type = "codelldb",
|
|
||||||
request = "launch",
|
|
||||||
program = program,
|
|
||||||
cwd = '${workspaceFolder}',
|
|
||||||
stopOnEntry = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'simrat39/symbols-outline.nvim',
|
|
||||||
cmd = "SymbolsOutline",
|
|
||||||
config = function()
|
|
||||||
require('symbols-outline').setup()
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nvimdev/lspsaga.nvim",
|
|
||||||
event = "LspAttach",
|
|
||||||
config = function()
|
|
||||||
require("lspsaga").setup({
|
|
||||||
ui = {
|
|
||||||
code_action = 'A'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
dependencies = {
|
|
||||||
{ "nvim-tree/nvim-web-devicons" },
|
|
||||||
{ "nvim-treesitter/nvim-treesitter" }
|
|
||||||
--Please make sure you install markdown and markdown_inline parser
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ron-rs/ron.vim",
|
|
||||||
ft = "ron",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"zbirenbaum/copilot.lua",
|
|
||||||
cmd = "Copilot",
|
|
||||||
event = "LspAttach",
|
|
||||||
config = function()
|
|
||||||
require("copilot").setup({
|
|
||||||
suggestion = {
|
|
||||||
enabled = true,
|
|
||||||
auto_trigger = true,
|
|
||||||
keymap = {
|
|
||||||
accept = "<C-l>",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
panel = { enabled = true },
|
|
||||||
})
|
|
||||||
end
|
|
||||||
},
|
|
||||||
}, {
|
|
||||||
defaults = {
|
|
||||||
lazy = true,
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
local home = os.getenv('HOME')
|
|
||||||
local db = require('dashboard')
|
|
||||||
db.custom_center = {
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'Recently laset session ',
|
|
||||||
shortcut = 'SPC s l',
|
|
||||||
action = 'SessionLoad' },
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'Recently opened files ',
|
|
||||||
action = 'DashboardFindHistory',
|
|
||||||
shortcut = 'SPC f h' },
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'Find File ',
|
|
||||||
action = 'Telescope find_files find_command=rg,--hidden,--files',
|
|
||||||
shortcut = 'SPC f f' },
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'File Browser ',
|
|
||||||
action = 'Telescope file_browser',
|
|
||||||
shortcut = 'SPC f b' },
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'Find word ',
|
|
||||||
aciton = 'DashboardFindWord',
|
|
||||||
shortcut = 'SPC f w' },
|
|
||||||
{ icon = ' ',
|
|
||||||
desc = 'Open Personal dotfiles ',
|
|
||||||
action = 'Telescope dotfiles path=' .. home .. '/.dotfiles',
|
|
||||||
shortcut = 'SPC f d' },
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
local lspstatus = require('lsp-status')
|
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
|
||||||
-- vim.keymap.set(
|
|
||||||
-- "n",
|
|
||||||
-- "<leader>a",
|
|
||||||
-- function()
|
|
||||||
-- vim.cmd.RustLsp('codeAction')
|
|
||||||
-- end,
|
|
||||||
-- { silent = true, buffer = bufnr }
|
|
||||||
-- )
|
|
||||||
vim.keymap.set(
|
|
||||||
"n",
|
|
||||||
"<leader>rr",
|
|
||||||
function()
|
|
||||||
vim.cmd.RustLsp('runnables')
|
|
||||||
end,
|
|
||||||
{ silent = true, buffer = bufnr }
|
|
||||||
)
|
|
||||||
vim.keymap.set(
|
|
||||||
"n",
|
|
||||||
"<leader>rd",
|
|
||||||
function()
|
|
||||||
vim.cmd.RustLsp('debuggables')
|
|
||||||
end,
|
|
||||||
{ silent = true, buffer = bufnr }
|
|
||||||
)
|
|
||||||
vim.keymap.set(
|
|
||||||
"n",
|
|
||||||
"ssr",
|
|
||||||
function()
|
|
||||||
vim.cmd.RustLsp('ssr')
|
|
||||||
end,
|
|
||||||
{ buffer = bufnr }
|
|
||||||
)
|
|
||||||
|
|
||||||
vim.g.rustaceanvim = {
|
|
||||||
-- Plugin configuration
|
|
||||||
-- tools = {},
|
|
||||||
-- LSP configuration
|
|
||||||
server = {
|
|
||||||
capabilities = require'lsp-zero'.get_capabilities(),
|
|
||||||
on_attach = function(client, bufnr)
|
|
||||||
-- you can also put keymaps in here
|
|
||||||
lspstatus.on_attach(client, bufnr)
|
|
||||||
if client.server_capabilities.inlayHintProvider then
|
|
||||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
-- settings = {
|
|
||||||
-- -- rust-analyzer language server configuration
|
|
||||||
-- ["rust-analyzer"] = {},
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- -- DAP configuration
|
|
||||||
},
|
|
||||||
dap = {
|
|
||||||
autoload_configurations = false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
require("toggleterm").setup{
|
|
||||||
size = 70,
|
|
||||||
open_mapping = [[<c-\>]],
|
|
||||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
|
||||||
shade_filetypes = {},
|
|
||||||
shade_terminals = true,
|
|
||||||
shading_factor = '1', -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
|
|
||||||
start_in_insert = true,
|
|
||||||
persist_size = true,
|
|
||||||
-- direction = 'vertical' | 'horizontal' | 'window' | 'float',
|
|
||||||
direction = 'vertical',
|
|
||||||
close_on_exit = true, -- close the terminal window when the process exits
|
|
||||||
shell = vim.o.shell, -- change the default shell
|
|
||||||
-- This field is only relevant if direction is set to 'float'
|
|
||||||
float_opts = {
|
|
||||||
-- The border key is *almost* the same as 'nvim_win_open'
|
|
||||||
-- see :h nvim_win_open for details on borders however
|
|
||||||
-- the 'curved' border is a custom border type
|
|
||||||
-- not natively supported but implemented in this plugin.
|
|
||||||
-- border = 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
|
|
||||||
border = 'single',
|
|
||||||
width = 30,
|
|
||||||
height = 30,
|
|
||||||
winblend = 3,
|
|
||||||
highlights = {
|
|
||||||
border = "Normal",
|
|
||||||
background = "Normal",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,195 +0,0 @@
|
|||||||
local vim = vim
|
|
||||||
local gl = require('galaxyline')
|
|
||||||
|
|
||||||
local condition = require('galaxyline.condition')
|
|
||||||
-- local diagnostic = require('galaxyline.providers.diagnostic')
|
|
||||||
-- local diagnostic = require('lsp-status.diagnostics')
|
|
||||||
local vcs = require('galaxyline.providers.vcs')
|
|
||||||
-- local fileinfo = require('galaxyline.providers.fileinfo')
|
|
||||||
-- local extension = require('galaxyline.providers.extensions')
|
|
||||||
-- local colors = require('galaxyline.colors')
|
|
||||||
-- local buffer = require('galaxyline.providers.buffer')
|
|
||||||
-- local whitespace = require('galaxyline.providers.whitespace')
|
|
||||||
-- local lspclient = require('galaxyline.providers.lsp')
|
|
||||||
-- local lsp_status = require('lsp-status')
|
|
||||||
|
|
||||||
|
|
||||||
-- local gls = gl.section
|
|
||||||
gl.short_line_list = { 'defx' }
|
|
||||||
|
|
||||||
-- from sonokai theme (https://github.com/sainnhe/sonokai/blob/master/autoload/sonokai.vim)
|
|
||||||
local colors = {
|
|
||||||
dark_black = '#151515',
|
|
||||||
black = '#181819',
|
|
||||||
|
|
||||||
bg = '#151515', -- same as dark_black
|
|
||||||
bg0 = '#2c2e34',
|
|
||||||
bg1 = '#30323a',
|
|
||||||
bg2 = '#363944',
|
|
||||||
bg3 = '#3b3e48',
|
|
||||||
bg4 = '#414550',
|
|
||||||
|
|
||||||
bg_red = '#ff6077',
|
|
||||||
diff_red = '#55393d',
|
|
||||||
|
|
||||||
bg_green = '#a7df78',
|
|
||||||
diff_green = '#394634',
|
|
||||||
|
|
||||||
bg_blue = '#85d3f2',
|
|
||||||
diff_blue = '#354157',
|
|
||||||
|
|
||||||
yellow = '#e7c664',
|
|
||||||
diff_yellow = '#4e432f',
|
|
||||||
|
|
||||||
fg = '#e2e2e3',
|
|
||||||
|
|
||||||
red = '#fc5d7c',
|
|
||||||
orange = '#f39660',
|
|
||||||
green = '#9ed072',
|
|
||||||
blue = '#76cce0',
|
|
||||||
purple = '#b39df3',
|
|
||||||
grey = '#7f8490',
|
|
||||||
none = 'NONE',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
local mode_color = function()
|
|
||||||
local mode_colors = {
|
|
||||||
n = colors.blue,
|
|
||||||
i = colors.green,
|
|
||||||
c = colors.yellow,
|
|
||||||
V = colors.purple,
|
|
||||||
[''] = colors.purple,
|
|
||||||
v = colors.purple,
|
|
||||||
R = colors.red,
|
|
||||||
}
|
|
||||||
|
|
||||||
local color = mode_colors[vim.fn.mode()]
|
|
||||||
|
|
||||||
if color == nil then
|
|
||||||
color = colors.red
|
|
||||||
end
|
|
||||||
|
|
||||||
return color
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local gls = gl.section
|
|
||||||
|
|
||||||
gls.left[1] = {
|
|
||||||
ViMode = {
|
|
||||||
provider = function()
|
|
||||||
local alias = {
|
|
||||||
n = 'NORMAL',
|
|
||||||
i = 'INSERT',
|
|
||||||
c = 'COMMAND',
|
|
||||||
V = 'VISUAL',
|
|
||||||
[''] = 'VISUAL',
|
|
||||||
v = 'VISUAL',
|
|
||||||
R = 'REPLACE',
|
|
||||||
}
|
|
||||||
vim.api.nvim_command('hi GalaxyViMode guifg='..mode_color())
|
|
||||||
local alias_mode = alias[vim.fn.mode()]
|
|
||||||
if alias_mode == nil then
|
|
||||||
alias_mode = vim.fn.mode()
|
|
||||||
end
|
|
||||||
return '▋ '..alias_mode..' '
|
|
||||||
end,
|
|
||||||
highlight = { colors.fg , colors.bg2 },
|
|
||||||
separator = '',
|
|
||||||
separator_highlight = { colors.bg2 ,
|
|
||||||
function()
|
|
||||||
if condition.check_git_workspace() then
|
|
||||||
return colors.bg1
|
|
||||||
else
|
|
||||||
return colors.dark_black
|
|
||||||
end
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[2] = {
|
|
||||||
GitBranch = {
|
|
||||||
provider = function() return vcs.get_git_branch()..' ' end,
|
|
||||||
condition = function()
|
|
||||||
local function is_empty()
|
|
||||||
return vcs.get_git_branch() ~= nil
|
|
||||||
end
|
|
||||||
return condition.check_git_workspace() and condition.hide_in_width() and is_empty()
|
|
||||||
end,
|
|
||||||
highlight = { colors.purple , colors.bg1 },
|
|
||||||
icon = ' ',
|
|
||||||
separator = '',
|
|
||||||
separator_highlight = { colors.bg1 , colors.dark_black },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- gls.left[3] = {
|
|
||||||
-- ShowLspStatus = {
|
|
||||||
-- provider = lsp_status.status,
|
|
||||||
-- highlight = { colors.grey , colors.dark_black, 'bold' }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
|
|
||||||
|
|
||||||
-- Right Side
|
|
||||||
-- gls.right[1]= {
|
|
||||||
-- FileFormat = {
|
|
||||||
-- provider = function() return ' '..fileinfo.get_file_format()..' ' end,
|
|
||||||
-- highlight = { colors.purple, colors.bg3 },
|
|
||||||
-- separator = '',
|
|
||||||
-- separator_highlight = { colors.bg3, colors.dark_black },
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
|
|
||||||
|
|
||||||
gls.right[1] = {
|
|
||||||
DiagnosticError = {
|
|
||||||
provider = 'DiagnosticError',
|
|
||||||
icon = ' ',
|
|
||||||
highlight = {colors.red,colors.bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
gls.right[2] = {
|
|
||||||
DiagnosticWarn = {
|
|
||||||
provider = 'DiagnosticWarn',
|
|
||||||
icon = ' ',
|
|
||||||
highlight = {colors.yellow,colors.bg},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[3] = {
|
|
||||||
DiagnosticHint = {
|
|
||||||
provider = 'DiagnosticHint',
|
|
||||||
icon = ' ',
|
|
||||||
highlight = {colors.cyan,colors.bg},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[4] = {
|
|
||||||
DiagnosticInfo = {
|
|
||||||
provider = 'DiagnosticInfo',
|
|
||||||
icon = ' ',
|
|
||||||
highlight = {colors.blue,colors.bg},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[5] = {
|
|
||||||
LineInfo = {
|
|
||||||
provider = 'LineColumn',
|
|
||||||
highlight = { colors.grey , colors.bg3 },
|
|
||||||
separator = '',
|
|
||||||
separator_highlight = { colors.bg3, colors.dark_black },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
gls.right[6] = {
|
|
||||||
PerCent = {
|
|
||||||
provider = 'LinePercent',
|
|
||||||
highlight = { colors.blue, colors.bg1 },
|
|
||||||
separator = '',
|
|
||||||
separator_highlight = { colors.bg1 , colors.bg3 },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,229 +0,0 @@
|
|||||||
# Thank you code_nomad: http://9m.no/ꪯ鵞
|
|
||||||
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Backend
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# Backend to use: "xrender" or "glx".
|
|
||||||
# GLX backend is typically much faster but depends on a sane driver.
|
|
||||||
backend = "glx";
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# GLX backend
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
glx-no-stencil = true;
|
|
||||||
|
|
||||||
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
|
|
||||||
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
|
|
||||||
# but a 20% increase when only 1/4 is.
|
|
||||||
# My tests on nouveau show terrible slowdown.
|
|
||||||
glx-copy-from-front = false;
|
|
||||||
|
|
||||||
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
|
|
||||||
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
|
|
||||||
# May break VSync and is not available on some drivers.
|
|
||||||
# Overrides --glx-copy-from-front.
|
|
||||||
# glx-use-copysubbuffermesa = true;
|
|
||||||
|
|
||||||
# GLX backend: Avoid rebinding pixmap on window damage.
|
|
||||||
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
|
|
||||||
# Recommended if it works.
|
|
||||||
# glx-no-rebind-pixmap = true;
|
|
||||||
|
|
||||||
# GLX backend: GLX buffer swap method we assume.
|
|
||||||
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
|
|
||||||
# undefined is the slowest and the safest, and the default value.
|
|
||||||
# copy is fastest, but may fail on some drivers,
|
|
||||||
# 2-6 are gradually slower but safer (6 is still faster than 0).
|
|
||||||
# Usually, double buffer means 2, triple buffer means 3.
|
|
||||||
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
|
|
||||||
# Useless with --glx-use-copysubbuffermesa.
|
|
||||||
# Partially breaks --resize-damage.
|
|
||||||
# Defaults to undefined.
|
|
||||||
#glx-swap-method = "undefined";
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Shadows
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# Enabled client-side shadows on windows.
|
|
||||||
shadow = true;
|
|
||||||
# The blur radius for shadows. (default 12)
|
|
||||||
shadow-radius = 5;
|
|
||||||
# The left offset for shadows. (default -15)
|
|
||||||
shadow-offset-x = -5;
|
|
||||||
# The top offset for shadows. (default -15)
|
|
||||||
shadow-offset-y = -5;
|
|
||||||
# The translucency for shadows. (default .75)
|
|
||||||
shadow-opacity = 0.5;
|
|
||||||
|
|
||||||
# Set if you want different colour shadows
|
|
||||||
# shadow-red = 0.0;
|
|
||||||
# shadow-green = 0.0;
|
|
||||||
# shadow-blue = 0.0;
|
|
||||||
|
|
||||||
# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches
|
|
||||||
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
|
|
||||||
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
|
|
||||||
shadow-exclude = [
|
|
||||||
"! name~=''",
|
|
||||||
"name = 'Notification'",
|
|
||||||
"name = 'Plank'",
|
|
||||||
"name = 'Docky'",
|
|
||||||
"name = 'Kupfer'",
|
|
||||||
"name = 'xfce4-notifyd'",
|
|
||||||
"name *= 'VLC'",
|
|
||||||
"name *= 'compton'",
|
|
||||||
"name *= 'picom'",
|
|
||||||
"name *= 'Chromium'",
|
|
||||||
"name *= 'Chrome'",
|
|
||||||
"class_g = 'Firefox' && argb",
|
|
||||||
"class_g = 'Conky'",
|
|
||||||
"class_g = 'Kupfer'",
|
|
||||||
"class_g = 'Synapse'",
|
|
||||||
"class_g ?= 'Notify-osd'",
|
|
||||||
"class_g ?= 'Cairo-dock'",
|
|
||||||
"class_g ?= 'Xfce4-notifyd'",
|
|
||||||
"class_g ?= 'Xfce4-power-manager'",
|
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
|
||||||
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
|
||||||
];
|
|
||||||
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
|
|
||||||
shadow-ignore-shaped = false;
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Opacity
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
inactive-opacity = 1;
|
|
||||||
active-opacity = 1;
|
|
||||||
frame-opacity = 1;
|
|
||||||
inactive-opacity-override = false;
|
|
||||||
|
|
||||||
# Dim inactive windows. (0.0 - 1.0)
|
|
||||||
# inactive-dim = 0.2;
|
|
||||||
# Do not let dimness adjust based on window opacity.
|
|
||||||
# inactive-dim-fixed = true;
|
|
||||||
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
|
||||||
# blur-background = true;
|
|
||||||
# Blur background of opaque windows with transparent frames as well.
|
|
||||||
# blur-background-frame = true;
|
|
||||||
# Do not let blur radius adjust based on window opacity.
|
|
||||||
blur-background-fixed = false;
|
|
||||||
blur-background-exclude = [
|
|
||||||
"window_type = 'dock'",
|
|
||||||
"window_type = 'desktop'"
|
|
||||||
];
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Fading
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# Fade windows during opacity changes.
|
|
||||||
fading = true;
|
|
||||||
# The time between steps in a fade in milliseconds. (default 10).
|
|
||||||
fade-delta = 4;
|
|
||||||
# Opacity change between steps while fading in. (default 0.028).
|
|
||||||
fade-in-step = 0.03;
|
|
||||||
# Opacity change between steps while fading out. (default 0.03).
|
|
||||||
fade-out-step = 0.03;
|
|
||||||
# Fade windows in/out when opening/closing
|
|
||||||
# no-fading-openclose = true;
|
|
||||||
|
|
||||||
# Specify a list of conditions of windows that should not be faded.
|
|
||||||
fade-exclude = [ ];
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Other
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
# Try to detect WM windows and mark them as active.
|
|
||||||
mark-wmwin-focused = true;
|
|
||||||
# Mark all non-WM but override-redirect windows active (e.g. menus).
|
|
||||||
mark-ovredir-focused = true;
|
|
||||||
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
|
|
||||||
# Usually more reliable but depends on a EWMH-compliant WM.
|
|
||||||
use-ewmh-active-win = true;
|
|
||||||
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
|
|
||||||
detect-rounded-corners = true;
|
|
||||||
|
|
||||||
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
|
|
||||||
# This prevents opacity being ignored for some apps.
|
|
||||||
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
|
|
||||||
detect-client-opacity = true;
|
|
||||||
|
|
||||||
# Specify refresh rate of the screen.
|
|
||||||
# If not specified or 0, picom will try detecting this with X RandR extension.
|
|
||||||
|
|
||||||
# Vertical synchronization: match the refresh rate of the monitor
|
|
||||||
|
|
||||||
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
|
|
||||||
# Reported to have no effect, though.
|
|
||||||
dbe = false;
|
|
||||||
|
|
||||||
# Limit picom to repaint at most once every 1 / refresh_rate second to boost performance.
|
|
||||||
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
|
|
||||||
# unless you wish to specify a lower refresh rate than the actual value.
|
|
||||||
#sw-opti = true;
|
|
||||||
|
|
||||||
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
|
|
||||||
# Known to cause flickering when redirecting/unredirecting windows.
|
|
||||||
unredir-if-possible = false;
|
|
||||||
|
|
||||||
# Specify a list of conditions of windows that should always be considered focused.
|
|
||||||
focus-exclude = [ ];
|
|
||||||
|
|
||||||
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
|
|
||||||
detect-transient = true;
|
|
||||||
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
|
|
||||||
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
|
|
||||||
detect-client-leader = true;
|
|
||||||
|
|
||||||
#################################
|
|
||||||
#
|
|
||||||
# Window type settings
|
|
||||||
#
|
|
||||||
#################################
|
|
||||||
|
|
||||||
wintypes:
|
|
||||||
{
|
|
||||||
tooltip =
|
|
||||||
{
|
|
||||||
# fade: Fade the particular type of windows.
|
|
||||||
fade = true;
|
|
||||||
# shadow: Give those windows shadow
|
|
||||||
shadow = false;
|
|
||||||
# opacity: Default opacity for the type of windows.
|
|
||||||
opacity = 0.85;
|
|
||||||
# focus: Whether to always consider windows of this type focused.
|
|
||||||
focus = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
######################
|
|
||||||
#
|
|
||||||
# XSync
|
|
||||||
# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
|
|
||||||
#
|
|
||||||
######################
|
|
||||||
|
|
||||||
# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
|
|
||||||
xrender-sync-fence = true;
|
|
||||||
|
|
||||||
#Termite
|
|
||||||
opacity-rule = ["85:class_g = 'Termite'"];
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
import dracula.draw
|
|
||||||
|
|
||||||
# Load existing settings made via :set
|
|
||||||
config.load_autoconfig()
|
|
||||||
|
|
||||||
dracula.draw.blood(c, {'spacing': {'vertical': 6, 'horizontal': 8}})
|
|
||||||
c.tabs.position = "bottom"
|
|
||||||
c.url.start_pages = ["https://start.duckduckgo.com"]
|
|
||||||
c.url.default_page = "https://start.duckduckgo.com"
|
|
||||||
c.editor.command = [
|
|
||||||
'/usr/bin/nvim', '-f', '{file}', '-c', 'normal {line}G{column0}l'
|
|
||||||
]
|
|
||||||
|
|
||||||
config.bind('<z><l>', 'spawn --userscript qute-pass')
|
|
||||||
config.bind('<z><u><l>', 'spawn --userscript qute-pass --username-only')
|
|
||||||
config.bind('<z><p><l>', 'spawn --userscript qute-pass --password-only')
|
|
||||||
config.bind('<z><o><l>', 'spawn --userscript qute-pass --otp-only')
|
|
||||||
|
|
||||||
# Dark mode
|
|
||||||
# config.set("colors.webpage.darkmode.enabled", True)
|
|
||||||
|
|
||||||
c.url.searchengines = {
|
|
||||||
"DEFAULT": "https://www.duckduckgo.com/?q={}",
|
|
||||||
"sx": "https://search.disroot.org/?q={}",
|
|
||||||
"g": "https://www.google.com/search?q={}",
|
|
||||||
"ddg": "https://www.duckduckgo.com/?q={}",
|
|
||||||
"yt": "https://www.youtube.com/results?search_query={}",
|
|
||||||
"ytm": "https://music.youtube.com/search?q={}",
|
|
||||||
"aw": "https://wiki.archlinux.org/?search={}",
|
|
||||||
"aur": "https://aur.archlinux.org/packages/?K={}",
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
* {
|
|
||||||
xbg: #1D1F28;
|
|
||||||
xfg: #FDFDFD;
|
|
||||||
x0: #282A36;
|
|
||||||
x1: #F37F97;
|
|
||||||
x2: #5ADECD;
|
|
||||||
x3: #F2A272;
|
|
||||||
x4: #8897F4;
|
|
||||||
x5: #C574DD;
|
|
||||||
x6: #79E6F3;
|
|
||||||
x7: #FDFDFD;
|
|
||||||
x8: #414458;
|
|
||||||
x9: #FF4971;
|
|
||||||
x10: #18E3C8;
|
|
||||||
x11: #FF8037;
|
|
||||||
x12: #556FFF;
|
|
||||||
x13: #B043D1;
|
|
||||||
x14: #3FDCEE;
|
|
||||||
x15: #FDFDFD;
|
|
||||||
}
|
|
||||||
@@ -1,209 +0,0 @@
|
|||||||
configuration {
|
|
||||||
modi: "combi,ssh,drun,windowcd,run";
|
|
||||||
lines: 10;
|
|
||||||
columns: 2;
|
|
||||||
font: "sans 13";
|
|
||||||
bw: 0;
|
|
||||||
location: 0;
|
|
||||||
padding: 0;
|
|
||||||
fixed-num-lines: true;
|
|
||||||
show-icons: true;
|
|
||||||
icon-theme: "La-Capitaine";
|
|
||||||
sidebar-mode: true;
|
|
||||||
combi-modi: "window,drun,run";
|
|
||||||
separator-style: "none";
|
|
||||||
hide-scrollbar: true;
|
|
||||||
fullscreen: false;
|
|
||||||
fake-transparency: true;
|
|
||||||
scroll-method: 1;
|
|
||||||
window-format: "[{w}] ·· {c} ·· {t}";
|
|
||||||
click-to-exit: true;
|
|
||||||
show-match: false;
|
|
||||||
color-normal: "@xbg, @xfg, @xbg, @xfg, @xbg";
|
|
||||||
color-urgent: "@xbg, @x1, @xbg, @x1, @xfg";
|
|
||||||
color-active: "@xbg, @xfg, @xbg, @xfg, @xbg";
|
|
||||||
color-window: "@xbg, @x1, @xfg";
|
|
||||||
combi-hide-mode-prefix: false;
|
|
||||||
display-window: "";
|
|
||||||
display-windowcd: "";
|
|
||||||
display-run: "";
|
|
||||||
display-ssh: "";
|
|
||||||
display-drun: "";
|
|
||||||
display-combi: "";
|
|
||||||
kb-remove-word-back: "Control+BackSpace,Alt+d,Alt+BackSpace";
|
|
||||||
kb-accept-entry: "Control+m,Return,KP_Enter,Alt+m";
|
|
||||||
kb-mode-next: "Shift+Right,Control+Tab,Alt+l,Alt+Tab";
|
|
||||||
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab,Alt+h";
|
|
||||||
kb-row-left: "Control+Page_Up,Control+Alt+h";
|
|
||||||
kb-row-right: "Control+Page_Down,Control+Alt+l";
|
|
||||||
kb-row-up: "Up,Control+p,Alt+k";
|
|
||||||
kb-row-down: "Down,Control+n,Alt+j";
|
|
||||||
kb-select-1: "";
|
|
||||||
kb-select-2: "";
|
|
||||||
kb-select-3: "";
|
|
||||||
kb-select-4: "";
|
|
||||||
kb-select-5: "";
|
|
||||||
kb-select-6: "";
|
|
||||||
kb-select-7: "";
|
|
||||||
kb-select-8: "";
|
|
||||||
kb-select-9: "";
|
|
||||||
kb-select-10: "";
|
|
||||||
me-select-entry: "";
|
|
||||||
me-accept-entry: "MousePrimary";
|
|
||||||
me-accept-custom: "MouseMiddle";
|
|
||||||
}
|
|
||||||
* {
|
|
||||||
selected-normal-foreground: rgba ( 52, 60, 72, 100 % );
|
|
||||||
foreground: rgba ( 224, 224, 224, 100 % );
|
|
||||||
normal-foreground: @foreground;
|
|
||||||
alternate-normal-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
red: rgba ( 220, 50, 47, 100 % );
|
|
||||||
selected-urgent-foreground: rgba ( 224, 224, 224, 100 % );
|
|
||||||
blue: rgba ( 38, 139, 210, 100 % );
|
|
||||||
urgent-foreground: rgba ( 240, 98, 146, 100 % );
|
|
||||||
alternate-urgent-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
active-foreground: rgba ( 224, 224, 224, 100 % );
|
|
||||||
lightbg: rgba ( 238, 232, 213, 100 % );
|
|
||||||
selected-active-foreground: rgba ( 52, 60, 72, 100 % );
|
|
||||||
alternate-active-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
alternate-normal-foreground: @foreground;
|
|
||||||
normal-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
lightfg: rgba ( 88, 104, 117, 100 % );
|
|
||||||
selected-normal-background: rgba ( 224, 224, 224, 100 % );
|
|
||||||
border-color: rgba ( 240, 98, 146, 100 % );
|
|
||||||
spacing: 2;
|
|
||||||
separatorcolor: rgba ( 224, 224, 224, 100 % );
|
|
||||||
urgent-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
selected-urgent-background: rgba ( 240, 98, 146, 100 % );
|
|
||||||
alternate-urgent-foreground: @urgent-foreground;
|
|
||||||
background-color: rgba ( 0, 0, 0, 0 % );
|
|
||||||
alternate-active-foreground: @active-foreground;
|
|
||||||
active-background: rgba ( 52, 60, 72, 100 % );
|
|
||||||
selected-active-background: rgba ( 224, 224, 224, 100 % );
|
|
||||||
}
|
|
||||||
window {
|
|
||||||
background-color: @xbg;
|
|
||||||
border: 0;
|
|
||||||
border-color: @x14;
|
|
||||||
border-radius: 12px;
|
|
||||||
padding: 40;
|
|
||||||
width: 50%;
|
|
||||||
height: 50%;
|
|
||||||
}
|
|
||||||
mainbox {
|
|
||||||
border: 0;
|
|
||||||
border-color: @x0;
|
|
||||||
padding: 6;
|
|
||||||
}
|
|
||||||
message {
|
|
||||||
border: 0px;
|
|
||||||
border-color: @x6;
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
textbox {
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
listview {
|
|
||||||
fixed-height: 0;
|
|
||||||
border: 0px;
|
|
||||||
border-color: @x6;
|
|
||||||
spacing: 2px;
|
|
||||||
scrollbar: false;
|
|
||||||
padding: 2px 0px 0px;
|
|
||||||
}
|
|
||||||
element {
|
|
||||||
border: 0;
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
element normal.normal {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
element normal.urgent {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x9;
|
|
||||||
}
|
|
||||||
element normal.active {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x5;
|
|
||||||
}
|
|
||||||
element selected.normal {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x13;
|
|
||||||
}
|
|
||||||
element selected.urgent {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x13;
|
|
||||||
}
|
|
||||||
element selected.active {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x13;
|
|
||||||
}
|
|
||||||
element alternate.normal {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
element alternate.urgent {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x9;
|
|
||||||
}
|
|
||||||
element alternate.active {
|
|
||||||
background-color: rgba (0,0,0,0%);
|
|
||||||
text-color: @x5;
|
|
||||||
}
|
|
||||||
scrollbar {
|
|
||||||
width: 4px ;
|
|
||||||
border: 0;
|
|
||||||
handle-color: @xfg;
|
|
||||||
handle-width: 8px ;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
sidebar {
|
|
||||||
border: 0px;
|
|
||||||
border-color: @x4;
|
|
||||||
border-radius: 20px;
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
margin: 5px;
|
|
||||||
padding: 5px;
|
|
||||||
background-color: @xbg;
|
|
||||||
text-color: @x8;
|
|
||||||
border: 0px;
|
|
||||||
border-radius: 20px;
|
|
||||||
border-color: @x8;
|
|
||||||
}
|
|
||||||
button selected {
|
|
||||||
background-color: @xbg;
|
|
||||||
text-color: @x7;
|
|
||||||
border: 3px;
|
|
||||||
border-radius: 20px;
|
|
||||||
border-color: @x7;
|
|
||||||
}
|
|
||||||
inputbar {
|
|
||||||
spacing: 0px ;
|
|
||||||
text-color: @xfg;
|
|
||||||
padding: 1px ;
|
|
||||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
|
||||||
}
|
|
||||||
case-indicator {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
entry {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
prompt {
|
|
||||||
spacing: 0;
|
|
||||||
border: 0;
|
|
||||||
text-color: @xfg;
|
|
||||||
}
|
|
||||||
textbox-prompt-colon {
|
|
||||||
expand: false;
|
|
||||||
str: " ";
|
|
||||||
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
|
||||||
text-color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "colors.rasi"
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
/**
|
|
||||||
* User: deadguy
|
|
||||||
* Copyright: deadguy
|
|
||||||
*/
|
|
||||||
|
|
||||||
configuration {
|
|
||||||
display-drun: "Activate";
|
|
||||||
display-run: "Execute";
|
|
||||||
display-window: "Window";
|
|
||||||
show-icons: true;
|
|
||||||
sidebar-mode: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
background-color: #080808;
|
|
||||||
text-color: #d3d7cf;
|
|
||||||
selbg: #215d9c;
|
|
||||||
actbg: #262626;
|
|
||||||
urgbg: #e53935;
|
|
||||||
winbg: #26c6da;
|
|
||||||
|
|
||||||
selected-normal-foreground: @winbg;
|
|
||||||
normal-foreground: @text-color;
|
|
||||||
selected-normal-background: @actbg;
|
|
||||||
normal-background: @background-color;
|
|
||||||
|
|
||||||
selected-urgent-foreground: @background-color;
|
|
||||||
urgent-foreground: @text-color;
|
|
||||||
selected-urgent-background: @urgbg;
|
|
||||||
urgent-background: @background-color;
|
|
||||||
|
|
||||||
selected-active-foreground: @winbg;
|
|
||||||
active-foreground: @text-color;
|
|
||||||
selected-active-background: @actbg;
|
|
||||||
active-background: @selbg;
|
|
||||||
|
|
||||||
line-margin: 2;
|
|
||||||
line-padding: 2;
|
|
||||||
separator-style: "none";
|
|
||||||
hide-scrollbar: "true";
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
location: west;
|
|
||||||
anchor: west;
|
|
||||||
height: 100%;
|
|
||||||
width: 22%;
|
|
||||||
orientation: horizontal;
|
|
||||||
children: [mainbox];
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
spacing: 0.8em;
|
|
||||||
children: [ entry,listview,mode-switcher ];
|
|
||||||
}
|
|
||||||
|
|
||||||
button { padding: 5px 2px; }
|
|
||||||
|
|
||||||
button selected {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @background-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
padding: 5px;
|
|
||||||
spacing: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
spacing: 0.5em;
|
|
||||||
dynamic: false;
|
|
||||||
cycle: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
element { padding: 10px; }
|
|
||||||
|
|
||||||
entry {
|
|
||||||
expand: false;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
vertical-align: 1;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element normal.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element normal.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element normal.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected.normal {
|
|
||||||
background-color: @selected-normal-background;
|
|
||||||
text-color: @selected-normal-foreground;
|
|
||||||
border: 0 5px solid 0 0;
|
|
||||||
border-color: @active-background;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected.urgent {
|
|
||||||
background-color: @selected-urgent-background;
|
|
||||||
text-color: @selected-urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected.active {
|
|
||||||
background-color: @selected-active-background;
|
|
||||||
text-color: @selected-active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element alternate.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element alternate.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element alternate.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
* {
|
|
||||||
background-color: #282C33;
|
|
||||||
border-color: #2e343f;
|
|
||||||
text-color: #8ca0aa;
|
|
||||||
spacing: 0;
|
|
||||||
width: 512px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
border: 0 0 1px 0;
|
|
||||||
children: [prompt,entry];
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
padding: 16px;
|
|
||||||
border: 0 1px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
textbox {
|
|
||||||
background-color: #2e343f;
|
|
||||||
border: 0 0 1px 0;
|
|
||||||
border-color: #282C33;
|
|
||||||
padding: 8px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
padding: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
cycle: false;
|
|
||||||
margin: 0 0 -1px 0;
|
|
||||||
scrollbar: false;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
border: 0 0 1px 0;
|
|
||||||
padding: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected {
|
|
||||||
background-color: #2e343f;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
width=${2:-95%}
|
|
||||||
height=${2:-95%}
|
|
||||||
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
|
|
||||||
tmux detach-client
|
|
||||||
else
|
|
||||||
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
|
|
||||||
fi
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
tmux new-session -d -s 'default' -n 'neovim'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
sleep .05
|
|
||||||
tmux new-window -t default -n 'shell'
|
|
||||||
tmux select-window -t default:0
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
live_sessions=$(tmux list-sessions 2>/dev/null)
|
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
|
||||||
all_sessions=$(gfind ~/.config/tmux/sessions -type f -executable -printf '%f\n'| sort)
|
|
||||||
elif [[ $(uname) == "Linux" ]]; then
|
|
||||||
all_sessions=$(find ~/.config/tmux/sessions -type f -executable -printf '%f\n'| sort)
|
|
||||||
else
|
|
||||||
echo "Unsupported OS"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
TMUX_SESSIONS="$HOME/.config/tmux/sessions"
|
|
||||||
# for some reason ~/.config/tmux/session doesn't work if made with quotes
|
|
||||||
# TMUX_SESSIONS=$XDG_CONFIG_HOME/tmux/sessions
|
|
||||||
|
|
||||||
if ! [ -z "$TMUX" ];then
|
|
||||||
echo "Nested tmux sessions are a bad idea?"
|
|
||||||
echo "If you want to really do this unset TMUX environment variable"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
IFS=$'\n'
|
|
||||||
for live_session in $live_sessions;do
|
|
||||||
live_session_name=$(echo $live_session | cut -d: -f1)
|
|
||||||
if [ -z "${all_sessions##*$live_session_name*}" ];then # see https://stackoverflow.com/questions/229551/how-to-check-if-a-string-contains-a-substring-in-bash
|
|
||||||
all_sessions="$(echo "$all_sessions" | sed "s/$live_session_name/$live_session/g")"
|
|
||||||
else
|
|
||||||
all_sessions="$all_sessions
|
|
||||||
$live_session"
|
|
||||||
# Okay I know this is ugly it is 5:13 my brain is not working
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
session=$(echo "$all_sessions" | fzf)
|
|
||||||
session_name=$(echo $session | cut -d: -f1)
|
|
||||||
|
|
||||||
if [ -z "$session" ];then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ -z "${session##*created*}" ];then
|
|
||||||
if [ -x "$TMUX_SESSIONS/$session_name" ];then
|
|
||||||
source $TMUX_SESSIONS/$session_name
|
|
||||||
else
|
|
||||||
echo $TMUX_SESSIONS/$session_name not found or is not executable
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ -z "${session##*attached*}" ];then
|
|
||||||
read -r -p "The session is already attached somewhere else. Attach it here too ? (y/N): " choice
|
|
||||||
if [ "$choice" == "y" ] || [ "$choice" == "Y" ];then
|
|
||||||
tmux attach-session -t$session_name
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
tmux attach-session -t$session_name
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
# List of plugins
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
|
||||||
set -g @plugin 'wfxr/tmux-fzf-url'
|
|
||||||
|
|
||||||
set -g @plugin 'kylepeeler/tmux-nightowl'
|
|
||||||
set -g @nightowl-cpu-usage true
|
|
||||||
set -g @nightowl-gpu-usage false
|
|
||||||
set -g @nightowl-ram-usage false
|
|
||||||
set -g @nightowl-show-network true
|
|
||||||
set -g @nightowl-show-powerline true
|
|
||||||
set -g @nightowl-show-timezone false
|
|
||||||
set -g @nightowl-show-weather false
|
|
||||||
|
|
||||||
# set -g @dracula-show-powerline true
|
|
||||||
# set -g @dracula-show-weather false
|
|
||||||
# set -g @dracula-show-left-icon session
|
|
||||||
# set -g @dracula-show-left-sep
|
|
||||||
# set -g @dracula-show-right-sep
|
|
||||||
# set -g @dracula-show-powerline true
|
|
||||||
# set -g @dracula-show-location false
|
|
||||||
# set -g @dracula-show-fahrenheit false
|
|
||||||
# set -g @dracula-show-left-icon session
|
|
||||||
# Theme
|
|
||||||
# set -g @plugin 'dracula/tmux'
|
|
||||||
# set -g @plugin 'catppuccin/tmux'
|
|
||||||
# set -g @catppuccin_flavour 'mocha' # or frappe, macchiato, mocha
|
|
||||||
|
|
||||||
# load plugin manager
|
|
||||||
run -b '~/.config/tmux/plugins/tpm/tpm'
|
|
||||||
|
|
||||||
# if on macos use /opt/homebrew/bin/fish
|
|
||||||
if-shell "[ -f /usr/bin/nu ]" "set -g default-shell '/usr/bin/nu'"
|
|
||||||
# if-shell "[ -f /opt/homebrew/bin/fish ]" "set -g default-shell '/opt/homebrew/bin/fish'"
|
|
||||||
if-shell "[ -f /opt/homebrew/bin/nu ]" "set -g default-shell '/opt/homebrew/bin/nu'"
|
|
||||||
|
|
||||||
set -g default-terminal 'tmux-256color'
|
|
||||||
set -ga terminal-overrides ',*256col*:Tc'
|
|
||||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
|
||||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
|
||||||
set -g mouse on
|
|
||||||
|
|
||||||
# set-option -sa terminal-overrides ',alacritty:RGB'
|
|
||||||
set-option -g focus-events on
|
|
||||||
set-option -sg escape-time 10
|
|
||||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'
|
|
||||||
|
|
||||||
# source-file ~/.config/tmux/tmuxline.conf
|
|
||||||
# Bind prefix to ctrl space
|
|
||||||
set -g prefix2 C-q
|
|
||||||
bind q send-prefix
|
|
||||||
|
|
||||||
# Use vi keys
|
|
||||||
set -gw mode-keys vi
|
|
||||||
set -g status-keys vi
|
|
||||||
|
|
||||||
bind h select-pane -L
|
|
||||||
bind j select-pane -D
|
|
||||||
bind k select-pane -U
|
|
||||||
bind l select-pane -R
|
|
||||||
|
|
||||||
# Binds
|
|
||||||
bind C-d detach
|
|
||||||
bind C-n next-window
|
|
||||||
bind C-p previous-window
|
|
||||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Configuration reloaded."
|
|
||||||
bind C-q last-window
|
|
||||||
bind m send-keys -t.- 'mpcfzf' Enter
|
|
||||||
bind o set status
|
|
||||||
|
|
||||||
set -g allow-passthrough on
|
|
||||||
set -ga update-environment TERM
|
|
||||||
set -ga update-environment TERM_PROGRAM
|
|
||||||
|
|
||||||
bind-key -n C-\\ run-shell '~/.config/tmux/scratch'
|
|
||||||
if-shell 'uname | grep -q Darwin' { set -s copy-command 'pbcopy' }
|
|
||||||
if-shell 'uname | grep -q Linux' { set -s copy-command 'wl-copy' }
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
{
|
|
||||||
"output": "DP-2",
|
|
||||||
"layer": "top", // Waybar at top layer
|
|
||||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
|
||||||
"height": 30, // Waybar height (to be removed for auto height)
|
|
||||||
// "width": 10, // Waybar width
|
|
||||||
"spacing": 4, // Gaps between modules (4px)
|
|
||||||
// Choose the order of the modules
|
|
||||||
// "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
|
|
||||||
"modules-left": ["hyprland/workspaces","hyprland/submap"],
|
|
||||||
"modules-center": [],
|
|
||||||
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "clock", "tray"],
|
|
||||||
// Modules configuration
|
|
||||||
// "sway/workspaces": {
|
|
||||||
// "disable-scroll": true,
|
|
||||||
// "all-outputs": true,
|
|
||||||
// "warp-on-scroll": false,
|
|
||||||
// "format": "{name}: {icon}",
|
|
||||||
// "format-icons": {
|
|
||||||
// "1": "",
|
|
||||||
// "2": "",
|
|
||||||
// "3": "",
|
|
||||||
// "4": "",
|
|
||||||
// "5": "",
|
|
||||||
// "urgent": "",
|
|
||||||
// "focused": "",
|
|
||||||
// "default": ""
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
"hyprland/submap": {
|
|
||||||
"format": "✌️ {}",
|
|
||||||
"max-length": 8,
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"hyprland/workspaces": {
|
|
||||||
"active-only": true,
|
|
||||||
"all-outputs": true,
|
|
||||||
"format": "{name}: {icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"1": "",
|
|
||||||
"2": "",
|
|
||||||
"3": "",
|
|
||||||
"5": "",
|
|
||||||
"10": "",
|
|
||||||
"active": "☢",
|
|
||||||
"default": ""
|
|
||||||
},
|
|
||||||
"persistent-workspaces": {
|
|
||||||
"DP-3": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mpd": {
|
|
||||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
|
||||||
"format-disconnected": "Disconnected ",
|
|
||||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
|
||||||
"unknown-tag": "N/A",
|
|
||||||
"interval": 2,
|
|
||||||
"consume-icons": {
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"random-icons": {
|
|
||||||
"off": "<span color=\"#f53c3c\"></span> ",
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"repeat-icons": {
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"single-icons": {
|
|
||||||
"on": "1 "
|
|
||||||
},
|
|
||||||
"state-icons": {
|
|
||||||
"paused": "",
|
|
||||||
"playing": ""
|
|
||||||
},
|
|
||||||
"tooltip-format": "MPD (connected)",
|
|
||||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
||||||
},
|
|
||||||
"idle_inhibitor": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"activated": "",
|
|
||||||
"deactivated": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tray": {
|
|
||||||
// "icon-size": 21,
|
|
||||||
"spacing": 10
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
// "timezone": "America/New_York",
|
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
|
||||||
},
|
|
||||||
"cpu": {
|
|
||||||
"format": "{usage}% ",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"memory": {
|
|
||||||
"format": "{}% "
|
|
||||||
},
|
|
||||||
"temperature": {
|
|
||||||
// "thermal-zone": 2,
|
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"format": "{temperatureC}°C {icon}",
|
|
||||||
"format-icons": ["", "", ""]
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": "Disconnected ⚠",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
||||||
},
|
|
||||||
"pulseaudio": {
|
|
||||||
// "scroll-step": 1, // %, can be a float
|
|
||||||
"format": "{volume}% {icon} {format_source}",
|
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
|
||||||
"format-muted": " {format_source}",
|
|
||||||
"format-source": "{volume}% ",
|
|
||||||
"format-source-muted": "",
|
|
||||||
"format-icons": {
|
|
||||||
"headphone": "",
|
|
||||||
"hands-free": "",
|
|
||||||
"headset": "",
|
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""]
|
|
||||||
},
|
|
||||||
"on-click": "pavucontrol"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# the scripting-addition must be loaded manually if
|
|
||||||
# you are running yabai on macOS Big Sur. Uncomment
|
|
||||||
# the following line to have the injection performed
|
|
||||||
# when the config is executed during startup.
|
|
||||||
#
|
|
||||||
# for this to work you must configure sudo such that
|
|
||||||
# it will be able to run the command without password
|
|
||||||
#
|
|
||||||
# see this wiki page for information:
|
|
||||||
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)
|
|
||||||
#
|
|
||||||
# for this to work you must configure sudo such that
|
|
||||||
# it will be able to run the command without password
|
|
||||||
|
|
||||||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
|
|
||||||
sudo yabai --load-sa
|
|
||||||
|
|
||||||
# global settings
|
|
||||||
yabai -m config mouse_follows_focus off
|
|
||||||
yabai -m config focus_follows_mouse off
|
|
||||||
yabai -m config window_origin_display default
|
|
||||||
yabai -m config window_placement second_child
|
|
||||||
yabai -m config window_topmost off
|
|
||||||
yabai -m config window_shadow on
|
|
||||||
yabai -m config window_opacity off
|
|
||||||
yabai -m config window_opacity_duration 0.0
|
|
||||||
yabai -m config active_window_opacity 1.0
|
|
||||||
yabai -m config normal_window_opacity 0.90
|
|
||||||
yabai -m config window_border off
|
|
||||||
yabai -m config window_border_width 6
|
|
||||||
yabai -m config active_window_border_color 0xff775759
|
|
||||||
yabai -m config normal_window_border_color 0xff555555
|
|
||||||
yabai -m config insert_feedback_color 0xffd75f5f
|
|
||||||
yabai -m config split_ratio 0.50
|
|
||||||
yabai -m config auto_balance off
|
|
||||||
yabai -m config mouse_modifier fn
|
|
||||||
yabai -m config mouse_action1 move
|
|
||||||
yabai -m config mouse_action2 resize
|
|
||||||
yabai -m config mouse_drop_action swap
|
|
||||||
|
|
||||||
# general space settings
|
|
||||||
yabai -m config layout bsp
|
|
||||||
yabai -m config top_padding 5
|
|
||||||
yabai -m config bottom_padding 5
|
|
||||||
yabai -m config left_padding 5
|
|
||||||
yabai -m config right_padding 5
|
|
||||||
yabai -m config window_gap 06
|
|
||||||
|
|
||||||
yabai -m rule --add app="choose" manage=off
|
|
||||||
yabai -m rule --add app="barrier" manage=off
|
|
||||||
yabai -m rule --add app="steam" manage=off
|
|
||||||
|
|
||||||
echo "yabai configuration loaded.."
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
|
|
||||||
#export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
|
|
||||||
0
config/nix/flake.lock → flake.lock
generated
|
Before Width: | Height: | Size: 115 KiB |
BIN
images/conky.png
|
Before Width: | Height: | Size: 84 KiB |
BIN
images/fish.png
|
Before Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 140 KiB |
BIN
images/rofi.png
|
Before Width: | Height: | Size: 76 KiB |
BIN
images/tmux.png
|
Before Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 61 KiB |
BIN
images/zsh.png
|
Before Width: | Height: | Size: 80 KiB |
@@ -1,2 +0,0 @@
|
|||||||
mklink /d .\config\nvim %USER%\AppData\nvim
|
|
||||||
REM mklink /d .\config\nushell %USER%\AppData\nushell
|
|
||||||