+ Use dwmblocks on dwm
+ Added free disks indicator to polybar + Trying out lfimg (Buggy) + Rework rateUSD + Rework PATH, now detect any subdir inside .local/bin + lf now can be accessed inside vim
This commit is contained in:
parent
5d3f85eb80
commit
57c06d99ce
7 changed files with 49 additions and 16 deletions
8
.config/polybar/scripts/disk.sh
Executable file
8
.config/polybar/scripts/disk.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
capacity=$(df -h --output=source,avail /home | grep -A1 '/' | sed "s/^.* //;s/[[:alpha:]]//")
|
||||
warn=""
|
||||
if [ $capacity -lt 71 ]; then warn='!'; fi
|
||||
|
||||
printf "%s%s" "$warn " "$(echo $capacity | sed "s/$/G free/")"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue