Compare commits
	
		
			2 Commits
		
	
	
		
			09cfd7d7c1
			...
			7e0460cb6c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 7e0460cb6c | ||
|  | afe8a29a24 | 
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @@ -12,6 +12,20 @@ Just a little script and some 256x images for some terminal shine UwU. | |||||||
|  |  | ||||||
| Just place this folder somewhere, and add the path of the motd.sh to your .bashrc. | Just place this folder somewhere, and add the path of the motd.sh to your .bashrc. | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | git clone https://git.nussnougate.net/Lexeloid/.motd.git | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ### lolcat | ||||||
|  |  | ||||||
|  | > For faster lolcat we use a C implementation from [https://github.com/jaseg/lolcat](jaseg). | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | git submodule init | ||||||
|  | git submodule update | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Limitations | ## Limitations | ||||||
|  |  | ||||||
| At the moment, it only works in the kitty terminal. | At the moment, it only works in the kitty terminal. | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								motd.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								motd.sh
									
									
									
									
									
								
							| @@ -11,6 +11,7 @@ tput_cols=$(/usr/bin/tput cols)       # terminal columns | |||||||
| MINTERMWIDTH=200                      # minimal width of term, to display motd | MINTERMWIDTH=200                      # minimal width of term, to display motd | ||||||
| UNAMECOLOR="\033[1;38;5;93m" | UNAMECOLOR="\033[1;38;5;93m" | ||||||
| UPTIMECOLOR="\033[1;38;5;99m" | UPTIMECOLOR="\033[1;38;5;99m" | ||||||
|  | lx="$MOTDPATH/lolcat/lolcat" | ||||||
|  |  | ||||||
| WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1))   # count of waifus | WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1))   # count of waifus | ||||||
|  |  | ||||||
| @@ -18,7 +19,6 @@ function output() { | |||||||
|   val=0 |   val=0 | ||||||
|   if [ $1 == "true" ]; then val=$(($val + 1)); fi |   if [ $1 == "true" ]; then val=$(($val + 1)); fi | ||||||
|   if [ $2 == "true" ]; then val=$(($val + 2)); fi |   if [ $2 == "true" ]; then val=$(($val + 2)); fi | ||||||
|   if [ -f "/usr/games/lolcat" ]; then lx="/usr/games/lolcat"; else lx="/usr/bin/lolcat"; fi |  | ||||||
|   case "$val" in |   case "$val" in | ||||||
|     0) |     0) | ||||||
|       /bin/cat $MOTDPATH/motd |       /bin/cat $MOTDPATH/motd | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user