From 8b63d42f2dd3c427908dff0a7df958abf73f1fa6 Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 19 Feb 2022 10:38:55 +0800 Subject: [PATCH] add sleep to prevent delays in status update --- .config/waybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index e22251b..6524b05 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -42,6 +42,6 @@ "escape": true, "exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped  '", "interval": 15, - "on-click": "playerctl play-pause && notify-send `playerctl status` -t 1000" + "on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000" } }