Skip to content

Commit

Permalink
misc: update configs + separetor -> separator grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Sep 4, 2024
1 parent eb0909a commit 3011134
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 100 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ascii-logo-type = ""
# A char (or string) to use in $<builtin.title_sep>
title-sep = "-"

# A separetor (or string) that when ecountered, will automatically
# A separator (or string) that when ecountered, will automatically
# reset color, aka. automatically add ${0} (only in layout)
# Make it empty for disabling
sep-reset = ":"
Expand Down
65 changes: 43 additions & 22 deletions assets/config-examples/config_cool.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# here is how it works:
# the variable "layout" is used for showing the infos
# as like as the user want, no limitation.
# inside here there are 3 "components": $<> $() ${}
# inside here there are 4 "components": $<> $() ${} $[]

# $<> lets you access a member of a module
# e.g $<user.name> will print the username, $<os.kernel_version> will print the kernel version and so on.
Expand All @@ -14,9 +14,22 @@
# you can even use pipes
# e.g $(echo \"hello world\" | cut -d' ' -f2) will only print world

# $[] is used for equal conditional check
# syntax MUST be $[something,equalToSomethingElse,iftrue,ifalse] with no spaces between commas ','
# Each part can have a component or anything else.
# e.g $[$<user.name>,$(echo $USER),the name is correct,the name is NOT correct]
# This is useful when on some terminal or WM the detection can be different than others

# ${} is used for which color to use for colorizing the text
# e.g "${red}hello world" will indeed print "hello world" in red (or the color you set in the variable)
# you can even put a custom hex color e.g: ${#ff6622} (for bold text put ! before # e.g ${!#ff6622} )
# you can even put a custom hex color e.g: ${#ff6622}
#
# It's possible to enable multiple options, put these symbols before '#':
# * b, for making the color in the background
# * u, for underline the text
# * !, for making the text bold
# * i, for making the text italic
#
# OR bash escape code colors e.g ${\e[1;32m} or ${\e[0;34m}.
# For auto coloring, depending on the ascii logo colors, use ${auto}.
# They can be used for different colors too. So for getting the 2nd color of the ascii logo,
Expand All @@ -27,6 +40,9 @@
# A: there is ${0}. e.g "${red}hello ${0}world, yet again" will only print "hello" in red, and then "world, yet again" normal
# Or, if you want to reset color and make it bold, use ${1}

# Q: "Why when I use something like "$<os.kernel> <- Kernel" it won't work on GUI mode?"
# A: replace "<-" with "\\<-". It won't affect the printing in terminal

