diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index eda4ce2..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -[registries.crates-io] -protocol = "sparse" - diff --git a/.config/fish/conf.d/mcfly.fish b/.config/fish/conf.d/mcfly.fish deleted file mode 100644 index cdbbfe2..0000000 --- a/.config/fish/conf.d/mcfly.fish +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env fish - -# Avoid loading this file more than once -if test "$__MCFLY_LOADED" = "loaded" - exit 0 -end -set -g __MCFLY_LOADED "loaded" - -# Note: we only use the history file for the session when this file was sourced. -# Would have to reset this before calling mcfly if you want commands from another session later. -if not set -q HISTFILE - set -gx HISTFILE (set -q XDG_DATA_HOME; and echo $XDG_DATA_HOME; or echo $HOME/.local/share)/fish/(set -q fish_history; and echo $fish_history; or echo fish)_history -end -if not test -r "$HISTFILE" - echo "McFly: $HISTFILE does not exist or is not readable. Please fix this or set HISTFILE to something else before using McFly." >&2 - exit 1 -end - -# MCFLY_SESSION_ID is used by McFly internally to keep track of the commands from a particular terminal session. -set -gx MCFLY_SESSION_ID (dd if=/dev/urandom bs=256 count=1 2>/dev/null | env LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c 24) - -# Find the binary -set -q MCFLY_PATH; or set -l MCFLY_PATH (which mcfly) -if test -z "$MCFLY_PATH"; or test "$MCFLY_PATH" = "mcfly not found" - echo "Cannot find the mcfly binary, please make sure that mcfly is in your path before sourcing mcfly.fish" - exit 1 -end -# We don't need a MCFLY_HISTORY file because we can get the last command in fish_postexec. -set -g __MCFLY_CMD $MCFLY_PATH --mcfly_history /dev/null --history_format fish - -function __mcfly_save_old_pwd -d 'Save PWD before running command' -e fish_preexec - set -g __MCFLY_OLD_PWD "$PWD" -end - -function __mcfly_add_command -d 'Add run commands to McFly database' -e fish_postexec - # First, retain return code of last command before we lose it - set -l last_status $status - # Handle first call of this function after sourcing mcfly.fish, when the old PWD won't be set - set -q __MCFLY_OLD_PWD; or set -g __MCFLY_OLD_PWD "$PWD" - - test -n "$MCFLY_DEBUG"; and echo mcfly.fish: Run eval $__MCFLY_CMD add --exit '$last_status' --old-dir '$__MCFLY_OLD_PWD' -- '$argv[1]' - eval $__MCFLY_CMD add --exit '$last_status' --old-dir '$__MCFLY_OLD_PWD' -- '$argv[1]' -end - -# If this is an interactive shell, set up key binding functions. -if status is-interactive - function __mcfly-history-widget -d "Search command history with McFly" - set -l mcfly_output (mktemp -t mcfly.output.XXXXXXXX) - eval $__MCFLY_CMD search -o '$mcfly_output' -- (commandline) - - # Interpret commandline/run requests from McFly - set -l mode; set -l commandline - while read key val - test "$key" = "mode"; and set mode "$val" - test "$key" = "commandline"; and set commandline "$val" - test "$key" = "delete"; and history delete --exact --case-sensitive "$val" - end < "$mcfly_output" - rm -f $mcfly_output - - if test -n "$commandline" - commandline "$commandline" - end - if test "$mode" = "run" - commandline -f execute - end - commandline -f repaint - end - - function mcfly_key_bindings -d "Default key bindings for McFly" - bind \cr __mcfly-history-widget - if bind -M insert >/dev/null 2>&1 - bind -M insert \cr __mcfly-history-widget - end - end - - mcfly_key_bindings -end diff --git a/.config/fish/config.fish b/.config/fish/config.fish deleted file mode 100644 index cf52e32..0000000 --- a/.config/fish/config.fish +++ /dev/null @@ -1,147 +0,0 @@ -## Set values -# Hide welcome message -set fish_greeting -set VIRTUAL_ENV_DISABLE_PROMPT "1" -set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" - -## Export variable need for qt-theme -if type "qtile" >> /dev/null 2>&1 - set -x QT_QPA_PLATFORMTHEME "qt5ct" -end - -# Set settings for https://github.com/franciscolourenco/done -set -U __done_min_cmd_duration 10000 -set -U __done_notification_urgency_level low - - -## Environment setup -# Apply .profile: use this to put fish compatible .profile stuff in -if test -f ~/.fish_profile - source ~/.fish_profile -end - -# Add ~/.local/bin to PATH -if test -d ~/.local/bin - if not contains -- ~/.local/bin $PATH - set -p PATH ~/.local/bin - end -end - -# Add depot_tools to PATH -if test -d ~/Applications/depot_tools - if not contains -- ~/Applications/depot_tools $PATH - set -p PATH ~/Applications/depot_tools - end -end - - -## Starship prompt -if status --is-interactive - source ("/usr/bin/starship" init fish --print-full-init | psub) -end - -## Functions -# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang -function __history_previous_command - switch (commandline -t) - case "!" - commandline -t $history[1]; commandline -f repaint - case "*" - commandline -i ! - end -end - -function __history_previous_command_arguments - switch (commandline -t) - case "!" - commandline -t "" - commandline -f history-token-search-backward - case "*" - commandline -i '$' - end -end - -if [ "$fish_key_bindings" = fish_vi_key_bindings ]; - bind -Minsert ! __history_previous_command - bind -Minsert '$' __history_previous_command_arguments -else - bind ! __history_previous_command - bind '$' __history_previous_command_arguments -end - -# Fish command history -function history - builtin history --show-time='%F %T ' -end - -function backup --argument filename - cp $filename $filename.bak -end - -# Copy DIR1 DIR2 -function copy - set count (count $argv | tr -d \n) - if test "$count" = 2; and test -d "$argv[1]" - set from (echo $argv[1] | trim-right /) - set to (echo $argv[2]) - command cp -r $from $to - else - command cp $argv - end -end - -## Useful aliases -# Replace ls with exa -alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing -alias la='exa -a --color=always --group-directories-first --icons' # all files and dirs -alias ll='exa -l --color=always --group-directories-first --icons' # long format -alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing -alias l.="exa -a | egrep '^\.'" # show only dotfiles - -# Replace some more things with better alternatives -alias cat='bat --style header --style rules --style snip --style changes --style header' -[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru' - -# Common use -alias grubup="sudo update-grub" -alias fixpacman="sudo rm /var/lib/pacman/db.lck" -alias tarnow='tar -acf ' -alias untar='tar -zxvf ' -alias wget='wget -c ' -alias rmpkg="sudo pacman -Rdd" -alias psmem='ps auxf | sort -nr -k 4' -alias psmem10='ps auxf | sort -nr -k 4 | head -10' -alias upd='/usr/bin/update' -alias ..='cd ..' -alias ...='cd ../..' -alias ....='cd ../../..' -alias .....='cd ../../../..' -alias ......='cd ../../../../..' -alias dir='dir --color=auto' -alias vdir='vdir --color=auto' -alias grep='grep --color=auto' -alias fgrep='fgrep --color=auto' -alias egrep='egrep --color=auto' -alias hw='hwinfo --short' # Hardware Info -alias big="expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB -alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages - -# Get fastest mirrors -alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" -alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist" -alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist" -alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist" - -# Cleanup orphaned packages -alias cleanup='sudo pacman -Rns (pacman -Qtdq)' - -# Get the error messages from journalctl -alias jctl="journalctl -p 3 -xb" - -# Recent installed packages -alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl" - -## Run paleofetch if session is interactive -if status --is-interactive - neofetch -end diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables deleted file mode 100644 index 50ed3bf..0000000 --- a/.config/fish/fish_variables +++ /dev/null @@ -1,33 +0,0 @@ -# This file contains fish universal variable definitions. -# VERSION: 3.0 -SETUVAR __done_min_cmd_duration:10000 -SETUVAR __done_notification_urgency_level:low -SETUVAR __fish_initialized:3100 -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_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 diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi deleted file mode 100644 index 6f67932..0000000 --- a/.config/rofi/config.rasi +++ /dev/null @@ -1 +0,0 @@ -@theme "/usr/share/rofi/themes/gruvbox-dark.rasi"