Git Product home page Git Product logo

Comments (15)

CarterLi avatar CarterLi commented on June 16, 2024 3

Added

from fastfetch.

kojq avatar kojq commented on June 16, 2024 2

It does not seem needed. If it is, perhaps indicating upon which dash to perform string manipulation for a theme:

0 for no string
1 for Catppuccin [GTK2/3] (truncate from first dash instance)
2 for Catppuccin-Mocha [GTK2/3]
3 for Catppuccin-Mocha-Standard [GTK2/3]
50 for Catppuccin-Mocha-Standard-Mauve-Dark [GTK2/3] (out of bounds, but since 50th dash doesn't exist, leave as is)

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024 2

@niri-san Done in the dev branch

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024 1

"format": "{1} [QT]"

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024 1

Did a little clean up

image
//   _____ _____ _____ _____ _____ _____ _____ _____ _____
//  |   __|  _  |   __|_   _|   __|   __|_   _|     |  |  |
//  |   __|     |__   | | | |   __|   __| | | |   --|     |
//  |__|  |__|__|_____| |_| |__|  |_____| |_| |_____|__|__|
//
//  By CarterLi - https://github.com/CarterLi
//  Homepage - https://github.com/fastfetch-cli/fastfetch
//  config.jsonc - ニリ
//  pokemon-colorscripts - https://gitlab.com/phoneybadger/pokemon-colorscripts
{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "source": " _____ _____ _____ _____ _____ _____ _____ _____ _____\n|   __|  _  |   __|_   _|   __|   __|_   _|     |  |  |\n|   __|     |__   | | | |   __|   __| | | |   --|     |\n|__|  |__|__|_____| |_| |__|  |_____| |_| |_____|__|__|",
        "type": "data",
        "separate": true,
        "padding": {
            "right": 2
        }
    },
    "display": {
        "separator": " - "
    },
    "modules": [
        {
            "type": "custom", // HardwareInfo
            "format": "• {#green}SYSTEM INFORMATION"
        },
        {
            "type": "host",
            "key": "HOST",
            "format": "{name}{?vendor} ({vendor}){?}",
            "keyColor": "green"
        },
        {
            "type": "chassis",
            "key": "COMPUTER TYPE",
            "keyColor": "green"
        },
        {
            "type": "cpu",
            "key": "CPU",
            "keyColor": "green"
        },
        {
            "type": "gpu",
            "key": "GPU",
            "keyColor": "green"
        },
        {
            "type": "memory",
            "key": "MEMORY USED",
            "keyColor": "green"
        },
        {
            "type": "swap",
            "key": "SWAP USED",
            "keyColor": "green"
        },
        {
            "type": "disk",
            "key": "DISK",
            "folders": "/",
            "keyColor": "green"
        },
        {
            "type": "custom", // SoftwareInfo
            "format": "• {#red}SOFTWARE INFORMATION"
        },
        {
            "type": "os",
            "key": "DISTRO",
            "keyColor": "red"
        },
        {
            "type": "disk",
            "folders": "/", // Use "/System/Volumes/VM" or something else on macOS
            "format": "{create-time}",
            "key": "INSTALLED DATE",
            "keyColor": "red"
        },
        {
            "type": "kernel",
            "key": "KERNEL",
            "keyColor": "red"
        },
        {
            "type": "packages",
            "key": "PACKAGES",
            "keyColor": "red"
        },
        {
            "type": "uptime",
            "key": "UPTIME",
            "keyColor": "red"
        },
        {
            "type": "custom", // DisplayInfo
            "format": "• {#blue}DISPLAY INFORMATION"
        },
        {
            "type": "de",
            "key": "DESKTOP ENVIRONMENT",
            "keyColor": "blue"
        },
        {
            "type": "lm",
            "key": "LOGIN MANAGER",
            "format": "{type}",
            "keyColor": "blue"
        },
        {
            "type": "wm",
            "key": "WM",
            "keyColor": "blue"
        },
        {
            "type": "wmtheme",
            "key": "WM THEME",
            "keyColor": "blue"
        },
        {
            "type": "monitor",
            "key": "MONITOR ({name})",
            "keyColor": "blue"
        },
        {
            "type": "custom", // DesignInfo
            "format": "• {#yellow}DESIGN INFORMATION"
        },
        {
            "type": "wallpaper",
            "key": "WALLPAPER",
            "keyColor": "yellow"
        },
        {
            "type": "theme",
            "key": "KDE THEME",
            "format": "{1}",
            "keyColor": "yellow"
        },
        {
            "type": "icons",
            "key": "ICON THEME",
            "format": "{1}",
            "keyColor": "yellow"
        },
        {
            "type": "font",
            "key": "FONT",
            "format": "{?1}{1} [QT]{?}{/1}Unknown", // Remove "[QT]" if not using Qt
            "keyColor": "yellow"
        },
        {
            "type": "terminalfont",
            "key": "TERMINAL FONT",
            "keyColor": "yellow"
        },
        {
            "type": "cursor",
            "key": "CURSOR",
            "keyColor": "yellow"
        },
        {
            "type": "custom", // OtherInfo
            "format": "• {#cyan}VARIOUS INFORMATION"
        },
        {
            "type": "media",
            "key": "NOW PLAYING",
            "format": "{?artist}{artist} - {?}{title}",
            "keyColor": "cyan"
        },
        {
            "type": "weather",
            "key": "WEATHER",
            "timeout": 1000,
            "keyColor": "cyan"
        },
        {
            "type": "version",
            "key": "INFO",
            "keyColor": "cyan"
        },
        "break",
        "colors",
        "break"
    ]
}

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

