mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-21 23:55:07 +03:00
Add uptime module
This commit is contained in:
parent
2945051b03
commit
7627920b78
2 changed files with 8 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
"position": "top",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["idle_inhibitor", "cpu", "temperature", "memory", "custom/loadavg", "network", "pulseaudio", "battery", "sway/language", "clock", "tray"],
|
||||
"modules-right": ["idle_inhibitor", "cpu", "temperature", "memory", "custom/loadavg", "custom/uptime", "network", "pulseaudio", "battery", "sway/language", "clock", "tray"],
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
|
@ -42,6 +42,12 @@
|
|||
"format": "Load average: {}",
|
||||
"interval": 1
|
||||
},
|
||||
"custom/uptime": {
|
||||
"exec": "uptime -p | sed 's/up //g' -",
|
||||
"return-type": "{}",
|
||||
"format": "Uptime: {}",
|
||||
"interval": 60,
|
||||
},
|
||||
"temperature": {
|
||||
"format": "Temperature: {temperatureC}°C",
|
||||
"interval": 1
|
||||
|
|
|
@ -57,7 +57,7 @@ button:hover {
|
|||
border-radius: 32px;
|
||||
}
|
||||
|
||||
#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd, #custom-loadavg {
|
||||
#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd, #custom-loadavg, #custom-uptime {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue