#!/bin/sh
# sxbar demo popup action -- fires a desktop notification so you can see a
# popup_item/popup_set command actually run, without wiring up anything
# real yet. Point popup_item/popup_set at this script while you're testing
# hover/click/drag, then swap the notify-send line below for your own
# command once you're happy with how the popup behaves.
#
# Usage: demo_popup.sh "<message>"
# - popup_item calls it with a fixed label, e.g. "Say hello"
# - popup_set (slider) calls it with the new value as $1, e.g. "45%"
msg="${1:-(no argument)}"
notify-send "sxbar demo" "$msg"