mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
Added uptime module
This commit is contained in:
parent
129126ba11
commit
10453b8910
1 changed files with 13 additions and 0 deletions
13
modules/uptime
Executable file
13
modules/uptime
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
Loading…
Reference in a new issue