replace the old dotfiles with the sakura line rice

The bare $HOME repo is gone. This is now the rice: install.sh, rice-*
scripts in bin/, configs in home/ linked into $HOME, theme templates, st
and the particle wallpaper. Clone to ~/rice and run install.sh.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLLuuQfeDiqFHHSgd2VWrQ
This commit is contained in:
Sarthak 2026-09-14 16:12:09 +05:30
commit 4b203d06bd
104 changed files with 8077 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Sakura Line - everyday functions.
# ff: fuzzy-find a file below the current directory, with a preview (pictures
# show inline in st and kitty). eff opens the pick in $EDITOR.
ff() { fzf --preview 'rice-preview {}' --preview-window 'right,55%' "$@"; }
eff() { local f; f=$(ff) && [[ -n $f ]] && "$EDITOR" "$f"; }
# img <picture>...: show pictures right in the terminal.
img() { local f; for f in "$@"; do rice-preview "$f"; done; }
# open <file|url>: open with the default app, detached from the terminal.
open() { xdg-open "$@" >/dev/null 2>&1 & disown; }
# n: nvim, on the current directory when given nothing.
n() { if (( $# == 0 )); then nvim .; else nvim "$@"; fi; }
# compress <file|dir>: make <name>.tar.gz next to it (decompress is tar -xzf).
compress() { tar -czf "${1%/}.tar.gz" "${1%/}"; }