From 5672a4edcc754af75e7d8e97926654f4c63083be Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Sun, 1 Sep 2024 20:48:46 +0200 Subject: [PATCH] Add fastfetch config. --- stowers/fastfetch/config.sh | 3 +++ stowers/fastfetch/dot-config/fastfetch.json | 25 +++++++++++++++++++ .../dot-config/fish/conf.d/99-fastfetch.fish | 3 +++ stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh | 3 +++ 4 files changed, 34 insertions(+) create mode 100644 stowers/fastfetch/config.sh create mode 100644 stowers/fastfetch/dot-config/fastfetch.json create mode 100644 stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish create mode 100644 stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh diff --git a/stowers/fastfetch/config.sh b/stowers/fastfetch/config.sh new file mode 100644 index 0000000..451848f --- /dev/null +++ b/stowers/fastfetch/config.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +COMMAND_DEPS=("fastfetch") diff --git a/stowers/fastfetch/dot-config/fastfetch.json b/stowers/fastfetch/dot-config/fastfetch.json new file mode 100644 index 0000000..c73adca --- /dev/null +++ b/stowers/fastfetch/dot-config/fastfetch.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "source": "opensuse", + "type": "small" + }, + "modules": [ + "title", + "separator", + "host", + "uptime", + "shell", + "break", + "cpu", + "gpu", + "memory", + "disk", + "break", + "localip", + { + "type": "publicip", + "url": "http://ip.eyedevelop.org" + } + ] +} diff --git a/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish b/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish new file mode 100644 index 0000000..8a44798 --- /dev/null +++ b/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish @@ -0,0 +1,3 @@ +if status --is-interactive + fastfetch -c ~/.config/fastfetch.json +end diff --git a/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh b/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh new file mode 100644 index 0000000..4b7ac2a --- /dev/null +++ b/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +[[ -n "$PS1" ]] && fastfetch -c ~/.config/fastfetch.json