WAITS

From VoidWarranties - Hackerspace Antwerp, Belgium
Revision as of 18:32, 19 December 2014 by Berz (Talk | contribs)
Jump to: navigation, search


WAITS
What:
Tomwaits.jpg
Participants:
berz_, Tom Waits
Category:
Electronics
Locations:
at the bar



I strongly protest against the chosen name, Tom is already the most common name in the space.--TomD 17:20, 19 August 2012 (CEST)



TOM waits at in silence at the end of the bar. When someone pushes him, he quips out oneliners, setting the mood for the evening. In doing so TOM is essential for the social atmosphere in the lounge. TOM can turn any lame pun into an hilarious joke, a rambling story into a tragedy, and a sandwich into a banquet.

Contents

Why TOM?

How do we do it? (How do we do it?)

That's right, you too can be of a TOM. Follow these easy assembly instructions!

  xinput set-button-map "Logitech Optical USB Mouse" 51 52 53 54 55
  "TOM 1"
	b:51
  "TOM 2"
	b:52
  "TOM 3"
	b:53
  "mpc -q volume +10"
	b:54
  "mpc -q volume -10"
	b:55
#!/bin/bash
STATE=$(ps ax | sed -n '/[0-9] paplay/p')
if [ "$STATE" = "" ]; then
	volume=$(mpc volume | sed 's/.*: *\([0-9]*\)%.*/\1/')
	echo $volume > /tmp/volume
	for ((i=$volume; i > 0 ; i=i-10)); do mpc -q volume $i; done
	mpc -q volume 0
	paplay --volume=65536 /home/barputer/TOM/${1}.wav
	for ((i=0; i < $volume ; i=i+10)); do mpc -q volume $i; done
	mpc -q volume $volume
else
	volume=$(cat /tmp/volume)
	killall paplay
	for ((i=0; i < $volume ; i=i+10)); do mpc -q volume $i; done
	mpc -q volume $volume
fi
 sudo chmod +x /usr/local/bin/TOM
 xbindkeys

Volume, Volume, Turn up the volume!

Pulseaudio needs to be running, this is the case when the music is player. However, we are still encountering some issues with pulseaudio.

Bugs

When booting barputer TOM might change order with the touchscreen as to which one of them is the first input device (/dev/input/mouse0). This will cause the touchscreen to malfunction, probably because it is adressed as /dev/input/mouse0 in xorg.conf.

The buttons are also wired to pedals, which make and easier target to punch. But the mouse will not be recognized when these are plugged in.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Content Creation
Belgian Spaces