I Use KDE/QT, I would also like to cut some settings from themes and icons.

{
      "type": "theme",
      "key": "Theme",
      "format": "{1}",
      "keyColor": "white"
},
From: Papirus-Dark [QT], Papirus-Dark [GTK2/3/4]
To:   Papirus-Dark [QT]
From: Breeze (Monochrome) [QT], Breeze-Dark [GTK2], Breeze [GTK3]
To:   Breeze (Monochrome) [QT]

I wish you implement it and give us on KDE this opportunity.

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

@CarterLi, Please make sure also Font to be included, something to "Font - Ink Free (10pt) [QT]"
I want to reach it with similar code

   {
      "type": "font",
      "key": "Font",
      "format": "{1}",
      "keyColor": "blue"
   },

I haven't tested the dev branch yet, but once you make a release, also my distro openSUSE Tumbleweed enable it in its repository, I will test it. Thanks for looking at it.

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024

Font should have been supported in current release

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

Indeed it is supported on current release, but is missing that [QT]

With "format": "{1}" display as,
Screenshot_20240606_195140

While without format string it display as:
Screenshot_20240606_195421

All in all, wish it to be displayed as
FONT - Ink Free (10pt) [QT]

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

Ok, I'm setting it manually by hand. Since we are here, I found out that in TTY Font does not appear.
Please check when you are on TTY.

   {
      "type": "font",
      "key": "Font",
      "format": "{1} [QT]",
      "keyColor": "blue"
   },

20240607_074602

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024

TTY font should be in terminalfont module.

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024

Fastfetch "format" supports a syntax that you can write simple if-else in it. See fastfetch -h format

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

Okay, I'm looking at doing something manually.

I just tested the latest version 2.15.0 from fastfetch-linux-amd64.zip
Everything seems fine, this ticket/issue seems completed and you may close it if there are no other things.

Thank you for your fast assistance.

from fastfetch.

CarterLi avatar CarterLi commented on June 16, 2024

Would you mind share your config file to add it into presets/examples?

from fastfetch.

niri-san avatar niri-san commented on June 16, 2024

With Pleasure. I have not finally finished yet. However, there is enough data allready.

P.S. I just jumped in fastfetch from a neofetch (fork), I am honestly surprised by the speed and the many possibilities of extracting information. This preset all.jsonc has helped me a lot.

Many thanks for puting your soul into this amazing project.

//   _____ _____ _____ _____ _____ _____ _____ _____ _____
//  |   __|  _  |   __|_   _|   __|   __|_   _|     |  |  |
//  |   __|     |__   | | | |   __|   __| | | |   --|     |
//  |__|  |__|__|_____| |_| |__|  |_____| |_| |_____|__|__|
//
//  By CarterLi - https://github.com/CarterLi
//  Homepage - https://github.com/fastfetch-cli/fastfetch
//  config.jsonc - ニリ
//  pokemon-colorscripts - https://gitlab.com/phoneybadger/pokemon-colorscripts