# Old pipelines screensavers inspired layout
# This is really system depedent
layout = [
Expand Down Expand Up @@ -80,14 +96,19 @@ data-dir = "/usr/share/customfetch"
# Leave empty it for regular.
ascii-logo-type = ""

# A char (or string) to use in $<user.title_sep>
sep-title = "-"
# A char (or string) to use in $<builtin.title_sep>
title-sep = "-"

# A separetor (or string) that when ecountered, will automatically
# A separator (or string) that when ecountered, will automatically
# reset color, aka. automatically add ${0} (only in layout)
# Make it empty for disabling
sep-reset = ":"

# Should we reset color after or before the separator?
# true = after ("test ->${0} ")
# false = before ("test ${0}-> ")
sep-reset-after = false

# Offset between the ascii art and the layout
offset = 5

Expand All @@ -103,23 +124,23 @@ layout-padding-top = 0
# Colors can be with: hexcodes (#55ff88) and for bold put '!' (!#55ff88)
# OR ANSI escape code colors like "\e[1;34m"
# remember to add ${0} where you want to reset color
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
magenta = "\e[1;35m"
cyan = "\e[1;36m"
white = "\e[1;37m"
cyan = "\e[1;36m"
white = "\e[1;37m"

# $<os.uptime> config
[os.uptime]
# how to display the name of the uptime
# e.g: hours = "hrs" -> "Uptime: 3hrs"
days = " days"
days = " days"
hours = " hours"
mins = " mins"
secs = " seconds"
mins = " mins"
secs = " seconds"

# $<os.pkgs> config
[os.pkgs]
Expand Down Expand Up @@ -156,14 +177,14 @@ font = "Liberation Mono Normal 12"
# These are the colors palette you can use in the GUI mode.
# They can overwritte with ANSI escape code colors
# but they don't work with those, only hexcodes
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
magenta = "!#f881ff"
white = "!#ffffff"
white = "!#ffffff"

# Path to image as a background.
# put "disable" for disabling and use the theme color as background.
Expand Down
57 changes: 39 additions & 18 deletions assets/config-examples/config_modified.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# here is how it works:
# the variable "layout" is used for showing the infos
# as like as the user want, no limitation.
# inside here there are 3 "components": $<> $() ${}
# inside here there are 4 "components": $<> $() ${} $[]

# $<> lets you access a member of a module
# e.g $<user.name> will print the username, $<os.kernel_version> will print the kernel version and so on.
Expand All @@ -14,9 +14,22 @@
# you can even use pipes
# e.g $(echo \"hello world\" | cut -d' ' -f2) will only print world

# $[] is used for equal conditional check
# syntax MUST be $[something,equalToSomethingElse,iftrue,ifalse] with no spaces between commas ','
# Each part can have a component or anything else.
# e.g $[$<user.name>,$(echo $USER),the name is correct,the name is NOT correct]
# This is useful when on some terminal or WM the detection can be different than others

# ${} is used for which color to use for colorizing the text
# e.g "${red}hello world" will indeed print "hello world" in red (or the color you set in the variable)
# you can even put a custom hex color e.g: ${#ff6622} (for bold text put ! before # e.g ${!#ff6622} )
# you can even put a custom hex color e.g: ${#ff6622}
#
# It's possible to enable multiple options, put these symbols before '#':
# * b, for making the color in the background
# * u, for underline the text
# * !, for making the text bold
# * i, for making the text italic
#
# OR bash escape code colors e.g ${\e[1;32m} or ${\e[0;34m}.
# For auto coloring, depending on the ascii logo colors, use ${auto}.
# They can be used for different colors too. So for getting the 2nd color of the ascii logo,
Expand All @@ -27,6 +40,9 @@
# A: there is ${0}. e.g "${red}hello ${0}world, yet again" will only print "hello" in red, and then "world, yet again" normal
# Or, if you want to reset color and make it bold, use ${1}

# Q: "Why when I use something like "$<os.kernel> <- Kernel" it won't work on GUI mode?"
# A: replace "<-" with "\\<-". It won't affect the printing in terminal

layout = [
"${red}$<user.name>${0}@${cyan}$<os.hostname>",
"$<user.sep_reset>",
Expand Down Expand Up @@ -67,14 +83,19 @@ data-dir = "/usr/share/customfetch"
# Leave empty it for regular.
ascii-logo-type = ""

# A char (or string) to use in $<user.title_sep>
sep-title = "-"
# A char (or string) to use in $<builtin.title_sep>
title-sep = "-"

# A separetor (or string) that when ecountered, will automatically
# A separator (or string) that when ecountered, will automatically
# reset color, aka. automatically add ${0} (only in layout)
# Make it empty for disabling
sep-reset = ":"

# Should we reset color after or before the separator?
# true = after ("test ->${0} ")
# false = before ("test ${0}-> ")
sep-reset-after = false

# Offset between the ascii art and the layout
offset = 5

Expand All @@ -90,13 +111,13 @@ layout-padding-top = 0
# Colors can be with: hexcodes (#55ff88) and for bold put '!' (!#55ff88)
# OR ANSI escape code colors like "\e[1;34m"
# remember to add ${0} where you want to reset color
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
magenta = "\e[1;35m"
cyan = "\e[1;36m"
cyan = "\e[1;36m"
white = "\e[1;37m"

# $<os.uptime> config
Expand Down Expand Up @@ -143,14 +164,14 @@ font = "Liberation Mono Normal Light 12"
# These are the colors palette you can use in the GUI mode.
# They can overwritte with ANSI escape code colors
# but they don't work with those, only hexcodes
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
magenta = "!#f881ff"
white = "!#ffffff"
white = "!#ffffff"

# Path to image as a background.
# put "disable" for disabling and use the theme color as background.
Expand Down
59 changes: 40 additions & 19 deletions assets/config-examples/config_simple.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# here is how it works:
# the variable "layout" is used for showing the infos
# as like as the user want, no limitation.
# inside here there are 3 "components": $<> $() ${}
# inside here there are 4 "components": $<> $() ${} $[]

# $<> lets you access a member of a module
# e.g $<user.name> will print the username, $<os.kernel_version> will print the kernel version and so on.
Expand All @@ -14,9 +14,22 @@
# you can even use pipes
# e.g $(echo \"hello world\" | cut -d' ' -f2) will only print world

# $[] is used for equal conditional check
# syntax MUST be $[something,equalToSomethingElse,iftrue,ifalse] with no spaces between commas ','
# Each part can have a component or anything else.
# e.g $[$<user.name>,$(echo $USER),the name is correct,the name is NOT correct]
# This is useful when on some terminal or WM the detection can be different than others

# ${} is used for which color to use for colorizing the text
# e.g "${red}hello world" will indeed print "hello world" in red (or the color you set in the variable)
# you can even put a custom hex color e.g: ${#ff6622} (for bold text put ! before # e.g ${!#ff6622} )
# you can even put a custom hex color e.g: ${#ff6622}
#
# It's possible to enable multiple options, put these symbols before '#':
# * b, for making the color in the background
# * u, for underline the text
# * !, for making the text bold
# * i, for making the text italic
#
# OR bash escape code colors e.g ${\e[1;32m} or ${\e[0;34m}.
# For auto coloring, depending on the ascii logo colors, use ${auto}.
# They can be used for different colors too. So for getting the 2nd color of the ascii logo,
Expand All @@ -27,6 +40,9 @@
# A: there is ${0}. e.g "${red}hello ${0}world, yet again" will only print "hello" in red, and then "world, yet again" normal
# Or, if you want to reset color and make it bold, use ${1}

# Q: "Why when I use something like "$<os.kernel> <- Kernel" it won't work on GUI mode?"
# A: replace "<-" with "\\<-". It won't affect the printing in terminal

layout = [
# "${red}$<user.name>${0}@${cyan}$<os.hostname>",
"${\e[1m}┌────────── Hardware Information ──────────┐",
Expand Down Expand Up @@ -58,14 +74,19 @@ data-dir = "/usr/share/customfetch"
# Leave empty it for regular.
ascii-logo-type = ""

# A char (or string) to use in $<user.title_sep>
sep-title = "-"
# A char (or string) to use in $<builtin.title_sep>
title-sep = "-"

# A separetor (or string) that when ecountered, will automatically
# A separator (or string) that when ecountered, will automatically
# reset color, aka. automatically add ${0} (only in layout)
# Make it empty for disabling
sep-reset = ":"

# Should we reset color after or before the separator?
# true = after ("test ->${0} ")
# false = before ("test ${0}-> ")
sep-reset-after = false

# Offset between the ascii art and the layout
offset = 5

Expand All @@ -81,14 +102,14 @@ layout-padding-top = 0
# Colors can be with: hexcodes (#55ff88) and for bold put '!' (!#55ff88)
# OR ANSI escape code colors like "\e[1;34m"
# remember to add ${0} where you want to reset color
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
black = "\e[1;30m"
red = "\e[1;31m"
green = "\e[1;32m"
yellow = "\e[1;33m"
blue = "\e[1;34m"
magenta = "\e[1;35m"
cyan = "\e[1;36m"
white = "\e[1;37m"
cyan = "\e[1;36m"
white = "\e[1;37m"

# $<os.uptime> config
[os.uptime]
Expand Down Expand Up @@ -134,14 +155,14 @@ font = "Liberation Mono Normal Light 12"
# These are the colors palette you can use in the GUI mode.
# They can overwritte with ANSI escape code colors
# in the layout variable or ascii-art
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
black = "!#000005"
red = "!#ff2000"
green = "!#00ff00"
blue = "!#00aaff"
cyan = "!#00ffff"
yellow = "!#ffff00"
magenta = "!#f881ff"
white = "!#ffffff"
white = "!#ffffff"

# Path to image as a background.
# put "disable" for disabling and use the theme color as background.
Expand Down
Loading

0 comments on commit 3011134

Please sign in to comment.