From ddc85d1e8edbf2fea79123e66a3355c562c47af2 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 2 Feb 2026 10:06:18 +0100 Subject: [PATCH] Fix many typos --- .typos.toml | 11 + configs/xcompose | 56 ----- flake.nix | 3 + hm/joshuto.nix | 4 - hm/lf.nix | 510 ------------------------------------------- hm/polybar.nix | 7 +- hm/readme.md | 1 - hm/shell_aliases.nix | 1 - hm/yazi.nix | 2 - 9 files changed, 15 insertions(+), 580 deletions(-) create mode 100644 .typos.toml delete mode 100644 configs/xcompose delete mode 100644 hm/lf.nix delete mode 100644 hm/readme.md diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..75e41dc --- /dev/null +++ b/.typos.toml @@ -0,0 +1,11 @@ +[default.extend-words] +browseable = "browseable" +hass = "hass" +mosquitto = "mosquitto" +odf = "odf" + +[files] +extend-exclude = ["*.age", "hosts.nix"] + +[type.nix] +extend-glob = ["*.nix"] diff --git a/configs/xcompose b/configs/xcompose deleted file mode 100644 index fff88e6..0000000 --- a/configs/xcompose +++ /dev/null @@ -1,56 +0,0 @@ -# GREEK CAPITAL LETTERS - : "Α" U0391 # GREEK CAPITAL LETTER ALPHA - : "Β" U0392 # GREEK CAPITAL LETTER BETA - : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA - : "Δ" U0394 # GREEK CAPITAL LETTER DELTA - : "Ε" U0395 # GREEK CAPITAL LETTER EPSILON - : "Ζ" U0396 # GREEK CAPITAL LETTER ZETA - : "Η" U0397 # GREEK CAPITAL LETTER ETA - : "Ι" U0399 # GREEK CAPITAL LETTER IOTA - : "Κ" U039A # GREEK CAPITAL LETTER KAPPA - : "Λ" U039B # GREEK CAPITAL LETTER LAMDA - : "Μ" U039C # GREEK CAPITAL LETTER MU - : "Ν" U039D # GREEK CAPITAL LETTER NU -

: "Π" U03A0 # GREEK CAPITAL LETTER PI - : "Ρ" U03A1 # GREEK CAPITAL LETTER RHO - : "Σ" U03A3 # GREEK CAPITAL LETTER SIGMA - : "Τ" U03A4 # GREEK CAPITAL LETTER TAU - : "Υ" U03A5 # GREEK CAPITAL LETTER UPSILON - : "Φ" U03A6 # GREEK CAPITAL LETTER PHI - : "Χ" U03A7 # GREEK CAPITAL LETTER CHI - : "Ω" U03A9 # GREEK CAPITAL LETTER OMEGA - -# DOUBLES (additional stroke ) - : "Θ" U0398 # GREEK CAPITAL LETTER THETA - : "Ο" U039F # GREEK CAPITAL LETTER OMICRON - : "Ξ" U039E # GREEK CAPITAL LETTER XI -

: "π" U03C0 # GREEK SMALL LETTER PI - : "ρ" U03C1 # GREEK SMALL LETTER RHO - : "σ" U03C3 # GREEK SMALL LETTER SIGMA - : "τ" U03C4 # GREEK SMALL LETTER TAU - : "υ" U03C5 # GREEK SMALL LETTER UPSILON - : "φ" U03C6 # GREEK SMALL LETTER PHI - : "χ" U03C7 # GREEK SMALL LETTER CHI - : "ω" U03C9 # GREEK SMALL LETTER OMEGA - -# doubles (additional stroke ) - : "θ" U03B8 # GREEK SMALL LETTER THETA - : "ο" U03BF # GREEK SMALL LETTER OMICRON -

