waybar: add uptime component
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
"custom/player",
|
"custom/player",
|
||||||
"sway/mode"
|
"sway/mode",
|
||||||
|
"custom/uptime"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"tray",
|
"tray",
|
||||||
@@ -22,6 +23,10 @@
|
|||||||
"format": "--{}--",
|
"format": "--{}--",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
"custom/uptime": {
|
||||||
|
"exec": "uptime -p",
|
||||||
|
"restart-interval": 60
|
||||||
|
},
|
||||||
"custom/player": {
|
"custom/player": {
|
||||||
"exec": "playerctl metadata -f '{{title}} - {{artist}}' -F"
|
"exec": "playerctl metadata -f '{{title}} - {{artist}}' -F"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ window#waybar {
|
|||||||
/* left modules */
|
/* left modules */
|
||||||
#mode,
|
#mode,
|
||||||
#window,
|
#window,
|
||||||
#custom-player {
|
#custom-player,
|
||||||
|
#custom-uptime {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
#mode {
|
#mode {
|
||||||
|
|||||||
Reference in New Issue
Block a user