mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-22 08:56:00 +00:00
fix(scripts): fix x-welcome-banner time comparison
This commit is contained in:
@@ -18,7 +18,7 @@ RESET='\033[0m'
|
|||||||
# Print time-based personalized message, using figlet & lolcat if availible
|
# Print time-based personalized message, using figlet & lolcat if availible
|
||||||
function welcome_greeting () {
|
function welcome_greeting () {
|
||||||
h=$(date +%H)
|
h=$(date +%H)
|
||||||
if [ "$h" -lt 04 ] || [[ $h -gt 22 ]];
|
if [ "$h" -lt 04 ] || [ "$h" -gt 22 ];
|
||||||
then greeting="Good Night"
|
then greeting="Good Night"
|
||||||
elif [ "$h" -lt 12 ];
|
elif [ "$h" -lt 12 ];
|
||||||
then greeting="Good morning"
|
then greeting="Good morning"
|
||||||
@@ -41,7 +41,7 @@ function welcome_greeting () {
|
|||||||
function welcome_sysinfo () {
|
function welcome_sysinfo () {
|
||||||
if hash neofetch 2>/dev/null; then
|
if hash neofetch 2>/dev/null; then
|
||||||
neofetch --shell_version off \
|
neofetch --shell_version off \
|
||||||
--disable kernel distro shell resolution de wm wm_theme theme icons terminal \
|
--disable kernel distro shell resolution cpu gpu de wm wm_theme theme icons terminal \
|
||||||
--backend off \
|
--backend off \
|
||||||
--colors 4 8 4 4 8 6 \
|
--colors 4 8 4 4 8 6 \
|
||||||
--color_blocks off \
|
--color_blocks off \
|
||||||
|
|||||||
Reference in New Issue
Block a user