dwm and dwmbar
This commit is contained in:
1 parent
307448edd3
commit
135fe92331
50 files changed
+1846
No files matched your search
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Prints out the total disk memory and the available memory
|
||||
|
||||
PREFIX=' '
|
||||
|
||||
get_disk()
|
||||
{
|
||||
TOTAL_SIZE=$( df -h --total | tail -1 | awk {'printf $2'})
|
||||
USED_SIZE=$(df -h --total | tail -1 | awk {'printf $3'})
|
||||
PERCENTAGE=$(df -h --total | tail -1 | awk {'printf $5'})
|
||||
|
||||
echo "$PREFIX$USED_SIZE/$TOTAL_SIZE ($PERCENTAGE)"
|
||||
}
|
||||
|
||||
get_disk
|
||||
Reference in new issue
Block a user