Saturday, April 16, 2011

Some handy SLAX tidbits

I've made another SLAX digital picture frame and found a few useful options I want to document so the next time I don't have to fire up the google machine to hunt this info down.


If you want to disable the screen saver and the energy star feature which will keep the screen from being turned off after inactivity run the 2 commands below: I placed this in an executable file in rootcopy/root/.kde/Autostart
xset s off
xset -dpms

To run konqueror in full screen use this:

kstart --fullscreen konqueror http://www.website.com


To hide the various tool bars edit konquerorrc:

[KonqMainWindow Toolbar locationToolBar]
Hidden=true
IconText=IconOnly
Index=2


[KonqMainWindow Toolbar mainToolBar]
Hidden=true
Index=1



To refresh konqueror every 60 seconds create an executable file with(change 60 to your needed time):


#!/bin/bash



K=`dcopstart konqueror http://website.com`; dcop $K qt/.*mainwindow#1 showFullScreen
while [ true ]; do
sleep 60; # wait 1 minute
dcop $K "konqueror-mainwindow#1" reload
done

If you want the mouse cursor hidden use "unclutter". Put

#!/bin/bash
/bin/unclutter &

in an executable file in rootcopy/root/.kde/Autostart


Command to make bootable iso run in parent directory of slax and boot directories

mkisofs -r -V "Slax" -cache-inodes -J -l -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o output.iso .

Labels: