Prev | Current Page 339 | Next

Chris Tyler

"X Power Tools"


Replace the xscreensaver-command line in the earlier kiosk-reset script with the command
line for your selected hack:
#!/bin/bash
#
# kiosk-reset :: xscreensaver 'hack' to reset the kiosk
# Reset the kiosk application (Firefox browser in this case)
firefox -remote 'openURL(http://yellow/)' &
# Execute an existing xscreensaver hack
exec /usr/libexec/xscreensaver/phosphor -program 'echo -e "\fX Power Tools
\nby Chris Tyler\nO\'Reilly Media, 2007\n\nEverything you ever wanted\nto know
about X - and then\n some\n-Slashdot Anonymous Coward\n\nTouch the mouse to
begin..."' -root
15.9 Refining the Kiosk Appearance
The default X cursor (which is a thick X, visible whenever an application has not
taken overridden the default cursor shape) and the root window appearance (either
solid black or a stippled grayscale pattern) are ugly. You can control both using the
xsetroot command:
blue$ xsetroot -cursor_name left_ptr -solid steelblue
left_ptr is the name of the standard, northwest-pointing arrow cursor; to see other
possible cursor names, read /usr/include/X11/cursorfont.h. To see the cursor shapes,
15.10
230 Chapter 15: Building a Kiosk
use the X font display program, and match up the character numbers (seen at the top
of the window when you click on a shape) with the numbers in /usr/include/X11/
cursorfont.


Pages:
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
pustaki szklane House Extension Kąty Rybackie noclegi kasyno Kołobrzeg