mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 10:02:53 +00:00
13 lines
179 B
Bash
Executable file
13 lines
179 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Prints the total ram and used ram in Mb
|
|
|
|
PREFIX=''
|
|
|
|
get_uptime()
|
|
{
|
|
UPTIME=$(uptime | sed 's/.*up \([^,]*\), .*/\1/')
|
|
echo "$PREFIX$UPTIME"
|
|
}
|
|
|
|
get_uptime
|