Compare commits

...

5 Commits

Author SHA1 Message Date
Andrew Titmuss
3b713ca92f WM Theme: update for Mojave 2019-03-12 17:32:43 +11:00
Dylan Araps
c690118884 general: Added --no_config to disable config file creation. 2019-03-11 22:18:33 +02:00
Dylan Araps
3546ec347c Merge branch 'master' of github.com:dylanaraps/neofetch 2019-03-11 15:10:38 +02:00
Dylan Araps
625fdcf7c4 packages: Show IRIX package manager name 2019-03-11 14:20:07 +02:00
Muhammad Herdiansyah
288a81a9e2 ASCII: Update Artix logo 2019-02-26 08:25:29 +07:00

View File

@@ -1393,6 +1393,7 @@ get_packages() {
;;
"IRIX")
manager="swpkg"
tot versions -b && ((packages-=3))
;;
esac
@@ -1752,15 +1753,23 @@ get_wm_theme() {
"Quartz Compositor")
global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist"
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAccentColor" "$global_preferences")"
[[ -z "$wm_theme" ]] && \
wm_theme="Light"
[[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)) && \
wm_theme_color="Blue"
case "$wm_theme_color" in
"-1") wm_theme_color="Graphite" ;;
"0") wm_theme_color="Red" ;;
"1") wm_theme_color="Orange" ;;
"2") wm_theme_color="Yellow" ;;
"3") wm_theme_color="Green" ;;
"5") wm_theme_color="Purple" ;;
"6") wm_theme_color="Pink" ;;
*) wm_theme_color="Blue" ;;
esac
wm_theme="${wm_theme_color:-Graphite} ($wm_theme)"
wm_theme="${wm_theme_color} ($wm_theme)"
;;
*"Explorer")
@@ -4066,8 +4075,6 @@ get_full_path() {
}
get_user_config() {
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
# --config /path/to/config.conf
if [[ -f "$config_file" ]]; then
source "$config_file"
@@ -4082,10 +4089,11 @@ get_user_config() {
source "${XDG_CONFIG_HOME}/neofetch/config"
err "Config: Sourced user config. (${XDG_CONFIG_HOME}/neofetch/config)"
else
elif [[ -z "$no_config" ]]; then
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
# The config file doesn't exist, create it.
mkdir -p "${XDG_CONFIG_HOME}/neofetch/"
printf '%s\n' "$config" > "$config_file"
fi
}
@@ -4459,6 +4467,7 @@ IMAGE:
OTHER:
--config /path/to/config Specify a path to a custom config file
--config none Launch the script without a config file
--no_config Don't create the user config file.
--print_config Print the default config file to stdout.
--stdout Turn off all colors and disables any ASCII/image backend.
--help Print this text and exit
@@ -4478,7 +4487,7 @@ exit 1
get_args() {
# Check the commandline flags early for '--config'.
[[ "$*" != *--config* ]] && get_user_config
[[ "$*" != *--config* && "$*" != *--no_config* ]] && get_user_config
while [[ "$1" ]]; do
case "$1" in
@@ -4639,6 +4648,7 @@ get_args() {
;;
esac
;;
"--no_config") no_config="on" ;;
"--stdout") stdout="on" ;;
"-v") verbose="on" ;;
"--print_config") printf '%s\n' "$config"; exit ;;
@@ -5199,22 +5209,26 @@ EOF
"Artix"*)
set_colors 6 6 7 1
read -rd '' ascii_data <<'EOF'
${c1} .'
.cc'
.cccc.
cccccc.
:ccccccc.
;ccccccccc
.;cccccc:
.. .;cccc;
'cccc;.. .,cc;
'ccccccccc:'. ''
.cccccccccccccc:;.
.cccccccccccccc:,. .
ccccccccccc;'. .;cc.
cccccccc,.. ':cccccc.
:ccc:'. .';ccccc
;;.. .';:
${c1} '
'o'
'ooo'
'ooxoo'
'ooxxxoo'
'oookkxxoo'
'oiioxkkxxoo'
':;:iiiioxxxoo'
`'.;::ioxxoo'
'-. `':;jiooo'
'oooio-.. `'i:io'
'ooooxxxxoio:,. `'-;'
'ooooxxxxxkkxoooIi:-. `'
'ooooxxxxxkkkkxoiiiiiji'
'ooooxxxxxkxxoiiii:'` .i'
'ooooxxxxxoi:::'` .;ioxo'
'ooooxooi::'` .:iiixkxxo'
'ooooi:'` `'';ioxxo'
'i:'` '':io'
'` `'
EOF
;;