waybar: Add custom widget for “timew”
This commit is contained in:
parent
f4ee36e30f
commit
f9c9809c4c
1 changed files with 8 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
"height": 24,
|
"height": 24,
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["cpu", "memory", "tray"],
|
"modules-center": ["cpu", "memory", "tray"],
|
||||||
"modules-right": ["clock#time", "clock#date"],
|
"modules-right": ["custom/timew", "clock#time", "clock#date"],
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
|
|
@ -21,5 +21,12 @@
|
||||||
"clock#date": {
|
"clock#date": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": "{: %d.%m.%Y}"
|
"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