1
0
Fork 0

waybar: Add custom widget for “timew”

This commit is contained in:
coderkun 2021-03-13 11:46:28 +01:00
parent f4ee36e30f
commit f9c9809c4c

View file

@ -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 '\"'"
}
}