-geometry is the X options, --geometry is the kde option.
After looking into it, the support of the --geometry option is only fairly new to kdialog, and "the passivepopup code is a mess". Oh well.
Edit: decided to use xosd instead, with the xosd_cat command. If anyone's interested,
Code: Select all
#!/bin/bash
unset song_old state_old
popup_time=3
poll_interval=0.5
font="-adobe-helvetica-bold-r-normal-*-*-320-*-*-p-*-iso8859-1"
cmd="osd_cat -f $font -O 1 -c green -A center -p bottom -d $popup_time -o 100"
while [ "true" ]
do
current="$(mpc --format '[[%artist% - ]%title%];|[%file];')"
song="$(echo $current | awk -F\; '{ print $1 }')"
state="$(echo $current | sed -e 's/^.*[[]//' | sed -e 's/[]].*$//')"
if [ "$song" != "$song_old" ] || [ "$state" != "$state_old" ]; then
echo "[$state] $song" | $cmd
state_old="$state"
song_old="$song"
fi
sleep $poll_interval
done
Its a bash script that runs as a daemon. It polls mpd and shows info at the bottom of the screen. Who knows, maybe I'll port it to C...
