updates for eww and ydotool
This commit is contained in:
parent
f153a71270
commit
25853d63db
19 changed files with 1147 additions and 31 deletions
15
eww/scripts/mem-ad
Executable file
15
eww/scripts/mem-ad
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
total="$(free -m | grep Mem: | awk '{ print $2 }')"
|
||||
used="$(free -m | grep Mem: | awk '{ print $3 }')"
|
||||
|
||||
free=$(expr $total - $used)
|
||||
|
||||
if [ "$1" = "total" ]; then
|
||||
echo $total
|
||||
elif [ "$1" = "used" ]; then
|
||||
echo $used
|
||||
elif [ "$1" = "free" ]; then
|
||||
echo $free
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue