Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip:fastfetch imple #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Configs/.config/code-flags.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
--ozone-platform-hint=wayland
--disable-gpu
--ozone-platform-hint=wayland --disable-gpu
2 changes: 1 addition & 1 deletion Configs/.config/electron-flags.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--ozone-platform-hint=auto
--ozone-platform-hint=wayland
12 changes: 4 additions & 8 deletions Configs/.config/fastfetch/config.jsonc
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "$(find \"${XDG_CONFIG_HOME:-$HOME/.config}/fastfetch/pngs/\" -name \"*.png\" | shuf -n 1)",
"source": "$(fastfetch.sh --logo)",
"height": 18
},
"display": {
"separator": " : "
},
"modules": [
{
"type": "custom",
"format": "\u001b[36m 󰄛 コンピューター"
"type": "chassis",
"key": " 󰇺 ",
"format": "{1} {2} {3}"
},
{
"type": "custom",
"format": "┌──────────────────────────────────────────┐"
},
{
"type": "chassis",
"key": " 󰇺 Chassis",
"format": "{3}"
},
{
"type": "os",
"key": " 󰣇 OS",
Expand Down
Binary file removed Configs/.config/fastfetch/pngs/arch.png
Binary file not shown.
Binary file removed Configs/.config/fastfetch/pngs/hyde.png
Binary file not shown.
40 changes: 40 additions & 0 deletions Configs/.local/lib/hyde/fastfetch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/env bash

if [ -z "${*}" ]; then
clear
fastfetch
exit
fi

confDir="${XDG_CONFIG_HOME:-$HOME/.config}"
iconDir="${XDG_DATA_HOME:-$HOME/.local/share}/icons"

if [ -z "${*}" ]; then
clear
fastfetch
exit
fi

confDir="${XDG_CONFIG_HOME:-$HOME/.config}"
iconDir="${XDG_DATA_HOME:-$HOME/.local/share}/icons"
image_dirs=()

image_dirs=(
"${confDir}/fastfetch/logo"
"${iconDir}/Wallbash-Icon/fastfetch/"
)

# shellcheck source=/dev/null
[ -f "${confDir}/hyde/hyderc" ] && source "${confDir}/hyde/hyderc"
# shellcheck disable=SC1091
[ -f "/etc/os-release" ] && source "/etc/os-release"

if [ -n "${hydeTheme}" ] && [ -d "${confDir}/hyde/themes/${hydeTheme}" ]; then
image_dirs+=("${confDir}/hyde/themes/${hydeTheme}")
fi

hyde_distro_logo=${iconDir}/Wallbash-Icon/distro/$LOGO
(
[ -f "$hyde_distro_logo" ] && echo "${hyde_distro_logo}"
find "${image_dirs[@]}" \( -name "*.icon" -o -name "*logo*" \) 2>/dev/null
) | shuf -n 1
Binary file modified Source/arcs/Icon_Wallbash.tar.gz
Binary file not shown.