From 29cbbae9744e5cc4e978208c0881e278b7a93374 Mon Sep 17 00:00:00 2001 From: OldWorldOrdr Date: Thu, 17 Aug 2023 09:03:27 -0400 Subject: [PATCH 1/2] fix issue with cols --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index e6658129..9481bb46 100755 --- a/neofetch +++ b/neofetch @@ -5083,7 +5083,7 @@ get_cols() { printf -v block_spaces "%${block_height}s" # Convert the spaces into rows of blocks. - if [[ $BASH_VERSION == 3* ]]; then + if [ "${BASH_VERSION%%.*}" -lt 5 ]; then [[ "$blocks" ]] && cols+="${block_spaces// /${blocks}nl}" [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}" else From 4d9bbbae9c7a8b8a2dc2138c8d71432ce0c11437 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 18 Aug 2023 09:41:43 -0700 Subject: [PATCH 2/2] [F] Fix DE empty bracket in macOS Closes #172 Co-Authored-By: Carter Li <6134068+carterli@users.noreply.github.com> --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index e6658129..8c974bec 100755 --- a/neofetch +++ b/neofetch @@ -2452,7 +2452,7 @@ get_de() { # TODO: # - New config option + flag: --de_display_server on/off ? # - Add display of X11, Arcan and anything else relevant. - [[ $de ]] && [[ $os != "Windows" ]] && + [[ $de ]] && [[ -n $XDG_SESSION_TYPE ]] && de+=" (${XDG_SESSION_TYPE})" de_run=1