From 21e1ac0c615a5914cbdbebe0b3eec55157d0c691 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 1 Jul 2024 18:40:45 +0700 Subject: [PATCH] dwmbar config changes --- dwm/dwmbar/config | 2 +- dwm/dwmbar/modules/disksize | 8 ++++---- dwm/dwmbar/modules/ram | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dwm/dwmbar/config b/dwm/dwmbar/config index 75a23c7..b89c22e 100644 --- a/dwm/dwmbar/config +++ b/dwm/dwmbar/config @@ -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" diff --git a/dwm/dwmbar/modules/disksize b/dwm/dwmbar/modules/disksize index 1582cc0..24f88e6 100755 --- a/dwm/dwmbar/modules/disksize +++ b/dwm/dwmbar/modules/disksize @@ -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)" } diff --git a/dwm/dwmbar/modules/ram b/dwm/dwmbar/modules/ram index 28836e3..4fc567c 100755 --- a/dwm/dwmbar/modules/ram +++ b/dwm/dwmbar/modules/ram @@ -2,7 +2,7 @@ # Prints the total ram and used ram in Mb -PREFIX='󰍜 ' +PREFIX='󰘚 ' get_ram() {