Giter VIP home page Giter VIP logo

Comments (7)

grtcdr avatar grtcdr commented on September 25, 2024 1

Side question, is there a way to include the ASCII logo into the box?

I don't think so, but it has been a long time since I've seriously worked with macchina's codebase. I don't personally recall ever adding this in. Also, if something is neither mentioned in the manpages nor the wiki, then it's not a feature.

Okay so I figured it out. I was removing keys in the theme and they were still showing up but > I realized I have to edit the show option in the config file now it works well.

Awesome, glad you were able to fix it. Always keep in mind that themes have no effect on macchina's behavior, it's only macchina.toml that can do that.

from macchina.

grtcdr avatar grtcdr commented on September 25, 2024

Can you try to reproduce this with the following configuration?

touch ~/.config/macchina/themes/example.toml and add the following:

[keys]
os = "<Operating System>"

temporarily move the configuration file, as to disable it:

mv ~/.config/macchina/macchina.toml

in your shell:

macchina -t example

If you're not seeing <Operating System> in place of the OS readout, then I'll begin to look deeper.

from macchina.

MichaelMMeskhi avatar MichaelMMeskhi commented on September 25, 2024

Resulting output:

Screen Shot 2022-08-02 at 1 32 09 PM

from macchina.

grtcdr avatar grtcdr commented on September 25, 2024

Then something else might be wrong with your configuration, or the theme you've created, can I have a look at both, in textual form?

from macchina.

MichaelMMeskhi avatar MichaelMMeskhi commented on September 25, 2024

Hydrogen.toml

# Hydrogen

spacing         = 2
padding         = 0
hide_ascii      = true
separator       = ">"
key_color       = "Yellow"
separator_color = "White"

[palette]
type = "Dark"
visible = false

[bar]
glyph           = "ߋ"
symbol_open     = '['
symbol_close    = ']'
hide_delimiters = true
visible         = true

[box]
title           = "MacBook λ"
border          = "plain"
visible         = true

[box.inner_margin]
x               = 1
y               = 0

[randomize]
key_color       = false
separator_color = false

[keys]
host            = "Host"
battery         = "Battery"
os              = "OS"
terminal        = "Terminal"
uptime          = "Uptime"
memory          = "Memory"
machine         = "Machine"
resolution      = "Resolution"
cpu_load        = "CPU Load"
cpu             = "CPU"

Config file:

# Specifies the network interface to use for the LocalIP readout
interface = "wlan0"

# Lengthen uptime output
long_uptime = true

# Lengthen shell output
long_shell = false

# Lengthen kernel output
long_kernel = false

# Toggle between displaying the current shell or your user's default one.
current_shell = true

# Toggle between displaying the number of physical or logical cores of your
# processor.
physical_cores = true

# Themes need to be placed in "$XDG_CONFIG_DIR/macchina/themes" beforehand.
# e.g.:
#  if theme path is /home/foo/.config/macchina/themes/Sodium.toml
#  theme should be uncommented and set to "Sodium"
#
theme = "Hydrogen"

# Displays only the specified readouts.
# Accepted values (case-sensitive):
#   - Host
#   - Machine
#   - Kernel
#   - Distribution
#   - OperatingSystem
#   - DesktopEnvironment
#   - WindowManager
#   - Resolution
#   - Backlight
#   - Packages
#   - LocalIP
#   - Terminal
#   - Shell
#   - Uptime
#   - Processor
#   - ProcessorLoad
#   - Memory
#   - Battery
# Example:
# show = ["Battery", "Memory"]

from macchina.

grtcdr avatar grtcdr commented on September 25, 2024

Your theme and configuration are both working as they should, on my machine.

Example:

  • If I give the memory option a value of "My Memory", it is reflected.
  • If I remove the option, it is reset back to its default value, i.e. "Memory".

Is this not what you are experiencing?

from macchina.

MichaelMMeskhi avatar MichaelMMeskhi commented on September 25, 2024

Okay so I figured it out. I was removing keys in the theme and they were still showing up but I realized I have to edit the show option in the config file now it works well. Thank you. Side question, is there a way to include the ASCII logo into the box?

from macchina.

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.