Comments (7)
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.
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.
Resulting output:
from macchina.
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.
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.
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.
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)
- [BUG] Typo in build instructions provided in wiki HOT 4
- How to insert a blank line before the key-values? HOT 10
- Compile error, possibly two tui versions? HOT 34
- [BUG] Macchina 6.1.4 doesn't report version when running macchina --version HOT 1
- [BUG] Brew packages are displayed +1 HOT 7
- [BUG] Crashes on FreeBSD 13 HOT 8
- [BUG] Fails to build on Ubutnu HOT 19
- [BUG] Custom theme not being used HOT 3
- [BUG] Invalid variant: OperatingSystem HOT 10
- Terminal has weird name on NixOS with home-manager HOT 12
- [BUG] Proxmox VE is shown to be debian HOT 7
- [BUG] Crashes on cpu model "Intel Core i7 9xx (Nehalem Core i7, IBRS update)" HOT 7
- [feature request] Display total RAM memory in GB HOT 2
- Possible improvement to memory readout HOT 6
- [BUG] WSL2 openSUSE Tumbleweed zypper packages didn't show up HOT 4
- [Feature Request] More standard and versioned release artifacts on github
- Accept disk path(s) to display usage of specified disk / multiple disks
- [BUG] Build failed with libgit2 1.6.4 on Arch Linux HOT 2
- [BUG] Fails to build with ratatui HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macchina.