#!/usr/bin/env bash

action="${1}"
action_icon="${2}"
command="${3}"

#yad  --image "${action_icon}" --title "Really ${action}?" --button=gtk-yes:0 --button=gtk-no:1 --text "Really ${action}?\n $ ${command}  "
if zenity --question --icon="${action_icon}" --title "Really ${action}?" --text "$ ${command}  ";then
  bash -c "${command}"
fi
#printf 'test\ntest' | wofi --columns=2 --show dmenu
