power menu, redshift, polybar
This commit is contained in:
15
.config/polybar/scripts/system-uptime-pretty/README.md
Normal file
15
.config/polybar/scripts/system-uptime-pretty/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Script: system-uptime-pretty
|
||||
|
||||
A shell script which displays the output of `uptime --pretty` in a minimal fashion:
|
||||
|
||||
`2d 1h 35m`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/system-uptime-pretty]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/system-uptime-pretty.sh
|
||||
interval = 30
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
uptime --pretty | sed 's/up //' | sed 's/\ years\?,/y/' | sed 's/\ weeks\?,/w/' | sed 's/\ days\?,/d/' | sed 's/\ hours\?,\?/h/' | sed 's/\ minutes\?/m/'
|
||||
Reference in New Issue
Block a user