waybar: Add custom widget for “timew”
This commit is contained in:
parent
f4ee36e30f
commit
f9c9809c4c
|
@ -4,7 +4,7 @@
|
|||
"height": 24,
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["cpu", "memory", "tray"],
|
||||
"modules-right": ["clock#time", "clock#date"],
|
||||
"modules-right": ["custom/timew", "clock#time", "clock#date"],
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
|
@ -21,5 +21,12 @@
|
|||
"clock#date": {
|
||||
"interval": 60,
|
||||
"format": "{: %d.%m.%Y}"
|
||||
},
|
||||
"custom/timew": {
|
||||
"format": "{}",
|
||||
"max-length": 40,
|
||||
"escape": true,
|
||||
"interval": 60,
|
||||
"exec": "timew | grep Tracking | cut -d ' ' -f 2- | tr -d '\"'"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue