*** mute xmms while 'vlock'ed ***


bash$ alias vlock="echo 'pause;exit'|xmms-shell;vlock -a;echo 'play;exit'|xmms-shell" 

*** licq with Network window in aterm ***

 
aterm -C -T licq\ net -e sh -c 'export TTY=`tty` ; licq -d 15 -o $TTY'

*** xmms display OSD message when changes track ***

Install pyosd library: 'emerge -vpD x11-libs/xosd'
Compile xosd.c: 'gcc `xosd-config --cflags --libs` xosd.c -o xosd'
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <xosd.h>

int main (int argc, char *argv[])
{
  xosd *osd;
  
  osd = xosd_create (2);
    if (osd == NULL)
      {
        perror ("Could not create \"osd\"");
        exit (1);
      }
  //xosd_set_font (osd, "fixed");
  xosd_set_font (osd, "-*-fixed-medium-r-*-*-*-120-*-*-*-60-iso8859-2");
  xosd_set_shadow_offset (osd, 1);
  xosd_set_align (osd, XOSD_center);
  xosd_display (osd, 0, XOSD_string, argv[1]);
		      
  sleep (3);
  xosd_destroy (osd);
  exit (0);
}
In xmms: Options/Preferences/General plugins/Song Change - enable, Configure/Command: xosd "%s". Alternatively you can use libxmms_osd.so from xosd package (enable it in xmms plugins).

*** fluxbox ***

keybindings
modified Amelie style

*** dsniff daemon ***

# Copyright 1999-2004 Gentoo Foundation
# modifications for dsniff by Pavel Ruzicka
# $Header: $

depend() {
          need net
}

start() {
          ebegin "Starting dsniff"
	          start-stop-daemon --start --quiet --exec /usr/sbin/dsniff -b -- -i eth1 -w /home/pr/dsniff.db
		          eend $?
}

stop() {
          ebegin "Stop dsniff"
	          start-stop-daemon --stop --quiet --exec /usr/sbin/dsniff
		          eend $?
}

restart() {
          svc_stop; svc_start
}

	

For Gentoo dont forget to do postup() ifconfig ${IFACE} promisc{ return 0 } in /etc/conf.d/net


*** Wireless link quality notification via osd ***

$ cat ~/bin/wifi_quality.sh 
#!/bin/bash
DEVICE=eth1

while true ;do
  LINK="`grep $DEVICE /proc/net/wireless | awk '{print $3}'|sed 's/\.$//'`"
  if [ $LINK -gt 66 ] ; then 
    COLOR=green
  elif [ $LINK -gt 33 ] ; then
    COLOR=orange
  else
    COLOR=red ;
  fi

  osd_cat -p bottom -A center -c $COLOR -b percentage -P $LINK -T $LINK -s 1 -d 1
done

Zpet - Back | H o m e | Vpred - Forward

Lamparna (GuestBook)