]> git.armaanb.net Git - bin.git/commitdiff
lots of minor changes
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Thu, 26 Nov 2020 21:48:49 +0000 (16:48 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Thu, 26 Nov 2020 21:48:49 +0000 (16:48 -0500)
lolcat-gen
status
tweet-grab
ufetch [deleted file]
ufetch-arch [new file with mode: 0755]
ufetch-debian [new file with mode: 0755]

index c98e4d5e3a6b3727da7236ac8765b4765147738d..03d70aa9c6f218d97e9fd02340c1e4c6a08ff764 100755 (executable)
@@ -1,7 +1,8 @@
 #!/usr/bin/env bash
-# Generates lolcated logo for my shell rc
+# Generates lolcated logo and fortune for my shell rc
 
 [[ -d ~/.local/share/zsh/lolcat/ ]] || mkdir -p ~/.local/share/zsh/lolcat
+rm -rf ~/.local/share/zsh/lolcat/*
 
 for (( i = 0; i < $1 ; i++ )); do
   cat ~/Code/personal-logo/ascii/ascii-small-white | lolcat --force > ~/.local/share/zsh/lolcat/$i
diff --git a/status b/status
index 03c31247f6d05ffeb13dce4ba91d751efed89380..bfc4ba341897beed83a522a2d1c643afc2cee113 100755 (executable)
--- a/status
+++ b/status
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# Sends a notification with battery level and time
 
 function time_set() {
   date +%A", "%b" "%e", "%r
index fa6faefb37f2e00eb18f2695458d726f765c6dcb..1d4fd9f7df7c28978019f822c6a61dc7e3244867 100755 (executable)
@@ -1,4 +1,6 @@
 #!/usr/bin/env sh
+# Grabs tweets and writes them to a file
+
 FILE=/root/tweets/index.html
 LOGFILE=/root/tweets/cron.log
 > $FILE
diff --git a/ufetch b/ufetch
deleted file mode 100755 (executable)
index a9d1744..0000000
--- a/ufetch
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-# ufetch-armaan. My customized version of ufetch that doesn't print the ascii
-# art, and focuses on information that changes often. Ufetch was written
-# by jschx (Joe Schillinger), and is ISC licensed.
-# https://gitlab.com/jschx/ufetch
-
-## INFO
-host="$(cat /etc/hostname | head -n 1)"
-os="$(cat /etc/os-release | grep "PRETTY_NAME" | cut -d '"' -f 2)"
-kernel="$(uname -sr)"
-uptime="$(uptime -p | sed 's/up //')"
-date="$(date +%Y-%m-%e)"
-time="$(date +%r)"
-locip="$(ip addr | grep "/24" | cut -d ' ' -f 6)"
-
-## DEFINE COLORS
-bold='\033[1m'
-white='\033[0;37m'
-reset='\033[0m'
-
-lc="${reset}${bold}${white}"         # labels
-nc="${reset}${bold}${white}"         # user and hostname
-ic="${reset}"                        # info
-
-## OUTPUT
-printf "${nc}${USER}${ic}@${nc}${host}${reset}
-${lc}OS        ${ic}${os}${reset}
-${lc}KERNEL    ${ic}${kernel}${reset}
-${lc}UPTIME    ${ic}${uptime}${reset}
-${lc}DATE      ${ic}${date}${reset}
-${lc}TIME      ${ic}${time}${reset}
-"
diff --git a/ufetch-arch b/ufetch-arch
new file mode 100755 (executable)
index 0000000..0d7136c
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/env sh
+# ufetch-armaan. My customized version of ufetch that doesn't print the ascii
+# art, and focuses on information that changes often. Ufetch was written
+# by jschx (Joe Schillinger), and is ISC licensed.
+# https://gitlab.com/jschx/ufetch
+
+## INFO
+host="$(cat /etc/hostname)"
+os="Arch Linux"
+kernel="$(uname -sr)"
+uptime="$(uptime -p | sed 's/up //')"
+date="$(date +%Y-%m-%e)"
+time="$(date +%r)"
+locip="$(ip addr | grep "/24" | cut -d ' ' -f 6)"
+
+## DEFINE COLORS
+bold='\033[1m'
+white='\033[0;37m'
+reset='\033[0m'
+
+lc="${reset}${bold}${white}"         # labels
+nc="${reset}${bold}${white}"         # user and hostname
+ic="${reset}"                        # info
+
+## OUTPUT
+printf "${nc}${USER}${ic}@${nc}${host}${reset}
+${lc}OS        ${ic}${os}${reset}
+${lc}KERNEL    ${ic}${kernel}${reset}
+${lc}UPTIME    ${ic}${uptime}${reset}
+${lc}DATE      ${ic}${date}${reset}
+${lc}TIME      ${ic}${time}${reset}
+"
diff --git a/ufetch-debian b/ufetch-debian
new file mode 100755 (executable)
index 0000000..198e067
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/env sh
+# ufetch-armaan. My customized version of ufetch that doesn't print the ascii
+# art, and focuses on information that changes often. Ufetch was written
+# by jschx (Joe Schillinger), and is ISC licensed.
+# https://gitlab.com/jschx/ufetch
+
+## INFO
+host="$(hostname)"
+os="Debian Unstable"
+kernel="$(uname -sr)"
+uptime="$(uptime -p | sed 's/up //')"
+date="$(date +%Y-%m-%e)"
+time="$(date +%r)"
+locip="$(ip addr | grep "/24" | cut -d ' ' -f 6)"
+
+## DEFINE COLORS
+bold='\033[1m'
+white='\033[0;37m'
+reset='\033[0m'
+
+lc="${reset}${bold}${white}"         # labels
+nc="${reset}${bold}${white}"         # user and hostname
+ic="${reset}"                        # info
+
+## OUTPUT
+printf "${nc}${USER}${ic}@${nc}${host}${reset}
+${lc}OS        ${ic}${os}${reset}
+${lc}KERNEL    ${ic}${kernel}${reset}
+${lc}UPTIME    ${ic}${uptime}${reset}
+${lc}DATE      ${ic}${date}${reset}
+${lc}TIME      ${ic}${time}${reset}
+"