From f9c9809c4c95d03b2f060bfac21eff4ff771f5f0 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 13 Mar 2021 11:46:28 +0100 Subject: [PATCH] =?UTF-8?q?waybar:=20Add=20custom=20widget=20for=20?= =?UTF-8?q?=E2=80=9Ctimew=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waybar/config | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/waybar/config b/waybar/config index 0989396..33962a5 100644 --- a/waybar/config +++ b/waybar/config @@ -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": "{}" }, @@ -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 '\"'" } }