Dotfiles-dwm/dwmbar/modules/uptime

14 lines
179 B
Plaintext
Raw Permalink Normal View History

2024-06-02 11:02:06 +00:00
#!/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