From 083ca86b6206308a80ad594bd77a7acae15cf619 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Tue, 4 Jun 2024 13:23:10 +0400 Subject: [PATCH] use zenity for confirm dialog in polybar --- polybar/.config/polybar/config.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polybar/.config/polybar/config.ini b/polybar/.config/polybar/config.ini index a4d00e2..32ec3b4 100644 --- a/polybar/.config/polybar/config.ini +++ b/polybar/.config/polybar/config.ini @@ -111,11 +111,11 @@ label-separator = " | " label-padding = 2 menu-0-0 = %{T2}%{T-} -menu-0-0-exec = confirm "Shutdown now?" && shutdown now +menu-0-0-exec = zenity --question --text="Shutdown now?" --title="Confirm Shutdown" && shutdown now menu-0-0-foreground = ${colors.alert} menu-0-1 = %{T2}%{T-} -menu-0-1-exec = confirm "Reboot now?" && reboot +menu-0-1-exec = zenity --question --text="Reboot now?" --title="Confirm Reboot" && reboot menu-0-1-foreground = ${colors.yellow}