]> git.armaanb.net Git - bin.git/blob - ufetch-debian
add taskwarrior to ufetch
[bin.git] / ufetch-debian
1 #!/usr/bin/env sh
2 # ufetch-armaan. My customized version of ufetch that doesn't print the ascii
3 # art, and focuses on information that changes often. Ufetch was written
4 # by jschx (Joe Schillinger), and is ISC licensed.
5 # https://gitlab.com/jschx/ufetch
6
7 ## INFO
8 host="$(hostname)"
9 os="Debian Unstable"
10 kernel="$(uname -sr)"
11 uptime="$(uptime -p | sed 's/up //')"
12 date="$(date +%Y-%m-%0e)"
13 time="$(date +%r)"
14 tasks="$(task list due.before:week | tail -n 1 | head -c -7)"
15
16 ## DEFINE COLORS
17 bold='\033[1m'
18 white='\033[0;37m'
19 reset='\033[0m'
20
21 lc="${reset}${bold}${white}"         # labels
22 nc="${reset}${bold}${white}"         # user and hostname
23 ic="${reset}"                        # info
24
25 ## OUTPUT
26 printf "${nc}${USER}${ic}@${nc}${host}${reset}
27 ${lc}OS        ${ic}${os}${reset}
28 ${lc}KERNEL    ${ic}${kernel}${reset}
29 ${lc}UPTIME    ${ic}${uptime}${reset}
30 ${lc}DATE      ${ic}${date}${reset}
31 ${lc}TIME      ${ic}${time}${reset}
32 ${lc}TASKS     ${ic}${tasks}${reset}
33 "