diff --git a/config/nix/Makefile b/Makefile similarity index 100% rename from config/nix/Makefile rename to Makefile diff --git a/config/nix/common/firefox.nix b/common/firefox.nix similarity index 100% rename from config/nix/common/firefox.nix rename to common/firefox.nix diff --git a/config/nix/common/home.nix b/common/home.nix similarity index 100% rename from config/nix/common/home.nix rename to common/home.nix diff --git a/config/nix/common/nvim.nix b/common/nvim.nix similarity index 100% rename from config/nix/common/nvim.nix rename to common/nvim.nix diff --git a/config/nix/common/tmux.nix b/common/tmux.nix similarity index 100% rename from config/nix/common/tmux.nix rename to common/tmux.nix diff --git a/config/nix/common/wezterm.nix b/common/wezterm.nix similarity index 100% rename from config/nix/common/wezterm.nix rename to common/wezterm.nix diff --git a/config/fish/completions/fisher.fish b/config/fish/completions/fisher.fish deleted file mode 100644 index 6d23ce49..00000000 --- a/config/fish/completions/fisher.fish +++ /dev/null @@ -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)" diff --git a/config/fish/completions/profile.fish b/config/fish/completions/profile.fish deleted file mode 100644 index e69de29b..00000000 diff --git a/config/fish/completions/sflasher.fish b/config/fish/completions/sflasher.fish deleted file mode 100755 index 87ebd340..00000000 --- a/config/fish/completions/sflasher.fish +++ /dev/null @@ -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" diff --git a/config/fish/conf.d/abbr.fish b/config/fish/conf.d/abbr.fish deleted file mode 100644 index 827a8fdf..00000000 --- a/config/fish/conf.d/abbr.fish +++ /dev/null @@ -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 diff --git a/config/fish/conf.d/alias.fish b/config/fish/conf.d/alias.fish deleted file mode 100644 index b73556a5..00000000 --- a/config/fish/conf.d/alias.fish +++ /dev/null @@ -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' diff --git a/config/fish/conf.d/bun.fish b/config/fish/conf.d/bun.fish deleted file mode 100644 index 36124597..00000000 --- a/config/fish/conf.d/bun.fish +++ /dev/null @@ -1,2 +0,0 @@ -export BUN_INSTALL="$HOME/.bun" -export PATH="$BUN_INSTALL/bin:$PATH" diff --git a/config/fish/conf.d/fzf.fish b/config/fish/conf.d/fzf.fish deleted file mode 100644 index 6100187a..00000000 --- a/config/fish/conf.d/fzf.fish +++ /dev/null @@ -1,2 +0,0 @@ -# export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git" -export FZF_DEFAULT_COMMAND="fd --type f" diff --git a/config/fish/conf.d/linux/fnm.fish b/config/fish/conf.d/linux/fnm.fish deleted file mode 100644 index 10898ac0..00000000 --- a/config/fish/conf.d/linux/fnm.fish +++ /dev/null @@ -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"; diff --git a/config/fish/conf.d/linux/handlr.fish b/config/fish/conf.d/linux/handlr.fish deleted file mode 100644 index 0ee496f5..00000000 --- a/config/fish/conf.d/linux/handlr.fish +++ /dev/null @@ -1,3 +0,0 @@ -function open - handlr open $argv -end diff --git a/config/fish/conf.d/macos/00brew.fish b/config/fish/conf.d/macos/00brew.fish deleted file mode 100644 index f264d555..00000000 --- a/config/fish/conf.d/macos/00brew.fish +++ /dev/null @@ -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 diff --git a/config/fish/conf.d/macos/99-ports.fish b/config/fish/conf.d/macos/99-ports.fish deleted file mode 100644 index b08aba0e..00000000 --- a/config/fish/conf.d/macos/99-ports.fish +++ /dev/null @@ -1,3 +0,0 @@ -if [ (uname) = "Darwin" ] - export PATH="/opt/local/bin:$PATH" -end diff --git a/config/fish/conf.d/macos/fnm.fish b/config/fish/conf.d/macos/fnm.fish deleted file mode 100644 index 2623bbff..00000000 --- a/config/fish/conf.d/macos/fnm.fish +++ /dev/null @@ -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"; diff --git a/config/fish/conf.d/nvim.fish b/config/fish/conf.d/nvim.fish deleted file mode 100644 index 2f9c223c..00000000 --- a/config/fish/conf.d/nvim.fish +++ /dev/null @@ -1 +0,0 @@ -export EDITOR=nvim diff --git a/config/fish/conf.d/os.fish b/config/fish/conf.d/os.fish deleted file mode 100644 index c16f57f7..00000000 --- a/config/fish/conf.d/os.fish +++ /dev/null @@ -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 - diff --git a/config/fish/conf.d/starship.fish b/config/fish/conf.d/starship.fish deleted file mode 100644 index c179c03c..00000000 --- a/config/fish/conf.d/starship.fish +++ /dev/null @@ -1 +0,0 @@ -starship init fish | source diff --git a/config/fish/conf.d/zoxide.fish b/config/fish/conf.d/zoxide.fish deleted file mode 100644 index 2e9cc179..00000000 --- a/config/fish/conf.d/zoxide.fish +++ /dev/null @@ -1 +0,0 @@ -zoxide init fish | source diff --git a/config/fish/config.fish b/config/fish/config.fish deleted file mode 100644 index 0a5d5299..00000000 --- a/config/fish/config.fish +++ /dev/null @@ -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 diff --git a/config/fish/fish_plugins b/config/fish/fish_plugins deleted file mode 100644 index 8e3516fb..00000000 --- a/config/fish/fish_plugins +++ /dev/null @@ -1,2 +0,0 @@ -jorgebucaran/fisher -edc/bass diff --git a/config/fish/fish_variables b/config/fish/fish_variables deleted file mode 100644 index 8693436b..00000000 --- a/config/fish/fish_variables +++ /dev/null @@ -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 diff --git a/config/fish/functions/cclose.fish b/config/fish/functions/cclose.fish deleted file mode 100644 index 9fc7d08b..00000000 --- a/config/fish/functions/cclose.fish +++ /dev/null @@ -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 - - diff --git a/config/fish/functions/fisher.fish b/config/fish/functions/fisher.fish deleted file mode 100644 index 64074798..00000000 --- a/config/fish/functions/fisher.fish +++ /dev/null @@ -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 Install plugins" - echo " fisher remove Remove installed plugins" - echo " fisher update Update installed plugins" - echo " fisher update Update all installed plugins" - echo " fisher list [] 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 diff --git a/config/fish/functions/ga.fish b/config/fish/functions/ga.fish deleted file mode 100644 index e11f9319..00000000 --- a/config/fish/functions/ga.fish +++ /dev/null @@ -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 - - diff --git a/config/fish/functions/zls.fish b/config/fish/functions/zls.fish deleted file mode 100644 index cbc1d703..00000000 --- a/config/fish/functions/zls.fish +++ /dev/null @@ -1 +0,0 @@ -function list_dir --on-variable PWD; ls -F; end; diff --git a/config/ironbar/config.yaml b/config/ironbar/config.yaml deleted file mode 100644 index 1b29c599..00000000 --- a/config/ironbar/config.yaml +++ /dev/null @@ -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 diff --git a/config/ironbar/style.css b/config/ironbar/style.css deleted file mode 120000 index 3dfc4e0f..00000000 --- a/config/ironbar/style.css +++ /dev/null @@ -1 +0,0 @@ -/nix/store/87j6kznxyqcic67gphrcyb5bz6ydnfpl-home-manager-files/.config/ironbar/style.css \ No newline at end of file diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf deleted file mode 100644 index 87a2a915..00000000 --- a/config/kitty/kitty.conf +++ /dev/null @@ -1,1295 +0,0 @@ -# vim:fileencoding=utf-8:ft=conf:foldmethod=marker - -#: Fonts {{{ - -#: kitty has very powerful font management. You can configure -#: individual font faces and even specify special fonts for particular -#: characters. - -# font_family JetBrainsMono Nerd Font Mono -font_family Hasklug Nerd Font Mono -bold_font auto -italic_font auto -bold_italic_font auto - -#: You can specify different fonts for the bold/italic/bold-italic -#: variants. To get a full list of supported fonts use the `kitty -#: list-fonts` command. By default they are derived automatically, by -#: the OSes font system. Setting them manually is useful for font -#: families that have many weight variants like Book, Medium, Thick, -#: etc. For example:: - -#: font_family Operator Mono Book -#: bold_font Operator Mono Medium -#: italic_font Operator Mono Book Italic -#: bold_italic_font Operator Mono Medium Italic - -font_size 11 - -#: Font size (in pts) - -force_ltr no - -#: kitty does not support BIDI (bidirectional text), however, for RTL -#: scripts, words are automatically displayed in RTL. That is to say, -#: in an RTL script, the words "HELLO WORLD" display in kitty as -#: "WORLD HELLO", and if you try to select a substring of an RTL- -#: shaped string, you will get the character that would be there had -#: the the string been LTR. For example, assuming the Hebrew word -#: ירושלים, selecting the character that on the screen appears to be ם -#: actually writes into the selection buffer the character י. - -#: kitty's default behavior is useful in conjunction with a filter to -#: reverse the word order, however, if you wish to manipulate RTL -#: glyphs, it can be very challenging to work with, so this option is -#: provided to turn it off. Furthermore, this option can be used with -#: the command line program GNU FriBidi -#: to get BIDI -#: support, because it will force kitty to always treat the text as -#: LTR, which FriBidi expects for terminals. - -adjust_line_height 0 -adjust_column_width 0 - -#: Change the size of each character cell kitty renders. You can use -#: either numbers, which are interpreted as pixels or percentages -#: (number followed by %), which are interpreted as percentages of the -#: unmodified values. You can use negative pixels or percentages less -#: than 100% to reduce sizes (but this might cause rendering -#: artifacts). - -# symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols - -#: Map the specified unicode codepoints to a particular font. Useful -#: if you need special rendering for some symbols, such as for -#: Powerline. Avoids the need for patched fonts. Each unicode code -#: point is specified in the form U+. You -#: can specify multiple code points, separated by commas and ranges -#: separated by hyphens. symbol_map itself can be specified multiple -#: times. Syntax is:: - -#: symbol_map codepoints Font Family Name - -disable_ligatures never - -#: Choose how you want to handle multi-character ligatures. The -#: default is to always render them. You can tell kitty to not render -#: them when the cursor is over them by using cursor to make editing -#: easier, or have kitty never render them at all by using always, if -#: you don't like them. The ligature strategy can be set per-window -#: either using the kitty remote control facility or by defining -#: shortcuts for it in kitty.conf, for example:: - -#: map alt+1 disable_ligatures_in active always -#: map alt+2 disable_ligatures_in all never -#: map alt+3 disable_ligatures_in tab cursor - -#: Note that this refers to programming ligatures, typically -#: implemented using the calt OpenType feature. For disabling general -#: ligatures, use the font_features setting. - -font_features none - -#: Choose exactly which OpenType features to enable or disable. This -#: is useful as some fonts might have features worthwhile in a -#: terminal. For example, Fira Code Retina includes a discretionary -#: feature, zero, which in that font changes the appearance of the -#: zero (0), to make it more easily distinguishable from Ø. Fira Code -#: Retina also includes other discretionary features known as -#: Stylistic Sets which have the tags ss01 through ss20. - -#: Note that this code is indexed by PostScript name, and not the font -#: family. This allows you to define very precise feature settings; -#: e.g. you can disable a feature in the italic font but not in the -#: regular font. - -#: On Linux, these are read from the FontConfig database first and -#: then this, setting is applied, so they can be configured in a -#: single, central place. - -#: To get the PostScript name for a font, use kitty + list-fonts -#: --psnames: - -#: .. code-block:: sh - -#: $ kitty + list-fonts --psnames | grep Fira -#: Fira Code -#: Fira Code Bold (FiraCode-Bold) -#: Fira Code Light (FiraCode-Light) -#: Fira Code Medium (FiraCode-Medium) -#: Fira Code Regular (FiraCode-Regular) -#: Fira Code Retina (FiraCode-Retina) - -#: The part in brackets is the PostScript name. - -#: Enable alternate zero and oldstyle numerals:: - -#: font_features FiraCode-Retina +zero +onum - -#: Enable only alternate zero:: - -#: font_features FiraCode-Retina +zero - -#: Disable the normal ligatures, but keep the calt feature which (in -#: this font) breaks up monotony:: - -#: font_features TT2020StyleB-Regular -liga +calt - -#: In conjunction with force_ltr, you may want to disable Arabic -#: shaping entirely, and only look at their isolated forms if they -#: show up in a document. You can do this with e.g.:: - -#: font_features UnifontMedium +isol -medi -fina -init - -box_drawing_scale 0.001, 1, 1.5, 2 - -#: Change the sizes of the lines used for the box drawing unicode -#: characters These values are in pts. They will be scaled by the -#: monitor DPI to arrive at a pixel value. There must be four values -#: corresponding to thin, normal, thick, and very thick lines. - -#: }}} - -#: Cursor customization {{{ - -cursor #cccccc - -#: Default cursor color - -cursor_text_color #111111 - -#: Choose the color of text under the cursor. If you want it rendered -#: with the background color of the cell underneath instead, use the -#: special keyword: background - -cursor_shape block - -#: The cursor shape can be one of (block, beam, underline) - -cursor_beam_thickness 1.5 - -#: Defines the thickness of the beam cursor (in pts) - -cursor_underline_thickness 2.0 - -#: Defines the thickness of the underline cursor (in pts) - -cursor_blink_interval -1 - -#: The interval (in seconds) at which to blink the cursor. Set to zero -#: to disable blinking. Negative values mean use system default. Note -#: that numbers smaller than repaint_delay will be limited to -#: repaint_delay. - -cursor_stop_blinking_after 15.0 - -#: Stop blinking cursor after the specified number of seconds of -#: keyboard inactivity. Set to zero to never stop blinking. - -#: }}} - -#: Scrollback {{{ - -scrollback_lines 2000 - -#: Number of lines of history to keep in memory for scrolling back. -#: Memory is allocated on demand. Negative numbers are (effectively) -#: infinite scrollback. Note that using very large scrollback is not -#: recommended as it can slow down performance of the terminal and -#: also use large amounts of RAM. Instead, consider using -#: scrollback_pager_history_size. - -scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER - -#: Program with which to view scrollback in a new window. The -#: scrollback buffer is passed as STDIN to this program. If you change -#: it, make sure the program you use can handle ANSI escape sequences -#: for colors and text formatting. INPUT_LINE_NUMBER in the command -#: line above will be replaced by an integer representing which line -#: should be at the top of the screen. Similarly CURSOR_LINE and -#: CURSOR_COLUMN will be replaced by the current cursor position. - -scrollback_pager_history_size 0 - -#: Separate scrollback history size, used only for browsing the -#: scrollback buffer (in MB). This separate buffer is not available -#: for interactive scrolling but will be piped to the pager program -#: when viewing scrollback buffer in a separate window. The current -#: implementation stores the data in UTF-8, so approximatively 10000 -#: lines per megabyte at 100 chars per line, for pure ASCII text, -#: unformatted text. A value of zero or less disables this feature. -#: The maximum allowed size is 4GB. - -wheel_scroll_multiplier 5.0 - -#: Modify the amount scrolled by the mouse wheel. Note this is only -#: used for low precision scrolling devices, not for high precision -#: scrolling on platforms such as macOS and Wayland. Use negative -#: numbers to change scroll direction. - -touch_scroll_multiplier 1.0 - -#: Modify the amount scrolled by a touchpad. Note this is only used -#: for high precision scrolling devices on platforms such as macOS and -#: Wayland. Use negative numbers to change scroll direction. - -#: }}} - -#: Mouse {{{ - -mouse_hide_wait 3.0 - -#: Hide mouse cursor after the specified number of seconds of the -#: mouse not being used. Set to zero to disable mouse cursor hiding. -#: Set to a negative value to hide the mouse cursor immediately when -#: typing text. Disabled by default on macOS as getting it to work -#: robustly with the ever-changing sea of bugs that is Cocoa is too -#: much effort. - -url_color #0087bd -url_style curly - -#: The color and style for highlighting URLs on mouse-over. url_style -#: can be one of: none, single, double, curly - -open_url_modifiers kitty_mod - -#: The modifier keys to press when clicking with the mouse on URLs to -#: open the URL - -open_url_with default - -#: The program with which to open URLs that are clicked on. The -#: special value default means to use the operating system's default -#: URL handler. - -url_prefixes http https file ftp - -#: The set of URL prefixes to look for when detecting a URL under the -#: mouse cursor. - -detect_urls yes - -#: Detect URLs under the mouse. Detected URLs are highlighted with an -#: underline and the mouse cursor becomes a hand over them. Even if -#: this option is disabled, URLs are still clickable. - -copy_on_select no - -#: Copy to clipboard or a private buffer on select. With this set to -#: clipboard, simply selecting text with the mouse will cause the text -#: to be copied to clipboard. Useful on platforms such as macOS that -#: do not have the concept of primary selections. You can instead -#: specify a name such as a1 to copy to a private kitty buffer -#: instead. Map a shortcut with the paste_from_buffer action to paste -#: from this private buffer. For example:: - -#: map cmd+shift+v paste_from_buffer a1 - -#: Note that copying to the clipboard is a security risk, as all -#: programs, including websites open in your browser can read the -#: contents of the system clipboard. - -strip_trailing_spaces never - -#: Remove spaces at the end of lines when copying to clipboard. A -#: value of smart will do it when using normal selections, but not -#: rectangle selections. always will always do it. - -rectangle_select_modifiers ctrl+alt - -#: The modifiers to use rectangular selection (i.e. to select text in -#: a rectangular block with the mouse) - -terminal_select_modifiers shift - -#: The modifiers to override mouse selection even when a terminal -#: application has grabbed the mouse - -select_by_word_characters @-./_~?&=%+# - -#: Characters considered part of a word when double clicking. In -#: addition to these characters any character that is marked as an -#: alphanumeric character in the unicode database will be matched. - -click_interval -1.0 - -#: The interval between successive clicks to detect double/triple -#: clicks (in seconds). Negative numbers will use the system default -#: instead, if available, or fallback to 0.5. - -focus_follows_mouse no - -#: Set the active window to the window under the mouse when moving the -#: mouse around - -pointer_shape_when_grabbed arrow - -#: The shape of the mouse pointer when the program running in the -#: terminal grabs the mouse. Valid values are: arrow, beam and hand - -default_pointer_shape beam - -#: The default shape of the mouse pointer. Valid values are: arrow, -#: beam and hand - -pointer_shape_when_dragging beam - -#: The default shape of the mouse pointer when dragging across text. -#: Valid values are: arrow, beam and hand - -#: }}} - -#: Performance tuning {{{ - -repaint_delay 10 - -#: Delay (in milliseconds) between screen updates. Decreasing it, -#: increases frames-per-second (FPS) at the cost of more CPU usage. -#: The default value yields ~100 FPS which is more than sufficient for -#: most uses. Note that to actually achieve 100 FPS you have to either -#: set sync_to_monitor to no or use a monitor with a high refresh -#: rate. Also, to minimize latency when there is pending input to be -#: processed, repaint_delay is ignored. - -input_delay 3 - -#: Delay (in milliseconds) before input from the program running in -#: the terminal is processed. Note that decreasing it will increase -#: responsiveness, but also increase CPU usage and might cause flicker -#: in full screen programs that redraw the entire screen on each loop, -#: because kitty is so fast that partial screen updates will be drawn. - -sync_to_monitor yes - -#: Sync screen updates to the refresh rate of the monitor. This -#: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing) -#: when scrolling. However, it limits the rendering speed to the -#: refresh rate of your monitor. With a very high speed mouse/high -#: keyboard repeat rate, you may notice some slight input latency. If -#: so, set this to no. - -#: }}} - -#: Terminal bell {{{ - -enable_audio_bell no - -#: Enable/disable the audio bell. Useful in environments that require -#: silence. - -visual_bell_duration 0.0 - -#: Visual bell duration. Flash the screen when a bell occurs for the -#: specified number of seconds. Set to zero to disable. - -window_alert_on_bell yes - -#: Request window attention on bell. Makes the dock icon bounce on -#: macOS or the taskbar flash on linux. - -bell_on_tab yes - -#: Show a bell symbol on the tab if a bell occurs in one of the -#: windows in the tab and the window is not the currently focused -#: window - -command_on_bell none - -#: Program to run when a bell occurs. - -#: }}} - -#: Window layout {{{ - -remember_window_size yes -initial_window_width 640 -initial_window_height 400 - -#: If enabled, the window size will be remembered so that new -#: instances of kitty will have the same size as the previous -#: instance. If disabled, the window will initially have size -#: configured by initial_window_width/height, in pixels. You can use a -#: suffix of "c" on the width/height values to have them interpreted -#: as number of cells instead of pixels. - -enabled_layouts * - -#: The enabled window layouts. A comma separated list of layout names. -#: The special value all means all layouts. The first listed layout -#: will be used as the startup layout. Default configuration is all -#: layouts in alphabetical order. For a list of available layouts, see -#: the https://sw.kovidgoyal.net/kitty/index.html#layouts. - -window_resize_step_cells 2 -window_resize_step_lines 2 - -#: The step size (in units of cell width/cell height) to use when -#: resizing windows. The cells value is used for horizontal resizing -#: and the lines value for vertical resizing. - -window_border_width 0.5pt - -#: The width of window borders. Can be either in pixels (px) or pts -#: (pt). Values in pts will be rounded to the nearest number of pixels -#: based on screen resolution. If not specified the unit is assumed to -#: be pts. Note that borders are displayed only when more than one -#: window is visible. They are meant to separate multiple windows. - -draw_minimal_borders yes - -#: Draw only the minimum borders needed. This means that only the -#: minimum needed borders for inactive windows are drawn. That is only -#: the borders that separate the inactive window from a neighbor. Note -#: that setting a non-zero window margin overrides this and causes all -#: borders to be drawn. - -window_margin_width 0 - -#: The window margin (in pts) (blank area outside the border). A -#: single value sets all four sides. Two values set the vertical and -#: horizontal sides. Three values set top, horizontal and bottom. Four -#: values set top, right, bottom and left. - -single_window_margin_width -1 - -#: The window margin (in pts) to use when only a single window is -#: visible. Negative values will cause the value of -#: window_margin_width to be used instead. A single value sets all -#: four sides. Two values set the vertical and horizontal sides. Three -#: values set top, horizontal and bottom. Four values set top, right, -#: bottom and left. - -window_padding_width 0 - -#: The window padding (in pts) (blank area between the text and the -#: window border). A single value sets all four sides. Two values set -#: the vertical and horizontal sides. Three values set top, horizontal -#: and bottom. Four values set top, right, bottom and left. - -placement_strategy center - -#: When the window size is not an exact multiple of the cell size, the -#: cell area of the terminal window will have some extra padding on -#: the sides. You can control how that padding is distributed with -#: this option. Using a value of center means the cell area will be -#: placed centrally. A value of top-left means the padding will be on -#: only the bottom and right edges. - -active_border_color #00ff00 - -#: The color for the border of the active window. Set this to none to -#: not draw borders around the active window. - -inactive_border_color #cccccc - -#: The color for the border of inactive windows - -bell_border_color #ff5a00 - -#: The color for the border of inactive windows in which a bell has -#: occurred - -inactive_text_alpha 1.0 - -#: Fade the text in inactive windows by the specified amount (a number -#: between zero and one, with zero being fully faded). - -hide_window_decorations no - -#: Hide the window decorations (title-bar and window borders) with -#: yes. On macOS, titlebar-only can be used to only hide the titlebar. -#: Whether this works and exactly what effect it has depends on the -#: window manager/operating system. - -resize_debounce_time 0.1 - -#: The time (in seconds) to wait before redrawing the screen when a -#: resize event is received. On platforms such as macOS, where the -#: operating system sends events corresponding to the start and end of -#: a resize, this number is ignored. - -resize_draw_strategy static - -#: Choose how kitty draws a window while a resize is in progress. A -#: value of static means draw the current window contents, mostly -#: unchanged. A value of scale means draw the current window contents -#: scaled. A value of blank means draw a blank window. A value of size -#: means show the window size in cells. - -resize_in_steps no - -#: Resize the OS window in steps as large as the cells, instead of -#: with the usual pixel accuracy. Combined with an -#: initial_window_width and initial_window_height in number of cells, -#: this option can be used to keep the margins as small as possible -#: when resizing the OS window. Note that this does not currently work -#: on Wayland. - -confirm_os_window_close 0 - -#: Ask for confirmation when closing an OS window or a tab that has at -#: least this number of kitty windows in it. A value of zero disables -#: confirmation. This confirmation also applies to requests to quit -#: the entire application (all OS windows, via the quit action). - -#: }}} - -#: Tab bar {{{ - -tab_bar_edge bottom - -#: Which edge to show the tab bar on, top or bottom - -tab_bar_margin_width 0.0 - -#: The margin to the left and right of the tab bar (in pts) - -tab_bar_style fade - -#: The tab bar style, can be one of: fade, separator, powerline, or -#: hidden. In the fade style, each tab's edges fade into the -#: background color, in the separator style, tabs are separated by a -#: configurable separator, and the powerline shows the tabs as a -#: continuous line. If you use the hidden style, you might want to -#: create a mapping for the select_tab action which presents you with -#: a list of tabs and allows for easy switching to a tab. - -tab_bar_min_tabs 2 - -#: The minimum number of tabs that must exist before the tab bar is -#: shown - -tab_switch_strategy previous - -#: The algorithm to use when switching to a tab when the current tab -#: is closed. The default of previous will switch to the last used -#: tab. A value of left will switch to the tab to the left of the -#: closed tab. A value of right will switch to the tab to the right of -#: the closed tab. A value of last will switch to the right-most tab. - -tab_fade 0.25 0.5 0.75 1 - -#: Control how each tab fades into the background when using fade for -#: the tab_bar_style. Each number is an alpha (between zero and one) -#: that controls how much the corresponding cell fades into the -#: background, with zero being no fade and one being full fade. You -#: can change the number of cells used by adding/removing entries to -#: this list. - -tab_separator " ┇" - -#: The separator between tabs in the tab bar when using separator as -#: the tab_bar_style. - -tab_activity_symbol none - -#: Some text or a unicode symbol to show on the tab if a window in the -#: tab that does not have focus has some activity. - -tab_title_template "{title}" - -#: A template to render the tab title. The default just renders the -#: title. If you wish to include the tab-index as well, use something -#: like: {index}: {title}. Useful if you have shortcuts mapped for -#: goto_tab N. In addition you can use {layout_name} for the current -#: layout name and {num_windows} for the number of windows in the tab. -#: Note that formatting is done by Python's string formatting -#: machinery, so you can use, for instance, {layout_name[:2].upper()} -#: to show only the first two letters of the layout name, upper-cased. -#: If you want to style the text, you can use styling directives, for -#: example: {fmt.fg.red}red{fmt.fg.default}normal{fmt.bg._00FF00}green -#: bg{fmt.bg.normal}. Similarly, for bold and italic: -#: {fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}. - -active_tab_title_template none - -#: Template to use for active tabs, if not specified falls back to -#: tab_title_template. - -active_tab_foreground #000 -active_tab_background #eee -active_tab_font_style bold-italic -inactive_tab_foreground #444 -inactive_tab_background #999 -inactive_tab_font_style normal - -#: Tab bar colors and styles - -tab_bar_background none - -#: Background color for the tab bar. Defaults to using the terminal -#: background color. - -#: }}} - -#: Color scheme {{{ - -#: The foreground and background colors - -background_opacity .80 - -#: The opacity of the background. A number between 0 and 1, where 1 is -#: opaque and 0 is fully transparent. This will only work if -#: supported by the OS (for instance, when using a compositor under -#: X11). Note that it only sets the background color's opacity in -#: cells that have the same background color as the default terminal -#: background. This is so that things like the status bar in vim, -#: powerline prompts, etc. still look good. But it means that if you -#: use a color theme with a background color in your editor, it will -#: not be rendered as transparent. Instead you should change the -#: default background color in your kitty config and not use a -#: background color in the editor color scheme. Or use the escape -#: codes to set the terminals default colors in a shell script to -#: launch your editor. Be aware that using a value less than 1.0 is a -#: (possibly significant) performance hit. If you want to dynamically -#: change transparency of windows set dynamic_background_opacity to -#: yes (this is off by default as it has a performance cost) - -background_image none - -#: Path to a background image. Must be in PNG format. - -background_image_layout tiled - -#: Whether to tile or scale the background image. - -background_image_linear no - -#: When background image is scaled, whether linear interpolation -#: should be used. - -dynamic_background_opacity no - -#: Allow changing of the background_opacity dynamically, using either -#: keyboard shortcuts (increase_background_opacity and -#: decrease_background_opacity) or the remote control facility. - -background_tint 0.0 - -#: How much to tint the background image by the background color. The -#: tint is applied only under the text area, not margin/borders. Makes -#: it easier to read the text. Tinting is done using the current -#: background color for each window. This setting applies only if -#: background_opacity is set and transparent windows are supported or -#: background_image is set. - -dim_opacity 0.75 - -#: How much to dim text that has the DIM/FAINT attribute set. One -#: means no dimming and zero means fully dimmed (i.e. invisible). - -# https://draculatheme.com/kitty -# -# Installation instructions: -# -# cp dracula.conf ~/.config/kitty/ -# echo "include dracula.conf" >> ~/.config/kitty/kitty.conf -# -# Then reload kitty for the config to take affect. -# Alternatively copy paste below directly into kitty.conf - -foreground #f8f8f2 -#background #282a36 -selection_foreground #ffffff -selection_background #44475a - -url_color #8be9fd - -# black -color0 #21222c -color8 #6272a4 - -# red -color1 #ff5555 -color9 #ff6e6e - -# green -color2 #50fa7b -color10 #69ff94 - -# yellow -color3 #f1fa8c -color11 #ffffa5 - -# blue -color4 #bd93f9 -color12 #d6acff - -# magenta -color5 #ff79c6 -color13 #ff92df - -# cyan -color6 #8be9fd -color14 #a4ffff - -# white -color7 #f8f8f2 -color15 #ffffff - -# Cursor colors -cursor #f8f8f2 -cursor_text_color background - -# Tab bar colors -active_tab_foreground #282a36 -active_tab_background #f8f8f2 -inactive_tab_foreground #282a36 -inactive_tab_background #6272a4 - -# Marks -mark1_foreground #282a36 -mark1_background #ff5555 -#: }}} - -#: Advanced {{{ - -# shell . -shell /opt/homebrew/bin/fish - -#: The shell program to execute. The default value of . means to use -#: whatever shell is set as the default shell for the current user. -#: Note that on macOS if you change this, you might need to add -#: --login to ensure that the shell starts in interactive mode and -#: reads its startup rc files. - -editor . - -#: The console editor to use when editing the kitty config file or -#: similar tasks. A value of . means to use the environment variables -#: VISUAL and EDITOR in that order. Note that this environment -#: variable has to be set not just in your shell startup scripts but -#: system-wide, otherwise kitty will not see it. - -close_on_child_death yes - -#: Close the window when the child process (shell) exits. If no (the -#: default), the terminal will remain open when the child exits as -#: long as there are still processes outputting to the terminal (for -#: example disowned or backgrounded processes). If yes, the window -#: will close as soon as the child process exits. Note that setting it -#: to yes means that any background processes still using the terminal -#: can fail silently because their stdout/stderr/stdin no longer work. - -allow_remote_control no - -#: Allow other programs to control kitty. If you turn this on other -#: programs can control all aspects of kitty, including sending text -#: to kitty windows, opening new windows, closing windows, reading the -#: content of windows, etc. Note that this even works over ssh -#: connections. You can chose to either allow any program running -#: within kitty to control it, with yes or only programs that connect -#: to the socket specified with the kitty --listen-on command line -#: option, if you use the value socket-only. The latter is useful if -#: you want to prevent programs running on a remote computer over ssh -#: from controlling kitty. - -listen_on none - -#: Tell kitty to listen to the specified unix/tcp socket for remote -#: control connections. Note that this will apply to all kitty -#: instances. It can be overridden by the kitty --listen-on command -#: line flag. This option accepts only UNIX sockets, such as -#: unix:${TEMP}/mykitty or (on Linux) unix:@mykitty. Environment -#: variables are expanded. If {kitty_pid} is present then it is -#: replaced by the PID of the kitty process, otherwise the PID of the -#: kitty process is appended to the value, with a hyphen. This option -#: is ignored unless you also set allow_remote_control to enable -#: remote control. See the help for kitty --listen-on for more -#: details. - -# env - -#: Specify environment variables to set in all child processes. Note -#: that environment variables are expanded recursively, so if you -#: use:: - -#: env MYVAR1=a -#: env MYVAR2=${MYVAR1}/${HOME}/b - -#: The value of MYVAR2 will be a//b. - -update_check_interval 24 - -#: Periodically check if an update to kitty is available. If an update -#: is found a system notification is displayed informing you of the -#: available update. The default is to check every 24 hrs, set to zero -#: to disable. - -startup_session none - -#: Path to a session file to use for all kitty instances. Can be -#: overridden by using the kitty --session command line option for -#: individual instances. See -#: https://sw.kovidgoyal.net/kitty/index.html#sessions in the kitty -#: documentation for details. Note that relative paths are interpreted -#: with respect to the kitty config directory. Environment variables -#: in the path are expanded. - -clipboard_control write-clipboard write-primary - -#: Allow programs running in kitty to read and write from the -#: clipboard. You can control exactly which actions are allowed. The -#: set of possible actions is: write-clipboard read-clipboard write- -#: primary read-primary. You can additionally specify no-append to -#: disable kitty's protocol extension for clipboard concatenation. The -#: default is to allow writing to the clipboard and primary selection -#: with concatenation enabled. Note that enabling the read -#: functionality is a security risk as it means that any program, even -#: one running on a remote server via SSH can read your clipboard. - -allow_hyperlinks yes - -#: Process hyperlink (OSC 8) escape sequences. If disabled OSC 8 -#: escape sequences are ignored. Otherwise they become clickable -#: links, that you can click by holding down ctrl+shift and clicking -#: with the mouse. The special value of ``ask`` means that kitty will -#: ask before opening the link. - -term xterm-kitty - -#: The value of the TERM environment variable to set. Changing this -#: can break many terminal programs, only change it if you know what -#: you are doing, not because you read some advice on Stack Overflow -#: to change it. The TERM variable is used by various programs to get -#: information about the capabilities and behavior of the terminal. If -#: you change it, depending on what programs you run, and how -#: different the terminal you are changing it to is, various things -#: from key-presses, to colors, to various advanced features may not -#: work. - -#: }}} - -#: OS specific tweaks {{{ - -macos_titlebar_color system - -#: Change the color of the kitty window's titlebar on macOS. A value -#: of system means to use the default system color, a value of -#: background means to use the background color of the currently -#: active window and finally you can use an arbitrary color, such as -#: #12af59 or red. WARNING: This option works by using a hack, as -#: there is no proper Cocoa API for it. It sets the background color -#: of the entire window and makes the titlebar transparent. As such it -#: is incompatible with background_opacity. If you want to use both, -#: you are probably better off just hiding the titlebar with -#: hide_window_decorations. - -macos_option_as_alt no - -#: Use the option key as an alt key. With this set to no, kitty will -#: use the macOS native Option+Key = unicode character behavior. This -#: will break any Alt+key keyboard shortcuts in your terminal -#: programs, but you can use the macOS unicode input technique. You -#: can use the values: left, right, or both to use only the left, -#: right or both Option keys as Alt, instead. - -macos_hide_from_tasks no - -#: Hide the kitty window from running tasks (Option+Tab) on macOS. - -macos_quit_when_last_window_closed no - -#: Have kitty quit when all the top-level windows are closed. By -#: default, kitty will stay running, even with no open windows, as is -#: the expected behavior on macOS. - -macos_window_resizable yes - -#: Disable this if you want kitty top-level (OS) windows to not be -#: resizable on macOS. - -macos_thicken_font 0 - -#: Draw an extra border around the font with the given width, to -#: increase legibility at small font sizes. For example, a value of -#: 0.75 will result in rendering that looks similar to sub-pixel -#: antialiasing at common font sizes. - -macos_traditional_fullscreen no - -#: Use the traditional full-screen transition, that is faster, but -#: less pretty. - -macos_show_window_title_in all - -#: Show or hide the window title in the macOS window or menu-bar. A -#: value of window will show the title of the currently active window -#: at the top of the macOS window. A value of menubar will show the -#: title of the currently active window in the macOS menu-bar, making -#: use of otherwise wasted space. all will show the title everywhere -#: and none hides the title in the window and the menu-bar. - -macos_custom_beam_cursor no - -#: Enable/disable custom mouse cursor for macOS that is easier to see -#: on both light and dark backgrounds. WARNING: this might make your -#: mouse cursor invisible on dual GPU machines. - -linux_display_server auto - -#: Choose between Wayland and X11 backends. By default, an appropriate -#: backend based on the system state is chosen automatically. Set it -#: to x11 or wayland to force the choice. - -#: }}} - -#: Keyboard shortcuts {{{ - -#: For a list of key names, see: the GLFW key macros -#: . -#: The name to use is the part after the GLFW_KEY_ prefix. For a list -#: of modifier names, see: GLFW mods -#: - -#: On Linux you can also use XKB key names to bind keys that are not -#: supported by GLFW. See XKB keys -#: for a list of key names. The name to use is the part -#: after the XKB_KEY_ prefix. Note that you can only use an XKB key -#: name for keys that are not known as GLFW keys. - -#: Finally, you can use raw system key codes to map keys, again only -#: for keys that are not known as GLFW keys. To see the system key -#: code for a key, start kitty with the kitty --debug-keyboard option. -#: Then kitty will output some debug text for every key event. In that -#: text look for ``native_code`` the value of that becomes the key -#: name in the shortcut. For example: - -#: .. code-block:: none - -#: on_key_input: glfw key: 65 native_code: 0x61 action: PRESS mods: 0x0 text: 'a' - -#: Here, the key name for the A key is 0x61 and you can use it with:: - -#: map ctrl+0x61 something - -#: to map ctrl+a to something. - -#: You can use the special action no_op to unmap a keyboard shortcut -#: that is assigned in the default configuration:: - -#: map kitty_mod+space no_op - -#: You can combine multiple actions to be triggered by a single -#: shortcut, using the syntax below:: - -#: map key combine action1 action2 action3 ... - -#: For example:: - -#: map kitty_mod+e combine : new_window : next_layout - -#: this will create a new window and switch to the next available -#: layout - -#: You can use multi-key shortcuts using the syntax shown below:: - -#: map key1>key2>key3 action - -#: For example:: - -#: map ctrl+f>2 set_font_size 20 - -kitty_mod ctrl+shift - -#: The value of kitty_mod is used as the modifier for all default -#: shortcuts, you can change it in your kitty.conf to change the -#: modifiers for all the default shortcuts. - -clear_all_shortcuts no - -#: You can have kitty remove all shortcut definition seen up to this -#: point. Useful, for instance, to remove the default shortcuts. - -# kitten_alias hints hints --hints-offset=0 - -#: You can create aliases for kitten names, this allows overriding the -#: defaults for kitten options and can also be used to shorten -#: repeated mappings of the same kitten with a specific group of -#: options. For example, the above alias changes the default value of -#: kitty +kitten hints --hints-offset to zero for all mappings, -#: including the builtin ones. - -#: Clipboard {{{ - -map kitty_mod+c copy_to_clipboard - -#: There is also a copy_or_interrupt action that can be optionally -#: mapped to Ctrl+c. It will copy only if there is a selection and -#: send an interrupt otherwise. Similarly, copy_and_clear_or_interrupt -#: will copy and clear the selection or send an interrupt if there is -#: no selection. - -map kitty_mod+v paste_from_clipboard -map kitty_mod+s paste_from_selection -map shift+insert paste_from_selection -map kitty_mod+o pass_selection_to_program - -#: You can also pass the contents of the current selection to any -#: program using pass_selection_to_program. By default, the system's -#: open program is used, but you can specify your own, the selection -#: will be passed as a command line argument to the program, for -#: example:: - -#: map kitty_mod+o pass_selection_to_program firefox - -#: You can pass the current selection to a terminal program running in -#: a new kitty window, by using the @selection placeholder:: - -#: map kitty_mod+y new_window less @selection - -#: }}} - -#: Scrolling {{{ - -map kitty_mod+up scroll_line_up -map kitty_mod+k scroll_line_up -map kitty_mod+down scroll_line_down -map kitty_mod+j scroll_line_down -map kitty_mod+page_up scroll_page_up -map kitty_mod+page_down scroll_page_down -map kitty_mod+home scroll_home -map kitty_mod+end scroll_end -map kitty_mod+h show_scrollback - -#: You can pipe the contents of the current screen + history buffer as -#: STDIN to an arbitrary program using the ``launch`` function. For -#: example, the following opens the scrollback buffer in less in an -#: overlay window:: - -#: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R - -#: For more details on piping screen and buffer contents to external -#: programs, see launch. - -#: }}} - -#: Window management {{{ - -map kitty_mod+enter new_window - -#: You can open a new window running an arbitrary program, for -#: example:: - -#: map kitty_mod+y launch mutt - -#: You can open a new window with the current working directory set to -#: the working directory of the current window using:: - -#: map ctrl+alt+enter launch --cwd=current - -#: You can open a new window that is allowed to control kitty via the -#: kitty remote control facility by prefixing the command line with @. -#: Any programs running in that window will be allowed to control -#: kitty. For example:: - -#: map ctrl+enter launch --allow-remote-control some_program - -#: You can open a new window next to the currently active window or as -#: the first window, with:: - -#: map ctrl+n launch --location=neighbor some_program -#: map ctrl+f launch --location=first some_program - -#: For more details, see launch. - -map kitty_mod+n new_os_window - -#: Works like new_window above, except that it opens a top level OS -#: kitty window. In particular you can use new_os_window_with_cwd to -#: open a window with the current working directory. - -map kitty_mod+w close_window -map kitty_mod+] next_window -map kitty_mod+[ previous_window -map kitty_mod+f move_window_forward -map kitty_mod+b move_window_backward -map kitty_mod+` move_window_to_top -map kitty_mod+r start_resizing_window -map kitty_mod+1 first_window -map kitty_mod+2 second_window -map kitty_mod+3 third_window -map kitty_mod+4 fourth_window -map kitty_mod+5 fifth_window -map kitty_mod+6 sixth_window -map kitty_mod+7 seventh_window -map kitty_mod+8 eighth_window -map kitty_mod+9 ninth_window -map kitty_mod+0 tenth_window -#: }}} - -#: Tab management {{{ - -map kitty_mod+right next_tab -map kitty_mod+left previous_tab -map kitty_mod+t new_tab -map kitty_mod+q close_tab -map kitty_mod+. move_tab_forward -map kitty_mod+, move_tab_backward -map kitty_mod+alt+t set_tab_title - -#: You can also create shortcuts to go to specific tabs, with 1 being -#: the first tab, 2 the second tab and -1 being the previously active -#: tab, and any number larger than the last tab being the last tab:: - -#: map ctrl+alt+1 goto_tab 1 -#: map ctrl+alt+2 goto_tab 2 - -#: Just as with new_window above, you can also pass the name of -#: arbitrary commands to run when using new_tab and use -#: new_tab_with_cwd. Finally, if you want the new tab to open next to -#: the current tab rather than at the end of the tabs list, use:: - -#: map ctrl+t new_tab !neighbor [optional cmd to run] -#: }}} - -#: Layout management {{{ - -map kitty_mod+l next_layout - -#: You can also create shortcuts to switch to specific layouts:: - -#: map ctrl+alt+t goto_layout tall -#: map ctrl+alt+s goto_layout stack - -#: Similarly, to switch back to the previous layout:: - -#: map ctrl+alt+p last_used_layout -#: }}} - -#: Font sizes {{{ - -#: You can change the font size for all top-level kitty OS windows at -#: a time or only the current one. - -map kitty_mod+equal change_font_size all +2.0 -map kitty_mod+minus change_font_size all -2.0 -map kitty_mod+backspace change_font_size all 0 - -#: To setup shortcuts for specific font sizes:: - -#: map kitty_mod+f6 change_font_size all 10.0 - -#: To setup shortcuts to change only the current OS window's font -#: size:: - -#: map kitty_mod+f6 change_font_size current 10.0 -#: }}} - -#: Select and act on visible text {{{ - -#: Use the hints kitten to select text and either pass it to an -#: external program or insert it into the terminal or copy it to the -#: clipboard. - -map kitty_mod+e kitten hints - -#: Open a currently visible URL using the keyboard. The program used -#: to open the URL is specified in open_url_with. - -map kitty_mod+p>f kitten hints --type path --program - - -#: Select a path/filename and insert it into the terminal. Useful, for -#: instance to run git commands on a filename output from a previous -#: git command. - -map kitty_mod+p>shift+f kitten hints --type path - -#: Select a path/filename and open it with the default open program. - -map kitty_mod+p>l kitten hints --type line --program - - -#: Select a line of text and insert it into the terminal. Use for the -#: output of things like: ls -1 - -map kitty_mod+p>w kitten hints --type word --program - - -#: Select words and insert into terminal. - -map kitty_mod+p>h kitten hints --type hash --program - - -#: Select something that looks like a hash and insert it into the -#: terminal. Useful with git, which uses sha1 hashes to identify -#: commits - -map kitty_mod+p>n kitten hints --type linenum - -#: Select something that looks like filename:linenum and open it in -#: vim at the specified line number. - -map kitty_mod+p>y kitten hints --type hyperlink - -#: Select a hyperlink (i.e. a URL that has been marked as such by the -#: terminal program, for example, by ls --hyperlink=auto). - - -#: The hints kitten has many more modes of operation that you can map -#: to different shortcuts. For a full description see kittens/hints. -#: }}} - -#: Miscellaneous {{{ - -map kitty_mod+f11 toggle_fullscreen -map kitty_mod+f10 toggle_maximized -map kitty_mod+u kitten unicode_input -map kitty_mod+f2 edit_config_file -map kitty_mod+escape kitty_shell window - -#: Open the kitty shell in a new window/tab/overlay/os_window to -#: control kitty using commands. - -map kitty_mod+a>m set_background_opacity +0.1 -map kitty_mod+a>l set_background_opacity -0.1 -map kitty_mod+a>1 set_background_opacity 1 -map kitty_mod+a>d set_background_opacity default -map kitty_mod+delete clear_terminal reset active - -#: You can create shortcuts to clear/reset the terminal. For example:: - -#: # Reset the terminal -#: map kitty_mod+f9 clear_terminal reset active -#: # Clear the terminal screen by erasing all contents -#: map kitty_mod+f10 clear_terminal clear active -#: # Clear the terminal scrollback by erasing it -#: map kitty_mod+f11 clear_terminal scrollback active -#: # Scroll the contents of the screen into the scrollback -#: map kitty_mod+f12 clear_terminal scroll active - -#: If you want to operate on all windows instead of just the current -#: one, use all instead of active. - -#: It is also possible to remap Ctrl+L to both scroll the current -#: screen contents into the scrollback buffer and clear the screen, -#: instead of just clearing the screen:: - -#: map ctrl+l combine : clear_terminal scroll active : send_text normal,application \x0c - - -#: You can tell kitty to send arbitrary (UTF-8) encoded text to the -#: client program when pressing specified shortcut keys. For example:: - -#: map ctrl+alt+a send_text all Special text - -#: This will send "Special text" when you press the ctrl+alt+a key -#: combination. The text to be sent is a python string literal so you -#: can use escapes like \x1b to send control codes or \u21fb to send -#: unicode characters (or you can just input the unicode characters -#: directly as UTF-8 text). The first argument to send_text is the -#: keyboard modes in which to activate the shortcut. The possible -#: values are normal or application or kitty or a comma separated -#: combination of them. The special keyword all means all modes. The -#: modes normal and application refer to the DECCKM cursor key mode -#: for terminals, and kitty refers to the special kitty extended -#: keyboard protocol. - -#: Another example, that outputs a word and then moves the cursor to -#: the start of the line (same as pressing the Home key):: - -#: map ctrl+alt+a send_text normal Word\x1b[H -#: map ctrl+alt+a send_text application Word\x1bOH - -#: }}} - -# }}} diff --git a/config/kitty/open-actions.conf b/config/kitty/open-actions.conf deleted file mode 100644 index da8ded48..00000000 --- a/config/kitty/open-actions.conf +++ /dev/null @@ -1,3 +0,0 @@ -protocol file -mime image/* -action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH} diff --git a/config/macchina/archlinux.ascii b/config/macchina/archlinux.ascii deleted file mode 100644 index 3032e570..00000000 --- a/config/macchina/archlinux.ascii +++ /dev/null @@ -1,15 +0,0 @@ -              ..              -              cl              -             :ooc             -            ;oooo:            -           .looooo:           -          ;c;:looooc          -         :ooooooooooc         -        :ooooooooooool        -       coooool;;loooool.      -     .looooo'    .oooooo.     -    .ooooooc      ;oooocl'    -   'ooooooo:      'ooooo:,    -  ,oool:,..        ..,:looo;  - :c,.                    .,c: -..                          .' diff --git a/config/macchina/art.ascii b/config/macchina/art.ascii deleted file mode 100644 index 53f04b2d..00000000 --- a/config/macchina/art.ascii +++ /dev/null @@ -1,29 +0,0 @@ -⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣠⠤⡤⣄⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣶⣶⠞⠋⢡⠀⠀⠀⢠⡀⠀⠉⠙⠲⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⢞⣉⡴⢁⡾⠁⠀⠀⢸⡆⠀⠀⠀⠉⠳⣦⡀⠀⠈⠋⠳⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⠀⠀⢀⡴⢟⡿⠋⠈⠀⣼⠁⠀⠀⠀⠈⢳⡀⠀⠀⠀⠀⠀⠙⢶⣄⠀⠀⠀⠙⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⠀⣠⠟⢄⡞⠀⠀⠀⢨⡏⠀⠀⠀⠀⠀⠈⢷⠀⠀⠀⠀⠀⠀⠀⠙⢦⡀⠀⠂⠈⢳⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⣠⠿⢀⡞⠀⠀⠀⠀⢻⡇⠀⠀⠀⣀⣀⢀⡈⣇⠀⠀⠀⠀⠀⠀⠀⠀⠳⡄⠀⠀⠀⢻⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⢠⠟⠀⣾⠀⠀⠀⠐⠲⣼⡇⢀⠀⣾⡏⢹⣷⡀⢹⡄⠀⠀⠀⠀⠀⠀⠀⠀⠹⡆⠀⠀⠀⢷⡀⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⠀⣾⠀⢸⠇⠀⢀⣀⣀⣠⠿⠿⠾⠷⢾⡇⢸⡟⠋⠛⠋⠉⠉⠙⠓⠒⠲⠶⠦⣼⢽⡄⠀⠀⠘⣇⠀⠀⠀⠀⠀⠀⠀⠀ -⠀⠀⣼⠋⠀⣿⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠛⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⠠⢿⡀⠀⠀⢻⡀⠀⠀⠀⠀⠀⠀⠀ -⠀⢀⣿⠀⢠⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠈⡷⢄⠀⢸⣇⠀⠀⠀⠀⠀⠀⠀ -⠀⢸⠁⠸⢹⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣶⠀⢹⡀⠀⠈⣿⠀⠀⠀⠀⠀⠀⠀ -⠀⣼⠀⠀⣿⣽⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⢦⡜⢷⠄⠀⣿⡄⠀⠀⠀⠀⠀⠀ -⢀⡏⠀⠀⣿⢺⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡿⠀⠀⠀⠀⠀⢻⡇⠀⠀⠀⠀⠀⠀ -⢸⡇⠀⠀⣿⢼⡇⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⣇⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ -⣾⣿⠀⡀⢹⣼⡇⠀⠀⠀⠀⠀⣿⣿⠆⠀⠀⠐⠒⠒⠒⠀⠀⢼⣿⡷⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ -⣿⣿⣄⢣⠸⣿⡇⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠁⠀⠀⠀⠀⠀⠀⡇⠀⠈⢳⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ -⣿⡇⣏⡄⣧⢺⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⣸⡇⠀⠀⠀⠀⠀⠀ -⣿⣿⣿⡃⠈⠈⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⢰⠀⢸⠀⠀⣾⡇⠀⠀⠀⠀⠀⠀ -⢹⣧⢻⡆⠀⠀⢻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⢸⠀⢸⠀⠀⢸⡇⠀⠀⠀⠀⠀⠀ -⢸⣿⢸⡇⢠⣀⠻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⡿⠀⢸⠀⠀⢺⣷⠀⠀⠀⠀⠀⠀ -⠈⣿⣆⡇⠀⢹⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣧⡇⠀⢸⠀⠀⢸⢸⠀⠀⠀⠀⠀⠀ -⠀⠸⣿⣧⠀⣾⡟⡷⢤⣤⣤⠴⣶⣶⣶⠶⣶⣶⣖⣲⠒⢒⣒⣶⣶⣷⣾⠒⣶⢲⠒⠲⣿⠇⠀⢸⠀⠄⣾⢸⠀⠀⠀⠀⠀⠀ -⠀⠀⠹⣿⡄⢸⡇⢹⡄⠀⢹⠀⢸⡀⢾⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡿⢻⠀⣿⢸⡄⠀⡞⠀⠀⢸⢀⡄⣿⢺⡆⠀⠀⠀⠀⠀ -⠀⠀⠀⠙⣿⠀⡇⠐⣇⠀⢸⠀⠈⣇⢸⣇⣬⣿⣿⣹⣿⣿⣿⣿⠟⠀⢸⣤⣏⢸⠆⢠⡇⠀⠀⢸⠀⠁⢯⢸⣷⠀⠀⠀⠀⠀ -⠀⠀⠀⠀⣿⡆⣧⠀⠹⡄⠘⡇⠀⣿⣿⣿⣿⡟⢿⣿⣿⠿⠟⠁⠀⠀⠸⣿⣿⣿⣀⣾⠀⠀⠀⠸⠀⠀⠸⡖⢹⡀⠀⠀⠀⠀ -⠀⠀⠀⠀⢻⠀⣿⠀⠀⢧⢠⣧⣼⣿⣿⣿⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢹⣿⢹⣿⣶⣶⣤⣀⡀⠀⠀⢻⠘⡇⠀⠀⠀⠀ -⠀⠀⠀⠀⢸⠀⣹⣠⣴⣾⣾⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡿⣸⣿⣿⣿⣿⣿⣿⣿⣶⣾⣤⣷⠀⠀⠀⠀ -⠀⠀⣀⣠⠾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⢀⣀⣀⣤⣄⣀⠀⠀⣾⣿⣷⣿⣿⣿⣿⠿⢿⣿⣿⣿⣿⣽⣿⣿⣷⣤⡀ -⣴⣿⣿⣿⣷⣶⣤⣤⣌⣙⣛⡻⠿⣿⣿⣿⣿⣿⡟⢛⣋⣉⣁⣈⡛⡿⣾⣿⣿⣿⣿⠟⣋⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ diff --git a/config/macchina/art.ascii.bak b/config/macchina/art.ascii.bak deleted file mode 100644 index c789c6c5..00000000 --- a/config/macchina/art.ascii.bak +++ /dev/null @@ -1,8 +0,0 @@ -MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM -MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM -MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM -MMMMMMMMMMMMMMNWMMMMMMMMMMMMMM -MMMMMMMMMMMWX0kOOO0XMMMMMMMMMM -MMMMMMMMMMMKk0OO0kOk0MMMMMMMMM -MMMMMMMMMMXkOXNXX00xOMMMMMMMMM -MMMMMMMMMM0kXMWXN0OKXMMMMMMMMM diff --git a/config/macchina/image.png b/config/macchina/image.png deleted file mode 100644 index cd221f53..00000000 Binary files a/config/macchina/image.png and /dev/null differ diff --git a/config/macchina/macchina.toml b/config/macchina/macchina.toml deleted file mode 100644 index d9188712..00000000 --- a/config/macchina/macchina.toml +++ /dev/null @@ -1,5 +0,0 @@ -long_shell = true -long_uptime = true -current_shell = true -physical_cores = true -theme = "Beryllium" diff --git a/config/macchina/themes/Beryllium.toml b/config/macchina/themes/Beryllium.toml deleted file mode 100644 index cada9749..00000000 --- a/config/macchina/themes/Beryllium.toml +++ /dev/null @@ -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" diff --git a/config/macchina/themes/Hydrogen.toml b/config/macchina/themes/Hydrogen.toml deleted file mode 100644 index 5280ec20..00000000 --- a/config/macchina/themes/Hydrogen.toml +++ /dev/null @@ -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" diff --git a/config/neomutt/aliases b/config/neomutt/aliases deleted file mode 100644 index bdbd7219..00000000 --- a/config/neomutt/aliases +++ /dev/null @@ -1,2 +0,0 @@ -alias disroot Uttarayan Mondal -alias gmail Uttarayan Mondal diff --git a/config/neomutt/disroot/uttarayan21 b/config/neomutt/disroot/uttarayan21 deleted file mode 100644 index 8bb141be..00000000 --- a/config/neomutt/disroot/uttarayan21 +++ /dev/null @@ -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 diff --git a/config/neomutt/dracula b/config/neomutt/dracula deleted file mode 160000 index 3072ba9a..00000000 --- a/config/neomutt/dracula +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3072ba9aa0af9781c1f9d361e4c8e736c1349ed1 diff --git a/config/neomutt/gmail/uttarayan21 b/config/neomutt/gmail/uttarayan21 deleted file mode 100644 index 34bf814a..00000000 --- a/config/neomutt/gmail/uttarayan21 +++ /dev/null @@ -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 diff --git a/config/neomutt/mailcap b/config/neomutt/mailcap deleted file mode 100644 index a344af05..00000000 --- a/config/neomutt/mailcap +++ /dev/null @@ -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 diff --git a/config/neomutt/neomuttrc b/config/neomutt/neomuttrc deleted file mode 100644 index 52f6d36a..00000000 --- a/config/neomutt/neomuttrc +++ /dev/null @@ -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 'source ~/.config/neomutt/gmail/uttarayan21!' -macro index 'source ~/.config/neomutt/disroot/uttarayan21!' - -# 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 diff --git a/config/neomutt/signature b/config/neomutt/signature deleted file mode 100644 index 6323c4ef..00000000 --- a/config/neomutt/signature +++ /dev/null @@ -1 +0,0 @@ -Uttarayan Mondal diff --git a/config/neomutt/vimkeys.muttrc b/config/neomutt/vimkeys.muttrc deleted file mode 100644 index 8ccbefa1..00000000 --- a/config/neomutt/vimkeys.muttrc +++ /dev/null @@ -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 diff --git a/config/newsboat/config b/config/newsboat/config deleted file mode 100644 index c5677e01..00000000 --- a/config/newsboat/config +++ /dev/null @@ -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! ' -" -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 diff --git a/config/nushell/.gitignore b/config/nushell/.gitignore deleted file mode 100644 index 02834ea1..00000000 --- a/config/nushell/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -history.sqlite3 -history.sqlite3-wal -history.sqlite3-shm -history.txt diff --git a/config/nushell/conf.d/alias.nu b/config/nushell/conf.d/alias.nu deleted file mode 100644 index d94ef4d9..00000000 --- a/config/nushell/conf.d/alias.nu +++ /dev/null @@ -1,4 +0,0 @@ -alias ll = ls -al -alias cd = z -alias t = ~/.config/tmux/start-tmux -alias yy = yazi diff --git a/config/nushell/conf.d/cargo.nu b/config/nushell/conf.d/cargo.nu deleted file mode 100644 index 05e107b5..00000000 --- a/config/nushell/conf.d/cargo.nu +++ /dev/null @@ -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.+) = "(?P.+)" +# (?P.+)' - } else { - $line | parse --regex '(?P.+) = "(?P.+)"' - } - } - | flatten -} diff --git a/config/nushell/conf.d/conda.nu b/config/nushell/conf.d/conda.nu deleted file mode 100644 index 89a9b4d0..00000000 --- a/config/nushell/conf.d/conda.nu +++ /dev/null @@ -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) - } -} diff --git a/config/nushell/conf.d/starship.nu b/config/nushell/conf.d/starship.nu deleted file mode 100644 index 96e60b54..00000000 --- a/config/nushell/conf.d/starship.nu +++ /dev/null @@ -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)" -} diff --git a/config/nushell/conf.d/zoxide.nu b/config/nushell/conf.d/zoxide.nu deleted file mode 100644 index 7bf72438..00000000 --- a/config/nushell/conf.d/zoxide.nu +++ /dev/null @@ -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. diff --git a/config/nushell/config.nu b/config/nushell/config.nu deleted file mode 100644 index bb946a86..00000000 --- a/config/nushell/config.nu +++ /dev/null @@ -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| -# 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 diff --git a/config/nushell/env.nu b/config/nushell/env.nu deleted file mode 100644 index 5fcf4dae..00000000 --- a/config/nushell/env.nu +++ /dev/null @@ -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, /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, /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 - diff --git a/config/nvim/.gitignore b/config/nvim/.gitignore deleted file mode 100644 index 960189e6..00000000 --- a/config/nvim/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -plugin/* - diff --git a/config/nvim/init.lua b/config/nvim/init.lua deleted file mode 100644 index cebc2077..00000000 --- a/config/nvim/init.lua +++ /dev/null @@ -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') diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json deleted file mode 100644 index 6f2fda36..00000000 --- a/config/nvim/lazy-lock.json +++ /dev/null @@ -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" } -} \ No newline at end of file diff --git a/config/nvim/lua/.luarc.json b/config/nvim/lua/.luarc.json deleted file mode 100644 index 1e1765c6..00000000 --- a/config/nvim/lua/.luarc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "diagnostics.globals": [ - "vim" - ] -} \ No newline at end of file diff --git a/config/nvim/lua/colorscheme.lua b/config/nvim/lua/colorscheme.lua deleted file mode 100644 index 37885ec5..00000000 --- a/config/nvim/lua/colorscheme.lua +++ /dev/null @@ -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", -}) diff --git a/config/nvim/lua/functions.lua b/config/nvim/lua/functions.lua deleted file mode 100644 index e69de29b..00000000 diff --git a/config/nvim/lua/keymaps.lua b/config/nvim/lua/keymaps.lua deleted file mode 100644 index 1bb7e1c7..00000000 --- a/config/nvim/lua/keymaps.lua +++ /dev/null @@ -1,127 +0,0 @@ ----@diagnostic disable: redefined-local -local vim = vim -vim.api.nvim_set_keymap('', '', '', { noremap = true, silent = true }) -vim.g.mapleader = " " -vim.g.maplocalleader = " " --- nnoremap lua require'dap'.continue() --- nnoremap lua require'dap'.step_over() --- nnoremap lua require'dap'.step_into() --- nnoremap lua require'dap'.step_out() --- nnoremap b lua require'dap'.toggle_breakpoint() --- nnoremap B lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: ')) --- nnoremap lp lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) --- nnoremap dr lua require'dap'.repl.open() --- nnoremap dl lua require'dap'.run_last() - - -local options = { noremap = true, silent = true } -local normal_mode_maps = { - -- toggles - { key = '', map = [[set number! relativenumber!]] }, - - -- dap - { key = '', map = [[lua require'dap'.continue()]] }, - { key = '', map = [[lua require'dap'.step_over()]] }, - { key = '', map = [[lua require'dap'.step_into()]] }, - { key = '', map = [[lua require'dap'.step_out()]] }, - { key = 'bb', map = [[lua require'dap'.toggle_breakpoint()]] }, - { key = 'B', map = [[lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))]] }, - { - key = 'lp', - map = [[lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))]] - }, - { key = 'dr', map = [[lua require'dap'.repl.open()]] }, - { key = 'dl', map = [[lua require'dap'.run_last()]] }, - - -- navigation - { key = '', map = [[]] }, - { key = 'n', map = [[bnext]] }, - { key = 'p', map = [[bprev]] }, - { key = 'q', map = [[bw]] }, - { key = 'v', map = [[CHADopen]] }, - - -- " Find files using Telescope command-line sugar. - { key = 'ff', map = [[lua require('telescope.builtin').find_files()]] }, - { key = 'gg', map = [[lua require('telescope.builtin').live_grep()]] }, - { key = ';', map = [[lua require('telescope.builtin').buffers()]] }, - { key = 'fh', map = [[lua require('telescope.builtin').help_tags()]] }, - { key = 'gB', map = [[Git blame]] }, - { key = 'rd', map = [[RustDebuggables]] }, - -- { key = 'rr', map = vim.cmd.RustLsp('runnables') }, - { key = 'vff', map = [[vertical Gdiffsplit]] }, - -- { key = 'vff!', map = [[vertical Gdiffsplit!]] }, - -- { key = 'ssr', map = [[lua require'rust-tools'.ssr.ssr(query)]] }, - { key = 'ssr', map = [[lua require("ssr").open()]] }, - { key = '', map = [[ToggleTerm]] }, - - -- Session - { key = 'ss', map = [[SessionSave]] }, - { key = 'sl', map = [[SessionLoad]] }, - - -- lsp - -- { key = 'K', map = [[lua vim.lsp.buf.hover()]] }, - -- vim.keymap.set('n', 'K', 'Lspsaga hover_doc') - { key = 'K', map = [[Lspsaga hover_doc]] }, - { key = '', map = [[lua vim.lsp.buf.definition()]] }, - { key = 'gi', map = [[lua vim.lsp.buf.implementation()]] }, - { key = 'o', map = [[TroubleToggle]] }, - { key = 'dd', map = [[lua require'dapui'.toggle()]] }, - - -- { key = 'a', map = [[lua vim.lsp.buf.document_highlight()]] }, - -- { key = 'c', map = [[lua vim.lsp.buf.clear_references()]] }, - { key = '"', map = [["+]] }, - { key = 'F', map = [[lua vim.lsp.buf.format { async = true }]] }, - { key = '%', map = [[vsplit]] }, - { key = '"', map = [[split]] }, - { key = '', map = [[:SymbolsOutline]] }, - { key = 'a', map = [[:lua vim.lsp.buf.code_action()]] }, - - -- Other - { key = 'm', map = [[silent !mpcfzf]] }, - -- { key = 'l', - -- map = [[lua require('telescope.builtin').lsp_references({include_current_line = true, fname_width = 40})]] }, - { - key = 'l', - map = [[Lspsaga finder]] - }, - { - key = 'i', - map = [[lua require('telescope.builtin').lsp_incoming_calls({fname_width = 40})]] - }, - { - key = 'e', - map = [[RestNvim]] - }, - { key = 'u', map = [[Telescope undo]] }, - { key = '', map = [[Telescope commands]] }, - -- { key = '', map = [[call comfortable_motion#flick(40)]], options = { silent = true } }, - -- { key = '', map = [[call comfortable_motion#flick(-40)]], options = { silent = true } }, - -} - - -local insert_mode_maps = { - { key = '', map = '' }, - -- { key = "", map = 'copilot#Accept("")', options = { silent = true, expr = true } }, - -- { key = "", map = 'copilot#Accept("")', options = { silent = true, expr = true } }, - -- { key = '', map = [[Telescope commands]] }, -} - - -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 diff --git a/config/nvim/lua/lsp.lua b/config/nvim/lua/lsp.lua deleted file mode 100644 index f99de3a8..00000000 --- a/config/nvim/lua/lsp.lua +++ /dev/null @@ -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({}) diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua deleted file mode 100644 index 4fa99906..00000000 --- a/config/nvim/lua/plugins.lua +++ /dev/null @@ -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 = { [""] = trouble.open_with_trouble }, - n = { [""] = 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({ - [''] = cmp.mapping.confirm(), - [''] = cmp.mapping.complete(), - -- [''] = cmp.mapping.complete(), - [''] = cmp.config.next, - [''] = cmp.config.prev, - }) - }) - - cmp.setup.cmdline({ '/', '?' }, { - mapping = cmp.mapping.preset.cmdline { - [''] = cmp.config.disable, - [''] = cmp.config.disable, - }, - sources = { - { name = 'buffer' } - } - }) - cmp.setup.cmdline(':', { - mapping = cmp.mapping.preset.cmdline { - [''] = cmp.config.disable, - [''] = 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 = "", - } - }, - panel = { enabled = true }, - }) - end - }, -}, { - defaults = { - lazy = true, - } -}); diff --git a/config/nvim/lua/setup/dashboard.lua b/config/nvim/lua/setup/dashboard.lua deleted file mode 100644 index d8ecd06c..00000000 --- a/config/nvim/lua/setup/dashboard.lua +++ /dev/null @@ -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' }, -} diff --git a/config/nvim/lua/setup/rtools.lua b/config/nvim/lua/setup/rtools.lua deleted file mode 100644 index c1976cfb..00000000 --- a/config/nvim/lua/setup/rtools.lua +++ /dev/null @@ -1,59 +0,0 @@ -local lspstatus = require('lsp-status') -local bufnr = vim.api.nvim_get_current_buf() --- vim.keymap.set( --- "n", --- "a", --- function() --- vim.cmd.RustLsp('codeAction') --- end, --- { silent = true, buffer = bufnr } --- ) -vim.keymap.set( - "n", - "rr", - function() - vim.cmd.RustLsp('runnables') - end, - { silent = true, buffer = bufnr } -) -vim.keymap.set( - "n", - "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 - }, -} diff --git a/config/nvim/lua/setup/toggleterm.lua b/config/nvim/lua/setup/toggleterm.lua deleted file mode 100644 index d6ccbe7a..00000000 --- a/config/nvim/lua/setup/toggleterm.lua +++ /dev/null @@ -1,30 +0,0 @@ -require("toggleterm").setup{ - size = 70, - open_mapping = [[]], - 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", - } - } -} diff --git a/config/nvim/lua/statusline.lua b/config/nvim/lua/statusline.lua deleted file mode 100644 index 6902d3fe..00000000 --- a/config/nvim/lua/statusline.lua +++ /dev/null @@ -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 }, - } -} - diff --git a/config/picom/picom.conf b/config/picom/picom.conf deleted file mode 100644 index 7382f164..00000000 --- a/config/picom/picom.conf +++ /dev/null @@ -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'"]; - diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py deleted file mode 100644 index 758341fc..00000000 --- a/config/qutebrowser/config.py +++ /dev/null @@ -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('', 'spawn --userscript qute-pass') -config.bind('', 'spawn --userscript qute-pass --username-only') -config.bind('

