diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
| commit | 8839ac5f3113f966b35920e412ef73b7aafece54 (patch) | |
| tree | 2b66b758edf5f74f2795bbe3e77d2b9728607c10 /.local/bin/statusbar | |
| parent | c1af8c0ef031d08812330e1cea925d3858bf6354 (diff) | |
scripts changes
Diffstat (limited to '.local/bin/statusbar')
| -rwxr-xr-x | .local/bin/statusbar/sb-clock | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/sb-memory | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index a7d7b0e..eca5da0 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -1,2 +1,2 @@ #!/bin/sh -echo "$(date "+[ %a %d %b ] [ %I:%M %P ]")" +date "+[ %a %d %b ] [ %I:%M %P ]" diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory index 3e78a22..b894ca1 100755 --- a/.local/bin/statusbar/sb-memory +++ b/.local/bin/statusbar/sb-memory @@ -1,2 +1,4 @@ #!/bin/sh -echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" +# echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" + +echo "[ $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p") $(grep -o "^[^ ]*" /proc/loadavg ) ]" |
