Files
dotfiles/dwm/dwmbar/modules/uptime
T
2024-07-01 17:46:12 +07:00

14 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