docs: update
This commit is contained in:
parent
cfc0e8e4d0
commit
a6b4b085fb
20
README.md
20
README.md
|
@ -126,6 +126,26 @@ PF_ALIGN=""
|
||||||
# Default: unset (auto)
|
# Default: unset (auto)
|
||||||
# Valid: string
|
# Valid: string
|
||||||
PF_ASCII="openbsd"
|
PF_ASCII="openbsd"
|
||||||
|
|
||||||
|
# The below environment variables control more
|
||||||
|
# than just 'pfetch' and can be passed using
|
||||||
|
# 'HOSTNAME=cool_pc pfetch' to restrict their
|
||||||
|
# usage solely to 'pfetch'.
|
||||||
|
|
||||||
|
# Which user to display.
|
||||||
|
USER=""
|
||||||
|
|
||||||
|
# Which hostname to display.
|
||||||
|
HOSTNAME=""
|
||||||
|
|
||||||
|
# Which editor to display.
|
||||||
|
EDITOR=""
|
||||||
|
|
||||||
|
# Which shell to display.
|
||||||
|
SHELL=""
|
||||||
|
|
||||||
|
# Which desktop environment to display.
|
||||||
|
XDG_CURRENT_DESKTOP=""
|
||||||
```
|
```
|
||||||
|
|
||||||
## Credit
|
## Credit
|
||||||
|
|
20
pfetch
20
pfetch
|
@ -668,6 +668,16 @@ get_memory() {
|
||||||
log memory "${mem_used:-?}M / ${mem_full:-?}M" >&6
|
log memory "${mem_used:-?}M / ${mem_full:-?}M" >&6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_de() {
|
||||||
|
# This only supports Xorg related desktop environments though
|
||||||
|
# this is fine as knowing the desktop envrionment on Windows,
|
||||||
|
# macOS etc is useless (they'll always report the same value).
|
||||||
|
#
|
||||||
|
# Display the value of '$XDG_CURRENT_DESKTOP', if it's empty,
|
||||||
|
# display the value of '$DESKTOP_SESSION'.
|
||||||
|
log de "${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" >&6
|
||||||
|
}
|
||||||
|
|
||||||
get_shell() {
|
get_shell() {
|
||||||
# Display the basename of the '$SHELL' environment variable.
|
# Display the basename of the '$SHELL' environment variable.
|
||||||
log shell "${SHELL##*/}" >&6
|
log shell "${SHELL##*/}" >&6
|
||||||
|
@ -679,16 +689,6 @@ get_editor() {
|
||||||
log editor "${VISUAL:-$EDITOR}" >&6
|
log editor "${VISUAL:-$EDITOR}" >&6
|
||||||
}
|
}
|
||||||
|
|
||||||
get_de() {
|
|
||||||
# This only supports Xorg related desktop environments though
|
|
||||||
# this is fine as knowing the desktop envrionment on Windows,
|
|
||||||
# macOS etc is useless (they'll always report the same value).
|
|
||||||
#
|
|
||||||
# Display the value of '$XDG_CURRENT_DESKTOP', if it's empty,
|
|
||||||
# display the value of '$DESKTOP_SESSION'.
|
|
||||||
log de "${XDG_CURRENT_DESKTOP:-$DESKTOP_SESSION}" >&6
|
|
||||||
}
|
|
||||||
|
|
||||||
get_palette() {
|
get_palette() {
|
||||||
# Print the first 8 terminal colors. This uses the existing
|
# Print the first 8 terminal colors. This uses the existing
|
||||||
# sequences to change text color with a sequence prepended
|
# sequences to change text color with a sequence prepended
|
||||||
|
|
Loading…
Reference in New Issue
Block a user