Feeds:
Posts
Comments

Posts Tagged ‘kdialog’

Semiautostart

I always had the problem that I couldn’t decide if I should use autostart to start things like kmail and kopete. On the one hand I don’t want to start 10 apps manually at 7am but on the other hand I really hate that everything autostarts in other situations like restarting KDE because of debugging my X11 config.

So finally I found a good solution (which is also desktop environment independent):

#!/bin/bash
if kdialog --yesno "Autostart?"
then
  echo "Autostarting"
  kmail
  akregator --hide-mainwindow
  kopete
  basket --start-hidden
  gmpc&
  skype&
fi

I start this script with the normal autostart routine of KDE, an now I’ve got a simple popup asking me if this particular time I want to autostart. Super nice.

Read Full Post »

KDE notifications + MPD

To get mpd to show the currently playing song, one can easily use kdialog:

kdialog --title "Currently playing song" --passivepopup "`mpc | head -n1`" 3

which triggers a KDE notification popup for 3 seconds. Not very pretty, but it’s simple and can be triggered via xbindkeys or something similar.

Read Full Post »