: "ψ" U03C8 # GREEK SMALL LETTER PSI - : "ς" U03C2 # GREEK SMALL LETTER FINAL SIGMA - : "ξ" U03BE # GREEK SMALL LETTER XI diff --git a/flake.nix b/flake.nix index 1b34873..474d245 100644 --- a/flake.nix +++ b/flake.nix @@ -98,6 +98,9 @@ # Markdown mdformat.enable = true; markdownlint.enable = true; + + # Typo + typos.enable = true; }; # Default development shell diff --git a/hm/joshuto.nix b/hm/joshuto.nix index 62967a7..7bc5562 100644 --- a/hm/joshuto.nix +++ b/hm/joshuto.nix @@ -115,10 +115,6 @@ in fork = true; silent = true; } - { - command = "bat"; - args = [ "--paging=always" ]; - } ]; reader_default = [ diff --git a/hm/lf.nix b/hm/lf.nix deleted file mode 100644 index 1ae38fb..0000000 --- a/hm/lf.nix +++ /dev/null @@ -1,510 +0,0 @@ -{ pkgs, ... }: -let - cleaner = pkgs.writeShellScript "cleaner" '' - kitty +kitten icat --clear --stdin no --silent --transfer-mode file < /dev/null > /dev/tty - ''; - - previewer = pkgs.writeShellScript "previewer" '' - file=$1 - w=$2 - h=$3 - x=$4 - y=$5 - - preview() { - kitty +kitten icat --silent --stdin no --transfer-mode file --place "''${w}x''${h}@''${x}x''${y}" "$1" < /dev/null > /dev/tty - } - - TEMPDIR=~/.cache/lf - - file="$1"; shift - case "$(basename "$file" | tr '[A-Z]' '[a-z]')" in - *.tar*) tar tf "$file" ;; - *.zip) unzip -l "$file" ;; - *.rar) unrar l "$file" ;; - *.7z) 7z l "$file" ;; - *.avi|*.mp4|*.mkv) - thumbnail="$TEMPDIR/thumbnail.png" - ffmpeg -y -i "$file" -vframes 1 "$thumbnail" - preview "$thumbnail" - ;; - *.pdf) - thumbnail="$TEMPDIR/thumbnail.png" - gs -o "$thumbnail" -sDEVICE=pngalpha -dLastPage=1 "$file" >/dev/null - preview "$thumbnail" - ;; - *.jpg|*.jpeg|*.png|*.bmp) - preview "$file" - ;; - *.ttf|*.otf|*.woff) - thumbnail="$TEMPDIR/thumbnail.png" - fontpreview -i "$file" -o "$thumbnail" - preview "$thumbnail" - ;; - *.svg) - thumbnail="$TEMPDIR/thumbnail.png" - convert "$file" "$thumbnail" - preview "$thumbnail" - ;; - *) lf_bat_preview "$file" ;; - esac - return 127 # nonzero retcode required for lf previews to reload - ''; -in -{ - programs.lf = { - enable = true; - settings = { - dircounts = true; - icons = true; - # mouse = true; - number = true; - # scrollof = 3; - hidden = true; - ignorecase = true; - tabstop = 2; - }; - previewer = { - source = previewer; - # keybinding = "i"; - }; - keybindings = { - "" = "$EDITOR $(fzf)"; - }; - commands = { - mkdir = '' - ''${{ - printf "Directory name: " - read ans - mkdir $ans - }}''; - mkfile = '' - ''${{ - printf "File name: " - read ans - $VISUAL $ans - }}''; - - trash = '' - ''${{ - files=$(printf "$fx" | tr '\n' ';') - while [ "$files" ]; do - file=''${files%%;*} - - ${pkgs.trash-cli}/bin/trash-put "$(basename "$file")" - if [ "$files" = "$file" ]; then - files="" - else - files="''${files#*;}" - fi - done - }}''; - restore_trash = '' - ''${{ - trash-restore - }}''; - - z = '' - ''${{ - result="$(zoxide query --exclude "$PWD" -- "$@")" - lf -remote "send $id cd '$result'" - }}''; - zi = '' - ''${{ - result="$(zoxide query -i -- "$@")" - lf -remote "send $id cd '$result'" - }}''; - extract = '' - ''${{ - set -f - case $f in - *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; - *.tar.gz|*.tgz) tar xzvf $f;; - *.tar.xz|*.txz) tar xJvf $f;; - *.zip) unzip $f;; - *.rar) unrar x $f;; - *.7z) 7z x $f;; - esac - }}''; - "tar" = '' - ''${{ - set -f - mkdir $1 - cp -r $fx $1 - tar czf $1.tar.gz $1 - rm -rf $1 - }}''; - "zip" = '' - ''${{ - set -f - mkdir $1 - cp -r $fx $1 - zip -r $1.zip $1 - rm -rf $1 - }}''; - }; - extraConfig = '' - set cleaner ${cleaner} - ''; - }; - - xdg.configFile."lf/icons".text = '' - # vim:ft=conf - - # These examples require Nerd Fonts or a compatible font to be used. - # See https://www.nerdfonts.com for more information. - - # default values from lf (with matching order) - # ln l # LINK - # or l # ORPHAN - # tw t # STICKY_OTHER_WRITABLE - # ow d # OTHER_WRITABLE - # st t # STICKY - # di d # DIR - # pi p # FIFO - # so s # SOCK - # bd b # BLK - # cd c # CHR - # su u # SETUID - # sg g # SETGID - # ex x # EXEC - # fi - # FILE - - # file types (with matching order) - ln  # LINK - or  # ORPHAN - tw t # STICKY_OTHER_WRITABLE - ow  # OTHER_WRITABLE - st t # STICKY - di  # DIR - pi p # FIFO - so s # SOCK - bd b # BLK - cd c # CHR - su u # SETUID - sg g # SETGID - ex  # EXEC - fi  # FILE - - # file extensions (vim-devicons) - *.styl  - *.sass  - *.scss  - *.htm  - *.html  - *.slim  - *.haml  - *.ejs  - *.css  - *.less  - *.md  - *.mdx  - *.markdown  - *.rmd  - *.json  - *.webmanifest  - *.js  - *.mjs  - *.jsx  - *.rb  - *.gemspec  - *.rake  - *.php  - *.py  - *.pyc  - *.pyo  - *.pyd  - *.coffee  - *.mustache  - *.hbs  - *.conf  - *.ini  - *.yml  - *.yaml  - *.toml  - *.bat  - *.mk  - *.jpg  - *.jpeg  - *.bmp  - *.png  - *.webp  - *.gif  - *.ico  - *.twig  - *.cpp  - *.c++  - *.cxx  - *.cc  - *.cp  - *.c  - *.cs  - *.h  - *.hh  - *.hpp  - *.hxx  - *.hs  - *.lhs  - *.nix  - *.lua  - *.java  - *.sh  - *.fish  - *.bash  - *.zsh  - *.ksh  - *.csh  - *.awk  - *.ps1  - *.ml λ - *.mli λ - *.diff  - *.db  - *.sql  - *.dump  - *.clj  - *.cljc  - *.cljs  - *.edn  - *.scala  - *.go  - *.dart  - *.xul  - *.sln  - *.suo  - *.pl  - *.pm  - *.t  - *.rss  - '*.f#'  - *.fsscript  - *.fsx  - *.fs  - *.fsi  - *.rs  - *.rlib  - *.d  - *.erl  - *.hrl  - *.ex  - *.exs  - *.eex  - *.leex  - *.heex  - *.vim  - *.ai  - *.psd  - *.psb  - *.ts  - *.tsx  - *.jl  - *.pp  - *.vue ﵂ - *.elm  - *.swift  - *.xcplayground  - *.tex ﭨ - *.r ﳒ - *.rproj 鉶 - *.sol ﲹ - *.pem  - - # file names (vim-devicons) (case-insensitive not supported in lf) - *gruntfile.coffee  - *gruntfile.js  - *gruntfile.ls  - *gulpfile.coffee  - *gulpfile.js  - *gulpfile.ls  - *mix.lock  - *dropbox  - *.ds_store  - *.gitconfig  - *.gitignore  - *.gitattributes  - *.gitlab-ci.yml  - *.bashrc  - *.zshrc  - *.zshenv  - *.zprofile  - *.vimrc  - *.gvimrc  - *_vimrc  - *_gvimrc  - *.bashprofile  - *favicon.ico  - *license  - *node_modules  - *react.jsx  - *procfile  - *dockerfile  - *docker-compose.yml  - *rakefile  - *config.ru  - *gemfile  - *makefile  - *cmakelists.txt  - *robots.txt ﮧ - - # file names (case-sensitive adaptations) - *Gruntfile.coffee  - *Gruntfile.js  - *Gruntfile.ls  - *Gulpfile.coffee  - *Gulpfile.js  - *Gulpfile.ls  - *Dropbox  - *.DS_Store  - *LICENSE  - *React.jsx  - *Procfile  - *Dockerfile  - *Docker-compose.yml  - *Rakefile  - *Gemfile  - *Makefile  - *CMakeLists.txt  - - # file patterns (vim-devicons) (patterns not supported in lf) - # .*jquery.*\.js$  - # .*angular.*\.js$  - # .*backbone.*\.js$  - # .*require.*\.js$  - # .*materialize.*\.js$  - # .*materialize.*\.css$  - # .*mootools.*\.js$  - # .*vimrc.*  - # Vagrantfile$  - - # file patterns (file name adaptations) - *jquery.min.js  - *angular.min.js  - *backbone.min.js  - *require.min.js  - *materialize.min.js  - *materialize.min.css  - *mootools.min.js  - *vimrc  - Vagrantfile  - - # archives or compressed (extensions from dircolors defaults) - *.tar  - *.tgz  - *.arc  - *.arj  - *.taz  - *.lha  - *.lz4  - *.lzh  - *.lzma  - *.tlz  - *.txz  - *.tzo  - *.t7z  - *.zip  - *.z  - *.dz  - *.gz  - *.lrz  - *.lz  - *.lzo  - *.xz  - *.zst  - *.tzst  - *.bz2  - *.bz  - *.tbz  - *.tbz2  - *.tz  - *.deb  - *.rpm  - *.jar  - *.war  - *.ear  - *.sar  - *.rar  - *.alz  - *.ace  - *.zoo  - *.cpio  - *.7z  - *.rz  - *.cab  - *.wim  - *.swm  - *.dwm  - *.esd  - - # image formats (extensions from dircolors defaults) - *.jpg  - *.jpeg  - *.mjpg  - *.mjpeg  - *.gif  - *.bmp  - *.pbm  - *.pgm  - *.ppm  - *.tga  - *.xbm  - *.xpm  - *.tif  - *.tiff  - *.png  - *.svg  - *.svgz  - *.mng  - *.pcx  - *.mov  - *.mpg  - *.mpeg  - *.m2v  - *.mkv  - *.webm  - *.ogm  - *.mp4  - *.m4v  - *.mp4v  - *.vob  - *.qt  - *.nuv  - *.wmv  - *.asf  - *.rm  - *.rmvb  - *.flc  - *.avi  - *.fli  - *.flv  - *.gl  - *.dl  - *.xcf  - *.xwd  - *.yuv  - *.cgm  - *.emf  - *.ogv  - *.ogx  - - # audio formats (extensions from dircolors defaults) - *.aac  - *.au  - *.flac  - *.m4a  - *.mid  - *.midi  - *.mka  - *.mp3  - *.mpc  - *.ogg  - *.ra  - *.wav  - *.oga  - *.opus  - *.spx  - *.xspf  - - # other formats - *.pdf  - ''; -} diff --git a/hm/polybar.nix b/hm/polybar.nix index 6457985..6c555ad 100644 --- a/hm/polybar.nix +++ b/hm/polybar.nix @@ -105,7 +105,7 @@ let border = { color = colors.transparent; left.size = 2; - righ.sizet = 2; + right.size = 2; top.size = 2; bottom.size = 0; }; @@ -207,11 +207,6 @@ in }; label.text = "%percentage%%"; - # = { - # chargin = "%percentage%%"; - # dischargin = "%percentage%%"; - # full = "%percentage%%"; - # }; }; "module/bspwm" = { diff --git a/hm/readme.md b/hm/readme.md deleted file mode 100644 index 8b13789..0000000 --- a/hm/readme.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/hm/shell_aliases.nix b/hm/shell_aliases.nix index 7526c5f..2b1bc35 100644 --- a/hm/shell_aliases.nix +++ b/hm/shell_aliases.nix @@ -29,7 +29,6 @@ let "h" = "history"; # Lists all recently used commands "hgrep" = "fc -El 0 | grep"; # Searches for a word in the list of previously used commands "help" = "man"; # Opens up the man page for a command - "sortnr" = "sort -n -r"; # Used to sort the lines of a text file "unexport" = "unset"; # Used to unset an environment variable }; sh_only = { diff --git a/hm/yazi.nix b/hm/yazi.nix index a0dc640..b4101d6 100644 --- a/hm/yazi.nix +++ b/hm/yazi.nix @@ -43,7 +43,6 @@ { run = ''$VISUAL "$@"''; } { run = ''nvim "$@"''; block = true; display_name = "Open with NeoVIM"; } { run = ''hx "$@"''; block = true; display_name = "Open with Helix"; } - { run = ''bat --pagin=always "$@"''; block = true; display_name = "Open with bat"; } ]; image = [ { run = ''xdg-open "$@"''; display_name = "Open"; } @@ -64,7 +63,6 @@ { run = ''$VISUAL "$@"''; } ]; fallback = [{ run = ''xdg-open "$@"''; display_name = "Open"; } - { run = ''bat --pagin=always "$@"''; block = true; display_name = "Open with bat"; } { run = ''$VISUAL "$@"''; block = true; display_name = "Open with editor"; } { run = ''$EDITOR "$@"''; block = true; display_name = "Open with editor"; }]; };

: "Ψ" U03A8 # GREEK CAPITAL LETTER PSI - -# greek small letters - : "α" U03B1 # GREEK SMALL LETTER ALPHA - : "β" U03B2 # GREEK SMALL LETTER BETA - : "γ" U03B3 # GREEK SMALL LETTER GAMMA - : "δ" U03B4 # GREEK SMALL LETTER DELTA - : "ε" U03B5 # GREEK SMALL LETTER EPSILON - : "ζ" U03B6 # GREEK SMALL LETTER ZETA - : "η" U03B7 # GREEK SMALL LETTER ETA - : "ι" U03B9 # GREEK SMALL LETTER IOTA - : "κ" U03BA # GREEK SMALL LETTER KAPPA - : "λ" U03BB # GREEK SMALL LETTER LAMDA - : "μ" U03BC # GREEK SMALL LETTER MU - : "ν" U03BD # GREEK SMALL LETTER NU -