Sander van Dijk (Thu, 29 Nov 2007 11:51:14 +0100):
> > Ted Zlatanov (Wed, 28 Nov 2007 08:48:44 -0600):
> > > I don't know if this belongs in wmii or in an external utility,
> > > but haven't found anything that does it. I think it's very
> > > useful.
> > You can create small bar in the side of dmenu and tune clicking on
> > it to lock the computer.
> Uh no, you can't. dmenu is completely keyboard driven, you can't make
> it do anything with the mouse (without hacking dmenu.c, that is).
May be it changed with the new version but in 3.5 mouse events for work
fine for me:
==========================
Event RightBarClick
button=$1; bar=$2
if [ "X$bar" = "Xmpdstatus" ]; then
case "$button" in
1) mpc toggle ;;
2) mpc prev ;;
3) mpc next ;;
4) volume "+" & ;;
5) volume "-" & ;;
esac
fi
==========================
Some time ago I used to make a small area specially for locking the
screen with the script like this.
Received on Thu Nov 29 2007 - 13:59:35 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:31:49 UTC