use zenity for confirm dialog in polybar

This commit is contained in:
Laurent Le Houerou 2024-06-04 13:23:10 +04:00
parent 681a637d4d
commit 083ca86b62

View File

@ -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}