From 0391d98acb73a532003ca0936ec2a2c6e8fa1120 Mon Sep 17 00:00:00 2001 From: Artem Tarasov Date: Thu, 23 May 2024 08:05:59 +0200 Subject: [PATCH] swap play and pause icons to indicate intended action instead of the status --- mpris-widget/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index f590b18..83c273a 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -279,11 +279,11 @@ local function worker(user_args) end if metadata.status == "Playing" then - icon.image = play_icon + icon.image = pause_icon widget.colors = { beautiful.widget_main_color } update_metadata(metadata) elseif metadata.status == "Paused" then - icon.image = pause_icon + icon.image = play_icon widget.colors = { beautiful.widget_main_color } update_metadata(metadata) elseif metadata.status == "Stopped" then