Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
16
dwmbar/modules/disksize
Executable file
16
dwmbar/modules/disksize
Executable file
|
@ -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 "$USED_SIZE/$TOTAL_SIZE ($PERCENTAGE)"
|
||||
}
|
||||
|
||||
get_disk
|
Loading…
Add table
Add a link
Reference in a new issue