Skip to content

Commit

Permalink
Add config option to set presets (#85)
Browse files Browse the repository at this point in the history
- Macchina can now be configured through a configuration file, and custom themes have also been added, which can give you more power and customization than ever before!
  • Loading branch information
uttarayan21 authored May 17, 2021
1 parent 8c50b04 commit fa48b81
Show file tree
Hide file tree
Showing 13 changed files with 863 additions and 549 deletions.
119 changes: 98 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "macchina"
version = "0.7.4"
version = "0.8.0"
authors = ["Taha Aziz Ben Ali <ba.tahaaziz@gmail.com>", "Marvin Haschker <marvin@haschker.me>"]
edition = "2018"
description = "A system information fetcher, with an emphasis on performance and minimalism."
Expand All @@ -22,7 +22,10 @@ rand = "0.8.3"
unicode-width = "0.1.8"
lazy_static = "1.4.0"
ansi-to-tui = "0.1.8"

serde = { version = "1.0.125", features = ["derive"] }
dirs = "3.0.2"
toml = "0.5.8"
serde_json = "1.0.64"

[build-dependencies]
libmacchina = "0.3.3"
Expand All @@ -32,6 +35,10 @@ tui = { version = "0.14.0", default-features = false }
structopt = "0.3.21"
rand = "0.8.3"
unicode-width = "0.1.8"
serde = { version = "1.0.125", features = ["derive"] }
dirs = "3.0.2"
toml = "0.5.8"
serde_json = "1.0.64"

[profile.release]
opt-level = 3
Expand Down
2 changes: 1 addition & 1 deletion contrib/macchina-video.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ for img in $(seq 1 999999);do # increasing this too much will break it
if [ $count -ge $WAIT ];then break;fi
done
printf '\x1b[s' # saves cursor position
macchina --custom-ascii <(jp2a --color --width=50 $DIR/out_$img.png)
target/debug/macchina --custom-ascii <(jp2a --color --width=50 $DIR/out_$img.png)
# jp2a --color --width=50 $DIR/out_$img.png # just display the video wihout macchina
printf '\x1b[u'
if [ -f "$DIR/out_$img.png" ];then
Expand Down
Loading

0 comments on commit fa48b81

Please sign in to comment.