dwmbar config changes
This commit is contained in:
1 parent
f536f23b5e
commit
21e1ac0c61
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# What modules, in what order
|
||||
MODULES="weather volume wifi internet cpuload ram cputemp date time"
|
||||
MODULES="weather volume disksize wifi internet cpuload ram cputemp date time"
|
||||
|
||||
# Modules that require an active internet connection
|
||||
ONLINE_MODULES="weather internet"
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
# Prints out the total disk memory and the available memory
|
||||
|
||||
PREFIX=' '
|
||||
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'})
|
||||
TOTAL_SIZE=$( df -h --total | rg 230 | awk {'printf $2'})
|
||||
USED_SIZE=$(df -h --total | rg 230 | awk {'printf $3'})
|
||||
PERCENTAGE=$(df -h --total | rg 230 | awk {'printf $5'})
|
||||
|
||||
echo "$PREFIX$USED_SIZE/$TOTAL_SIZE ($PERCENTAGE)"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Prints the total ram and used ram in Mb
|
||||
|
||||
PREFIX=' '
|
||||
PREFIX=' '
|
||||
|
||||
get_ram()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user