From 276114197bfb10eb4736dba0474f57962f07bc1f Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 8 Jun 2026 20:02:57 +0300 Subject: [PATCH] Rice fastfetch --- .config/fastfetch/config.jsonc | 280 +++++++++++++++++++++++++++ .config/k/config.toml | 5 + .config/nvim/lua/options.lua | 6 +- .config/nvim/lua/plugins/conform.lua | 1 + .config/tmux/tmux.conf | 3 + scripts/tmux-session-setup | 18 +- 6 files changed, 308 insertions(+), 5 deletions(-) create mode 100644 .config/fastfetch/config.jsonc diff --git a/.config/fastfetch/config.jsonc b/.config/fastfetch/config.jsonc new file mode 100644 index 0000000..467a412 --- /dev/null +++ b/.config/fastfetch/config.jsonc @@ -0,0 +1,280 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json", + "logo": { + "source": "/home/kyren/Pictures/Creations/pfp/pfp.png", + "type": "kitty-icat", + "width": 33, + // "height": 17, + "padding": { + "top": 2, + // "left": 2, + // "right": 5 + "left": 10, + "right": 13 + } + }, + "display": { + "separator": " " + }, + // ┃ ├ └ + "modules": [ + + // { + // "type": "colors", + // "symbol": "circle", + // // "key": "\u001b[A", + // }, + "break", + "break", + { + "type": "command", + "key": " ", + "text": "echo -e \" \\033[1;38;2;141;222;224m$(whoami)\\033[1;38;2;20;99;157m@\\033[1;38;2;54;215;169m$(hostname)\"", + // "keyIcon": "{user-name}@{host-name}" + }, + + "break", + // { + // "type": "colors", + // "symbol": "circle", + // "paddingLeft": 17, + // }, + { + "type": "colors", + "symbol": "circle", + // "key": "\u001b[A", + }, + "break", + // { + // "type": "custom", + // "key": " System", + // "keyColor": "yellow" + // }, + { + "type": "os", + "key": "┌ OS", + "keyColor": "yellow", + "format": "{name} {version-id}" + }, + { + "type": "de", + "key": "├ DE", + "keyColor": "yellow" + }, + { + "type": "kernel", + "key": "├ Kernel", + "keyColor": "yellow" + }, + { + "type": "packages", + "key": "├ Packages", + "keyColor": "yellow", + "format": "{rpm} (rpm)" + }, + { + "type": "localIP", + "key": "├󰋜 Local IP", + "keyColor": "yellow" + }, + { + "type": "uptime", + "key": "└󰥔 Uptime", + "keyColor": "yellow" + }, + + "break", + + { + "type": "memory", + "key": "┌ RAM", + "keyColor": "blue", + // "outputColor": "#808080" + }, + { + "type": "cpu", + "key": "├ CPU", + "keyColor": "blue", + // "outputColor": "#f77678" + // "outputColor": "red" + }, + { + "type": "gpu", + "key": "├󰢮 GPU", + "keyColor": "blue", + // "outputColor": "#f77678" + // "outputColor": "red" + }, + { + "type": "display", + "key": "├󰍹 Display ({name})", + // "outputColor": "yellow", + // "format": "{name} ({width}x{height}) @ {refresh-rate}Hz", + "format": "{width}x{height} @ {refresh-rate}Hz", + // "outputColor": "#808080" + }, + { + "type": "disk", + "key": "├󰋊 Disk ({mountpoint})", + "folders": "/:/home", + // "outputColor": "#808080" + // "outputColor": "#cc9999" + }, + { + "type": "command", + "key": "└󰋊 Disk (/iron-wolf)", + "keyColor": "blue", + // "text": "zfs list -H -o used,available iron-wolf | awk '{print $1 \"iB / \" $1+$2 \"iB (\" $1/($1+$2)*100 \"%) - zfs\"}'", + "text": "read -r used avail < <(zfs list -H -p -o used,available iron-wolf); total=$((used + avail)); pct=$(( used * 100 / total )); if [ \"$pct\" -lt 75 ]; then col='\\033[32m'; elif [ \"$pct\" -lt 90 ]; then col='\\033[33m'; else col='\\033[31m'; fi; used_t=$(awk \"BEGIN {printf \\\"%.2f\\\", $used/1024/1024/1024/1024}\"); total_t=$(awk \"BEGIN {printf \\\"%.2f\\\", $total/1024/1024/1024/1024}\"); echo -e \"${used_t}TiB / ${total_t}TiB (${col}${pct}%\\033[0m) - zfs\"", + // "outputColor": "#cc9999" + }, + + "break", + + // { + // "type": "custom", + // "key": "󰌢 Hardware", + // "keyColor": "blue" + // }, + // { + // "type": "memory", + // "key": "│  RAM", + // "outputColor": "yellow" + // }, + // { + // "type": "cpu", + // "key": "│  CPU", + // "keyColor": "blue", + // "outputColor": "red" + // }, + // { + // "type": "gpu", + // "key": "│ 󰢮 GPU", + // "keyColor": "bold_blue", + // "outputColor": "red" + // }, + // { + // "type": "display", + // "key": "│ 󰍹 Display", + // "outputColor": "yellow", + // "format": "{name} ({width}x{height}) @ {refresh-rate}Hz" + // }, + // { + // "type": "disk", + // "key": "│ 󰋊 Disk ({mountpoint})", + // "folders": "/:/home", + // "outputColor": "#cc9999" + // }, + // { + // "type": "command", + // "key": "│ 󰋊 Disk (/iron-wolf)", + // "keyColor": "blue", + // "shell": "bash", + // // "text": "zfs list -H -o used,available iron-wolf | awk '{print $1 \"iB / \" $1+$2 \"iB (\" $1/($1+$2)*100 \"%) - zfs\"}'", + // "text": "read -r used avail < <(zfs list -H -p -o used,available iron-wolf); total=$((used + avail)); pct=$(( used * 100 / total )); if [ \"$pct\" -lt 75 ]; then col='\\033[32m'; elif [ \"$pct\" -lt 90 ]; then col='\\033[33m'; else col='\\033[31m'; fi; used_t=$(awk \"BEGIN {printf \\\"%.2f\\\", $used/1024/1024/1024/1024}\"); total_t=$(awk \"BEGIN {printf \\\"%.2f\\\", $total/1024/1024/1024/1024}\"); echo -e \"${used_t}TiB / ${total_t}TiB (${col}${pct}%\\033[0m) - zfs\"", + // "outputColor": "#cc9999" + // } + // "separator", + // "os", + // "host", + // "kernel", + // "uptime", + // "packages", + // "shell", + // "display", + // "de", + // "wm", + // "wmtheme", + // "theme", + // "icons", + // "font", + // "cursor", + // "terminal", + // "terminalfont", + // "cpu", + // "gpu", + // "memory", + // "swap", + // "disk", + // "localip", + // "battery", + // "poweradapter", + // "locale", + "break", + // { + // "type": "title", + // "keyWidth": 10 + // }, + // { + // "type": "os", + // "key": " OS", + // "keyColor": "yellow" + // }, + // { + // "type": "kernel", + // "key": "├ Kernel", + // "keyColor": "yellow" + // }, + // { + // "type": "packages", + // "key": "├󰏖 Packages", + // "keyColor": "yellow" + // }, + // { + // "type": "shell", + // "key": "├ Shell", + // "keyColor": "yellow" + // }, + // { + // "type": "localIP", + // "key": "├󰩟 Local IP", + // "keyColor": "yellow" + // }, + // { + // "type": "uptime", + // "key": "└󰅐 Start Time", + // "keyColor": "yellow" + // }, + // "break", + // { + // "type": "de", + // "key": " DE", + // "keyColor": "blue" + // }, + // { + // "type": "wm", + // "key": "├󰧨 Window Manager", + // "keyColor": "blue" + // }, + // { + // "type": "lm", + // "key": "├󰧨 Login Manager", + // "keyColor": "blue" + // }, + // { + // "type": "wmtheme", + // "key": "├󰉼 WM Theme", + // "keyColor": "blue" + // }, + // { + // "type": "theme", + // "key": "├󰉼 Color Themes", + // "keyColor": "blue" + // }, + // { + // "type": "icons", + // "key": "├󰸉 System Icons", + // "keyColor": "blue" + // }, + // { + // "type": "font", + // "key": "├ System Fonts", + // "keyColor": "blue" + // }, + // { + // "type": "terminal", + // "key": "└ Terminal", + // "keyColor": "blue" + // } + ] +} diff --git a/.config/k/config.toml b/.config/k/config.toml index 6bc4cd6..205efd0 100644 --- a/.config/k/config.toml +++ b/.config/k/config.toml @@ -4,6 +4,7 @@ enable_rebuild_indicator = true [workspace] paths = ["$HOME/projects", "$HOME/personal", "$HOME/Documents", "$HOME/"] +terminal = { width = 284, height = 86 } [memories] path = "$HOME/personal/grimoire/memories/" @@ -85,6 +86,10 @@ PureRef-2.1.3_x64.rpm podman-compose jellyfin nss-tools +entr +chafa +kitten # Fix fastfetch not rendering images properly inside tmux +tectonic # For rendering latex (math) in markdown files via kitty image protocol + snacks # Gaming steam lutris Heroic-2.22.0-linux-x86_64.rpm diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 5c94b98..fd0cbe4 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -9,9 +9,9 @@ vim.opt.updatetime = 200 -- save swap file and trigger CursorHold -- Tab vim.opt.expandtab = true -- convert tabs to spaces -vim.opt.tabstop = 4 -- number of visual spaces per TAB -vim.opt.softtabstop = 4 -- number of idfk tab when editing -vim.opt.shiftwidth = 4 -- number of spaces to insert on tab +vim.opt.tabstop = 2 -- number of visual spaces per TAB +vim.opt.softtabstop = 2 -- number of idfk tab when editing +vim.opt.shiftwidth = 2 -- number of spaces to insert on tab -- UI vim.opt.number = true diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua index 90172a7..8a9f579 100644 --- a/.config/nvim/lua/plugins/conform.lua +++ b/.config/nvim/lua/plugins/conform.lua @@ -16,6 +16,7 @@ return { ['markdown'] = { 'prettierd', 'prettier', stop_after_first = true }, ['yaml'] = { 'prettierd' }, ['json'] = { 'jq' }, + ['jsonc'] = { 'jq' }, ['html'] = { 'prettierd', 'prettier', stop_after_first = true }, ['css'] = { 'prettierd', 'prettier', stop_after_first = true }, ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true }, diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 1deb4a6..0c516e2 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -51,6 +51,9 @@ set -g status-left-length 100 set -g status-left " " set -g status-right "#{E:@catppuccin_status_session}" +# Fix issue where ghostty images wouldn't render within tmux +set-option -g allow-passthrough on + # Load TPM, must be the last line if "test ! -d ~/.tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" diff --git a/scripts/tmux-session-setup b/scripts/tmux-session-setup index 6bd2915..77a361b 100755 --- a/scripts/tmux-session-setup +++ b/scripts/tmux-session-setup @@ -12,10 +12,24 @@ if [ "$dir" = "$HOME" ]; then tmux new-window -t $sess -n dotfiles -c $HOME/dotfiles tmux send-keys -t $sess:dotfiles.1 "vim" C-m + # sleep 1 tmux new-window -t $sess -n main -c $HOME - tmux send-keys -t $sess:main.1 "fastfetch" C-m + tmux split-window -h -b -t $sess:main.1 -l 120 -c $HOME + tmux split-window -v -b -t $sess:main.1 -l 27 -c $HOME + tmux split-window -v -b -t $sess:main.3 -l 42 -c $HOME + tmux select-pane -t $sess:main.4 - tmux select-window -t $sess:grimoire + tmux send-keys -t $sess:main.3 "btop" C-m + tmux send-keys -t $sess:main.2 "vim ." C-m + tmux send-keys -t $sess:main.4 "cd $HOME/Desktop && clear" C-m + # tmux send-keys -t $sess:main.1 "watch -n 5 --color fastfetch -c ~/.config/fastfetch/config.jsonc" C-m + # tmux send-keys -t $sess:main.1 "while true; do fastfetch; sleep 5; done &" C-m + ( + sleep 0.1 + tmux send-keys -t $sess:main.1 "fastfetch" C-m + sleep 0.2 + tmux select-window -t $sess:grimoire + ) & elif [[ "$sess" == "ratry" || "$sess" == "kiwen-prototype" || "$sess" == "cpu-vs-ai" ]]; then tmux rename-window -t $sess:1 editor tmux send-keys -t $sess:editor.1 "nix develop" C-m