waybar: add uptime component

This commit is contained in:
2022-06-30 23:07:41 +03:00
parent 4fbe985faf
commit e26757fe6f
2 changed files with 8 additions and 2 deletions

View File

@@ -3,7 +3,8 @@
"modules-left": [
"sway/workspaces",
"custom/player",
"sway/mode"
"sway/mode",
"custom/uptime"
],
"modules-right": [
"tray",
@@ -22,6 +23,10 @@
"format": "--{}--",
"tooltip": false
},
"custom/uptime": {
"exec": "uptime -p",
"restart-interval": 60
},
"custom/player": {
"exec": "playerctl metadata -f '{{title}} - {{artist}}' -F"
},

View File

@@ -28,7 +28,8 @@ window#waybar {
/* left modules */
#mode,
#window,
#custom-player {
#custom-player,
#custom-uptime {
margin-left: 10px;
}
#mode {