', 'spawn --userscript qute-pass --password-only') -config.bind('', '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={}", -} diff --git a/config/rofi/colors.rasi b/config/rofi/colors.rasi deleted file mode 100644 index 869f4a17..00000000 --- a/config/rofi/colors.rasi +++ /dev/null @@ -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; -} diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi deleted file mode 100644 index fe5a8243..00000000 --- a/config/rofi/config.rasi +++ /dev/null @@ -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" diff --git a/config/rofi/themes/sidetab.rasi b/config/rofi/themes/sidetab.rasi deleted file mode 100644 index 693dbc4d..00000000 --- a/config/rofi/themes/sidetab.rasi +++ /dev/null @@ -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; -} diff --git a/config/rofi/themes/slate.rasi b/config/rofi/themes/slate.rasi deleted file mode 100644 index 0ceb9176..00000000 --- a/config/rofi/themes/slate.rasi +++ /dev/null @@ -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; -} - diff --git a/config/tmux/scratch b/config/tmux/scratch deleted file mode 100755 index 8b2ba8d7..00000000 --- a/config/tmux/scratch +++ /dev/null @@ -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 diff --git a/config/tmux/sessions/default b/config/tmux/sessions/default deleted file mode 100755 index 7b8876e9..00000000 --- a/config/tmux/sessions/default +++ /dev/null @@ -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 diff --git a/config/tmux/start-tmux b/config/tmux/start-tmux deleted file mode 100755 index fa5579b6..00000000 --- a/config/tmux/start-tmux +++ /dev/null @@ -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 - diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf deleted file mode 100644 index b7b4bb49..00000000 --- a/config/tmux/tmux.conf +++ /dev/null @@ -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' } diff --git a/config/waybar/config b/config/waybar/config deleted file mode 100644 index 411499c4..00000000 --- a/config/waybar/config +++ /dev/null @@ -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": " ", - "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": "{:%Y %B}\n{calendar}", - "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" - }, -} - diff --git a/config/yabai/yabairc b/config/yabai/yabairc deleted file mode 100755 index 178cd281..00000000 --- a/config/yabai/yabairc +++ /dev/null @@ -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.." diff --git a/config/nix/darwin/configuration.nix b/darwin/configuration.nix similarity index 100% rename from config/nix/darwin/configuration.nix rename to darwin/configuration.nix diff --git a/config/nix/darwin/device.nix b/darwin/device.nix similarity index 100% rename from config/nix/darwin/device.nix rename to darwin/device.nix diff --git a/config/nix/darwin/skhd.nix b/darwin/skhd.nix similarity index 100% rename from config/nix/darwin/skhd.nix rename to darwin/skhd.nix diff --git a/config/nix/darwin/yabai.nix b/darwin/yabai.nix similarity index 100% rename from config/nix/darwin/yabai.nix rename to darwin/yabai.nix diff --git a/etc/profile.d/xdgdirs.sh b/etc/profile.d/xdgdirs.sh deleted file mode 100644 index 16c76b61..00000000 --- a/etc/profile.d/xdgdirs.sh +++ /dev/null @@ -1,3 +0,0 @@ -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_DATA_HOME="$HOME/.local/share" diff --git a/etc/profile.d/xinit.sh b/etc/profile.d/xinit.sh deleted file mode 100644 index 6ad83f21..00000000 --- a/etc/profile.d/xinit.sh +++ /dev/null @@ -1,2 +0,0 @@ -export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc -#export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc diff --git a/config/nix/flake.lock b/flake.lock similarity index 100% rename from config/nix/flake.lock rename to flake.lock diff --git a/config/nix/flake.nix b/flake.nix similarity index 100% rename from config/nix/flake.nix rename to flake.nix diff --git a/images/alacritty.png b/images/alacritty.png deleted file mode 100644 index c0b90337..00000000 Binary files a/images/alacritty.png and /dev/null differ diff --git a/images/conky.png b/images/conky.png deleted file mode 100644 index 0e4a88d2..00000000 Binary files a/images/conky.png and /dev/null differ diff --git a/images/fish.png b/images/fish.png deleted file mode 100644 index d77f7b5c..00000000 Binary files a/images/fish.png and /dev/null differ diff --git a/images/neomutt.png b/images/neomutt.png deleted file mode 100644 index 5f27ff0f..00000000 Binary files a/images/neomutt.png and /dev/null differ diff --git a/images/neovim.png b/images/neovim.png deleted file mode 100644 index 2db239d8..00000000 Binary files a/images/neovim.png and /dev/null differ diff --git a/images/rofi.png b/images/rofi.png deleted file mode 100644 index 821eaf23..00000000 Binary files a/images/rofi.png and /dev/null differ diff --git a/images/tmux.png b/images/tmux.png deleted file mode 100644 index c1c7f43b..00000000 Binary files a/images/tmux.png and /dev/null differ diff --git a/images/wallpaper.jpg b/images/wallpaper.jpg deleted file mode 100644 index 7c804763..00000000 Binary files a/images/wallpaper.jpg and /dev/null differ diff --git a/images/zsh.png b/images/zsh.png deleted file mode 100644 index baff17ae..00000000 Binary files a/images/zsh.png and /dev/null differ diff --git a/install.bat b/install.bat deleted file mode 100644 index 72d2d816..00000000 --- a/install.bat +++ /dev/null @@ -1,2 +0,0 @@ -mklink /d .\config\nvim %USER%\AppData\nvim -REM mklink /d .\config\nushell %USER%\AppData\nushell diff --git a/install.sh b/install.sh deleted file mode 100755 index 92ad5269..00000000 --- a/install.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -# ensure_installed: -DOTFILES_REPO="https://github.com/uttarayan21/dotfiles" -INSTALLED="$HOME/.local/share/dotfiles" -git clone --recursive "$DOTFILES_REPO" "$INSTALLED" - -for file in $(ls -1 $INSTALLED/config); do - echo "$INSTALLED/config/$(basename file)" $HOME/config/$(basename $file) - ln -s "$INSTALLED/config/$(basename $file)" "$HOME/.config/$(basename $file)" -done diff --git a/config/nix/justfile b/justfile similarity index 100% rename from config/nix/justfile rename to justfile diff --git a/config/nix/linux/anyrun.nix b/linux/anyrun.nix similarity index 100% rename from config/nix/linux/anyrun.nix rename to linux/anyrun.nix diff --git a/config/nix/linux/default.nix b/linux/default.nix similarity index 100% rename from config/nix/linux/default.nix rename to linux/default.nix diff --git a/config/nix/linux/device.nix b/linux/device.nix similarity index 100% rename from config/nix/linux/device.nix rename to linux/device.nix diff --git a/config/nix/linux/foot.nix b/linux/foot.nix similarity index 100% rename from config/nix/linux/foot.nix rename to linux/foot.nix diff --git a/config/nix/linux/gtk.nix b/linux/gtk.nix similarity index 100% rename from config/nix/linux/gtk.nix rename to linux/gtk.nix diff --git a/config/nix/linux/hyprland.nix b/linux/hyprland.nix similarity index 100% rename from config/nix/linux/hyprland.nix rename to linux/hyprland.nix diff --git a/config/nix/linux/ironbar/default.nix b/linux/ironbar/default.nix similarity index 100% rename from config/nix/linux/ironbar/default.nix rename to linux/ironbar/default.nix diff --git a/config/nix/linux/ironbar/ironbar.css b/linux/ironbar/ironbar.css similarity index 100% rename from config/nix/linux/ironbar/ironbar.css rename to linux/ironbar/ironbar.css diff --git a/local/bin/dtf b/local/bin/dtf deleted file mode 100755 index 0b89be65..00000000 --- a/local/bin/dtf +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -git -C ~/.local/share/dotfiles "$@" diff --git a/local/bin/news b/local/bin/news deleted file mode 100755 index 3d9ebc54..00000000 --- a/local/bin/news +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -PID=$$ -export ID=$PID -DIR=/tmp/ueberzug_$PID -export UFIFO=$DIR/ufifo -# MAX_COLUMNS=60 -IMAGE=$1 - -function cleanup { - # remove_image - stop_ueberzug - if [ -d "$DIR" ];then - rm -r $DIR - fi - exit -} - - -if [ ! -d "$DIR" ];then - mkdir $DIR -fi - -source $(ueberzug library) - -function start_ueberzug { - mkfifo $UFIFO - ImageLayer --silent <"$UFIFO" & - exec 3>"$UFIFO" -} - -function stop_ueberzug { - exec 3>&- - rm $UFIFO &> /dev/null -} - -# function set_image { -# x_size=$(tput cols) -# y_size=$(tput lines) -# MAX_COLUMNS=$(($x_size/5)) -# x=$(($x_size-$MAX_COLUMNS-5)) -# y=$(($y_size-5)) -# echo $x $y -# ImageLayer::add [identifier]="$ID" [x]="${x}" [y]="${y}" \ -# [max_width]="${MAX_COLUMNS}" \ -# [path]="$@" \ -# >"$UFIFO" -# } - -# function remove_image { -# ImageLayer::remove [identifier]="$ID" \ -# >"$UFIFO" -# } - -trap cleanup EXIT - -start_ueberzug -newsboat -cleanup diff --git a/local/bin/newspager b/local/bin/newspager deleted file mode 100755 index 324fbdfd..00000000 --- a/local/bin/newspager +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -if [ ! -p "$UFIFO" ];then - printf 'UFIFO not set\n' - exit -fi - -# echo $ID -source $(ueberzug library) -function set_image { - x_size=$(tput cols) - y_size=$(tput lines) - MAX_COLUMNS=$(($x_size * 3 / 10 )) - # MAX_COLUMNS=100 - x=$(($x_size-$MAX_COLUMNS-5)) - y=$(($y_size/2)) - ImageLayer::add [identifier]="$ID" [x]="${x}" [y]="${y}" \ - [max_width]="${MAX_COLUMNS}" \ - [path]="$@" \ - >"$UFIFO" -} -function remove_image { - ImageLayer::remove [identifier]="$ID" \ - >"$UFIFO" -} - -IMG_URL=$(cat $@ | grep image | awk 'NR==2 {print $2}') -LINK=$(cat $@ | grep ^Link: | head -1 | cut -d: -f2-) -# echo $LINK -# non posix -# if [[ "$LINK" =~ "https://www.youtube.com/.*" ]];then - -( -if [[ "$LINK" =~ "www.youtube.com" ]];then - # extract video id. - VIDEO_ID=$(echo $LINK | cut -d= -f2) - IMG_URL="https://img.youtube.com/vi/$VIDEO_ID/hqdefault.jpg" - # youtube-dl --write-thumbnail --skip-download $LINK --output /tmp/temp &> /dev/null -fi -if [ -n "$IMG_URL" ];then - curl -o /tmp/temp $IMG_URL &>/dev/null -fi - -if [ -f "/tmp/temp" ];then - set_image /tmp/temp -fi -) & - -nvim -R -c 'set ft=mail nomod noma nolist' -c 'nnoremap q :qa! ' $@ -remove_image -if [ -f /tmp/temp ];then - rm /tmp/temp -fi diff --git a/config/nix/modules/hyprpaper.nix b/modules/hyprpaper.nix similarity index 100% rename from config/nix/modules/hyprpaper.nix rename to modules/hyprpaper.nix diff --git a/monitors.xml b/monitors.xml deleted file mode 100644 index 95d8c278..00000000 --- a/monitors.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - 1440 - 555 - 1 - - - DP-4 - GBT - M27Q - 20120B000001 - - - 2560 - 1440 - 169.831 - - - - - 0 - 0 - 1 - yes - - left - no - - - - DP-2 - ACR - XV272U KV - 331312FB44203 - - - 2560 - 1440 - 170.001 - - - - - - - 0 - 0 - 1 - - left - no - - - - DP-2 - ACR - XV272U KV - 331312FB44203 - - - 2560 - 1440 - 59.951 - - - - - 1440 - 539 - 1 - yes - - - DP-3 - GBT - M27Q - 20120B000001 - - - 2560 - 1440 - 169.771 - - - - - diff --git a/config/nix/nix.conf b/nix.conf similarity index 100% rename from config/nix/nix.conf rename to nix.conf diff --git a/config/nix/nixos/configuration.nix b/nixos/configuration.nix similarity index 100% rename from config/nix/nixos/configuration.nix rename to nixos/configuration.nix diff --git a/config/nix/nixos/device.nix b/nixos/device.nix similarity index 100% rename from config/nix/nixos/device.nix rename to nixos/device.nix diff --git a/config/nix/nixos/ryu.nix b/nixos/ryu.nix similarity index 100% rename from config/nix/nixos/ryu.nix rename to nixos/ryu.nix diff --git a/config/nix/overlays.nix b/overlays.nix similarity index 100% rename from config/nix/overlays.nix rename to overlays.nix diff --git a/pam_environment b/pam_environment deleted file mode 100644 index 2174a202..00000000 --- a/pam_environment +++ /dev/null @@ -1,96 +0,0 @@ -# XDG -XDG_CONFIG_HOME DEFAULT=@{HOME}/.config -XDG_DATA_HOME DEFAULT=@{HOME}/.local/share -XDG_CACHE_HOME DEFAULT=@{HOME}/.cache - -# EDITOR -EDITOR=nvim - -# Email -EMAIL DEFAULT="uttarayan21@gmail.com" -# EMAIL DEFAULT="email@uttarayan.me" -MAIL DEFAULT=@{HOME}/Mail - - -# Name -NAME DEFAULT="Uttarayan Mondal" - -# Browser -BROWSER=handlr open -# so that the default browser at any time can open - -# Pass -PASSWORD_STORE_DIR DEFAULT=${XDG_DATA_HOME}/pass - -# GPG_TTY=(tty) - -# PATH -PATH DEFAULT=@{HOME}/.local/bin:${PATH} -PATH DEFAULT=@{HOME}/.local/share/gem/bin:${PATH} -PATH DEFAULT=@{HOME}/.local/share/cargo/bin:${PATH} -PATH DEFAULT=@{HOME}/.local/share/node_modules/bin:${PATH} - - -# GTK -GTK_RC_FILES DEFAULT=${XDG_CONFIG_HOME}/gtk-1.0/gtkrc -GTK2_RC_FILES DEFAULT=${XDG_CONFIG_HOME}/gtk-2.0/gtkrc - -# Notmuch -NOTMUCH_CONFIG DEFAULT=${XDG_CONFIG_HOME}/notmuch/notmuchrc -NMBGIT DEFAULT=${XDG_DATA_HOME}/notmuch/nmbug - -# Less -LESSKEY DEFAULT=${XDG_CONFIG_HOME}/less/lesskey -LESSHISTFILE DEFAULT=${XDG_CACHE_HOME}/less/history - -# Rust -RUSTUP_HOME DEFAULT=${XDG_DATA_HOME}/rustup -CARGO_HOME DEFAULT=${XDG_DATA_HOME}/cargo -CARGO_TARGET_DIR DEFAULT=${XDG_DATA_HOME}/cargo-target - -# Android -ANDROID_SDK_HOME DEFAULT=${XDG_CONFIG_HOME}/android -ADB_VENDOR_KEY DEFAULT=${XDG_CONFIG_HOME}/android -ANDROID_PREFS_ROOT DEFAULT=${XDG_CONFIG_HOME}/android -ADB_KEYS_PATH DEFAULT="$ANDROID_PREFS_ROOT" -ANDROID_EMULATOR_HOME DEFAULT=${XDG_DATA_HOME}/android/emulator - -# Node -NPM_CONFIG_USERCONFIG DEFAULT=${XDG_CONFIG_HOME}/npm/npmrc -npm_config_prefix DEFAULT=${XDG_DATA_HOME}/node_modules - -# Wine -WINEPREFIX DEFAULT=${XDG_DATA_HOME}/wineprefixes/default - -# Java -_JAVA_OPTIONS DEFAULT=-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java -GRADLE_USER_HOME DEFAULT=${XDG_DATA_HOME}/gradle - -# Python -PYLINTHOME DEFAULT=${XDG_CACHE_HOME}/pylint -PYTHONSTARTUP DEFAULT=${XDG_CONFIG_HOME}/python/startup.py - -# export XAUTHORITY="$XDG_RUNTIME_DIR"/xauthority -# export gnome_user_dir=${XDG_CONFIG_HOME}/gnome/apps - -# LaTeX -TEXMFHOME DEFAULT=${XDG_DATA_HOME}/texmf -TEXMFVAR DEFAULT=${XDG_CACHE_HOME}/texlive/texmf-var -TEXMFCONFIG DEFAULT=${XDG_CONFIG_HOME}/texlive/texmf-config - -# Ruby gems -GEM_HOME DEFAULT=${XDG_DATA_HOME}/gem -GEM_SPEC_CACHE DEFAULT=${XDG_CACHE_HOME}/gem -BUNDLE_USER_CONFIG DEFAULT=${XDG_CONFIG_HOME}/bundle -BUNDLE_USER_CACHE DEFAULT=${XDG_CACHE_HOME}/bundle -BUNDLE_USER_PLUGIN DEFAULT=${XDG_DATA_HOME}/bundle - -# LANG -LANG=en_US.UTF-8 -LC_CTYPE=en_US.UTF-8 - -# sxhkd -SXHKD_SHELL DEFAULT="/bin/sh" - -# fzf -FZF_DEFAULT_COMMAND DEFAULT="fd --type f --hidden --exclude .git" diff --git a/config/nix/scripts/start-tmux.nix b/scripts/start-tmux.nix similarity index 100% rename from config/nix/scripts/start-tmux.nix rename to scripts/start-tmux.nix diff --git a/setup/setup-linux.sh b/setup/setup-linux.sh deleted file mode 100644 index 19831e94..00000000 --- a/setup/setup-linux.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -## I mostly use archlinux so this will be for archlinux - -pacman -S base-devel zoxide fd bat exa fish neovim unzip p7zip # will add more later - -## Install paru -git clone https://aur.archlinux.org/paru ~/.cache/paru/clone/paru -pushd ~/.cache/paru/clone/paru -makepkg -si -popd - -## Install plymouth -paru -S plymouth-git - -## Install a plymouth theme -git clone https://github.com/uttarayan21/plymouth-theme-archmac -pushd plymouth-theme-archmac -makepkg -si -popd - -## Install some few more things - diff --git a/config/nix/themes/catppuccin.nix b/themes/catppuccin.nix similarity index 100% rename from config/nix/themes/catppuccin.nix rename to themes/catppuccin.nix diff --git a/config/nix/utils/wallhaven.nix b/utils/wallhaven.nix similarity index 100% rename from config/nix/utils/wallhaven.nix rename to utils/wallhaven.nix