{
      "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
      "logo": {
      "source": "$(ls ~/.config/fastfetch/colorscripts/large/regular/* | shuf -n 1)",
      "padding": {
      "top": 1,
      "left": 2,
      "right": 3
   }
},

"display":  {
      "separator": " - "
   },

"modules": [
   {
      "type": "custom",
   },
   {
      "type": "custom", // HardwareInfo
      "format": "• \u001b[32mSYSTEM INFORMATION\u001b[0m"
   },
   {
      "type": "host",
      "key": "HOST",
      "format": "{?2}{2}{?}{?5} ({5}){?}",
      "keyColor": "green"
   },
   {
      "type": "chassis",
      "key": "COMPUTER TYPE",
      "format": "{?1}{1}{?}{?2}",
      "keyColor": "green"
   },
   {
      "type": "cpu",
      "key": "CPU",
      "keyColor": "green"
   },
   {
      "type": "gpu",
      "key": "GPU",
      "keyColor": "green"
   },
   {
      "type": "memory",
      "key": "MEMORY USED",
      "keyColor": "green"
   },
   {
      "type": "swap",
      "key": "SWAP USED",
      "keyColor": "green"
   },
   {
      "type": "disk",
      "key": "DISK",
      "folders": "/",
      "keyColor": "green"
   },
   {
      "type": "custom", // SoftwareInfo
      "format": "• \u001b[31mSOFTWARE INFORMATION\u001b[0m"
   },
   {
      "type": "os",
      "key": "DISTRO",
      "keyColor": "red"
   },
   {
      "type": "command",
      "text": "ls -lact --full-time /etc |awk 'END {print $6}'",
      "key": "INSTALLED DATE",
      "keyColor": "red"
   },
   {
      "type": "kernel",
      "key": "KERNEL",
      "format": "{2}",
      "keyColor": "red"
   },
   {
      "type": "packages",
      "key": "PACKAGES",
      "keyColor": "red"
   },
   {
      "type": "uptime",
      "key": "UPTIME",
      "keyColor": "red"
   },
   {
      "type": "custom", // DisplayInfo
      "format": "• \u001b[34mDISPLAY INFORMATION\u001b[0m"
   },
   {
      "type": "de",
      "key": "DESKTOP ENVIRONMENT",
      "format": "{2} {3}",
      "keyColor": "blue"
   },
   {
      "type": "lm",
      "key": "LOGIN MANAGER",
      "format": "{2}",
      "keyColor": "blue"
   },
   {
      "type": "wm",
      "key": "WM",
      "format": "{2} ({3})",
      "keyColor": "blue"
   },
   {
      "type": "wmtheme",
      "key": "WM THEME",
      "keyColor": "blue"
   },
   {
      "type": "display",
      "key": "MONITOR",
      "format": "{6}",
      "keyColor": "blue"
   },
   {
      "type": "monitor",
      "key": "RESOLUTION",
      "keyColor": "blue"
   },
   {
      "type": "custom", // DesignInfo
      "format": "• \u001b[33mDESIGN INFORMATION\u001b[0m"
   },
   {
      "type": "wallpaper",
      "key": "WALLPAPER",
      "keyColor": "yellow"
   },
   {
      "type": "theme",
      "key": "KDE THEME",
      "format": "{1}",
      "keyColor": "yellow"
   },
   {
      "type": "icons",
      "key": "ICON THEME",
      "format": "{1}",
      "keyColor": "yellow"
   },
   {
      "type": "font",
      "key": "FONT",
      "format": "{1} [QT]",
      "keyColor": "yellow"
   },
   {
      "type": "terminalfont",
      "key": "TERMINAL FONT",
      "format": "{1} [QT]",
      "keyColor": "yellow"
   },
   {
      "type": "cursor",
      "key": "CURSOR",
      "keyColor": "yellow"
   },
   {
      "type": "custom", // OtherInfo
      "format": "• \u001b[36mVARIOUS INFORMATION\u001b[0m"
   },
   {
      "type": "media",
      "key": "NOW PLAYING",
      "format": "{3} - {2}",
      "keyColor": "cyan"
   },
   {
      "type": "weather",
      "key": "WEATHER",
      "timeout": 1000,
      "keyColor": "cyan"
   },
   {
      "type": "version",
      "key": "INFO",
      "keyColor": "cyan"
   },
      "break",
      "colors",
      "break",
      "break"
    ]
}

from fastfetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.