mirror of
https://github.com/StepanovPlaton/dotfiles.git
synced 2026-04-03 20:30:46 +04:00
050125
This commit is contained in:
9
.scripts/dwmblocks/memory
Executable file
9
.scripts/dwmblocks/memory
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/env bash
|
||||
colors_path=$HOME/.cache/wal/colors.sh
|
||||
|
||||
memory_usage=$(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)
|
||||
|
||||
if [ -f "$colors_path" ]; then
|
||||
source $colors_path
|
||||
echo "^b$color1^^c$color0^ ^d^^b$color8^^c$color0^ $memory_usage ^d^"
|
||||
fi
|
||||
Reference in New Issue
Block a user