Initial Commit
This commit is contained in:
6
.config/waybar/scripts/uptime.sh
Executable file
6
.config/waybar/scripts/uptime.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
UPTIME_PRETTY=$(uptime -p)
|
||||
|
||||
UPTIME_FORMATTED=$(echo "$UPTIME_PRETTY"| sed 's/^up //;s/,*$//;s/minute/m/; s/hour/h/; s/day/d/; s/s//g')
|
||||
|
||||
echo " $UPTIME_FORMATTED"
|
||||
Reference in New Issue
Block a user