From 7850c7bb0e374154b631fd2706b6221f3c370fba Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Wed, 30 Jul 2025 11:46:46 +0200 Subject: [PATCH] added fish config --- .gitignore | 1 + btop/btop.conf | 2 +- fish/conf.d/autopair.fish | 39 +++ fish/conf.d/done.fish | 300 +++++++++++++++++++++ fish/conf.d/omf.fish | 7 + fish/config.fish | 31 +++ fish/fish_plugins | 2 + fish/fish_variables | 128 +++++++++ fish/functions/_autopair_backspace.fish | 9 + fish/functions/_autopair_insert_left.fish | 13 + fish/functions/_autopair_insert_right.fish | 11 + fish/functions/_autopair_insert_same.fish | 20 ++ fish/functions/_autopair_tab.fish | 7 + fish/functions/batdiff.fish | 3 + fish/functions/cat.fish | 3 + fish/functions/cpr.fish | 3 + fish/functions/du.fish | 3 + fish/functions/egrep.fish | 3 + fish/functions/fgrep.fish | 3 + fish/functions/fish_prompt.fish | 30 +++ fish/functions/grep.fish | 3 + fish/functions/la.fish | 3 + fish/functions/lg.fish | 3 + fish/functions/ll.fish | 3 + fish/functions/ls.fish | 3 + fish/functions/mvr.fish | 3 + fish/functions/open.fish | 3 + fish/themes/Catppuccin Frappe.theme | 30 +++ fish/themes/Catppuccin Latte.theme | 30 +++ fish/themes/Catppuccin Macchiato.theme | 30 +++ fish/themes/Catppuccin Mocha.theme | 30 +++ hypr/hyprland.conf | 4 +- waybar/config.jsonc | 2 +- waybar/style.css | 8 +- 34 files changed, 765 insertions(+), 8 deletions(-) create mode 100644 fish/conf.d/autopair.fish create mode 100644 fish/conf.d/done.fish create mode 100644 fish/conf.d/omf.fish create mode 100644 fish/config.fish create mode 100644 fish/fish_plugins create mode 100644 fish/fish_variables create mode 100644 fish/functions/_autopair_backspace.fish create mode 100644 fish/functions/_autopair_insert_left.fish create mode 100644 fish/functions/_autopair_insert_right.fish create mode 100644 fish/functions/_autopair_insert_same.fish create mode 100644 fish/functions/_autopair_tab.fish create mode 100644 fish/functions/batdiff.fish create mode 100644 fish/functions/cat.fish create mode 100644 fish/functions/cpr.fish create mode 100644 fish/functions/du.fish create mode 100644 fish/functions/egrep.fish create mode 100644 fish/functions/fgrep.fish create mode 100644 fish/functions/fish_prompt.fish create mode 100644 fish/functions/grep.fish create mode 100644 fish/functions/la.fish create mode 100644 fish/functions/lg.fish create mode 100644 fish/functions/ll.fish create mode 100644 fish/functions/ls.fish create mode 100644 fish/functions/mvr.fish create mode 100644 fish/functions/open.fish create mode 100644 fish/themes/Catppuccin Frappe.theme create mode 100644 fish/themes/Catppuccin Latte.theme create mode 100644 fish/themes/Catppuccin Macchiato.theme create mode 100644 fish/themes/Catppuccin Mocha.theme diff --git a/.gitignore b/.gitignore index f50f065..66db231 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ !zathura/ !mimeapps.list !fuzzel/ +!fish/ !brave-flags.conf !chromium-flags.conf !README.md diff --git a/btop/btop.conf b/btop/btop.conf index 510fab2..10ca1a5 100644 --- a/btop/btop.conf +++ b/btop/btop.conf @@ -63,7 +63,7 @@ proc_sorting = "cpu lazy" proc_reversed = False #* Show processes as a tree. -proc_tree = False +proc_tree = True #* Use the cpu graph colors in the process list. proc_colors = True diff --git a/fish/conf.d/autopair.fish b/fish/conf.d/autopair.fish new file mode 100644 index 0000000..abb4bf3 --- /dev/null +++ b/fish/conf.d/autopair.fish @@ -0,0 +1,39 @@ +status is-interactive || exit + +set --global autopair_left "(" "[" "{" '"' "'" +set --global autopair_right ")" "]" "}" '"' "'" +set --global autopair_pairs "()" "[]" "{}" '""' "''" + +function _autopair_fish_key_bindings --on-variable fish_key_bindings + set --query fish_key_bindings[1] || return + + test $fish_key_bindings = fish_default_key_bindings && + set --local mode default insert || + set --local mode insert default + + bind --mode $mode[-1] --erase \177 \b \t + + bind --mode $mode[1] \177 _autopair_backspace # macOS ⌫ + bind --mode $mode[1] \b _autopair_backspace + bind --mode $mode[1] \t _autopair_tab + + printf "%s\n" $autopair_pairs | while read --local left right --delimiter "" + bind --mode $mode[-1] --erase $left $right + if test $left = $right + bind --mode $mode[1] $left "_autopair_insert_same \\$left" + else + bind --mode $mode[1] $left "_autopair_insert_left \\$left \\$right" + bind --mode $mode[1] $right "_autopair_insert_right \\$right" + end + end +end + +_autopair_fish_key_bindings + +function _autopair_uninstall --on-event autopair_uninstall + string collect ( + bind --all | string replace --filter --regex -- "_autopair.*" --erase + set --names | string replace --filter --regex -- "^autopair" "set --erase autopair" + ) | source + functions --erase (functions --all | string match "_autopair_*") +end diff --git a/fish/conf.d/done.fish b/fish/conf.d/done.fish new file mode 100644 index 0000000..b1a989b --- /dev/null +++ b/fish/conf.d/done.fish @@ -0,0 +1,300 @@ +# MIT License + +# Copyright (c) 2016 Francisco Lourenço & Daniel Wehner + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +if not status is-interactive + exit +end + +set -g __done_version 1.16.5 + +function __done_run_powershell_script + set -l powershell_exe (command --search "powershell.exe") + + if test $status -ne 0 + and command --search wslvar + + set -l powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe) + end + + if string length --quiet "$powershell_exe" + and test -x "$powershell_exe" + + set cmd (string escape $argv) + + eval "$powershell_exe -Command $cmd" + end +end + +function __done_windows_notification -a title -a message + if test "$__done_notify_sound" -eq 1 + set soundopt "