KDE random wallpaper
Create this file in ~/.kde/Autostart:
$!/bin/bash
DIR=/mnt/bulk/pictures/
# count pictures
pics=$(locate -c "$DIR*jpg")
# generate random number within this range
pic=$RANDOM
let "pic %= $pics"
pic=$((1 + pic ))
# now slice locate results
newpic=$(locate "$DIR*jpg" | head -n$pic | tail -n1)
#echo newpic: $newpic
cd ~/.kde/share/config/
perl -pe "s{^(Wallpaper=).*$}{\$1$newpic}" kdesktoprc >new_kdesktoprc
chown --reference=kdesktoprc new_kdesktoprc
mv new_kdesktoprc kdesktoprc
Change the DIR variable to the root of your pictures. This will run each time you start KDE, and choose a picture randomly from all that you have available.
Make full set of desktop icons.
- Make a directory in /usr/share/icons/myicons
- inside that, there should be folders: 128x128 16x16 32x32 48x48 64x64
- each contain folders: apps devices filesystems mimetypes which each contain image files.
Use imagemagick to create small ones from big ‘uns (eg. for 16x16):
cd /usr/share/icons/myicons/128x128
ls --color=never -1 >../dolist # make a list to do.
cd ../16x16
while read f ; do \
convert -size 16x16 "../128x128/$f" \
-resize 16x16 "$f" ; done <../dolist
KDE only registers new icons when you (re)select them from it’s control panel.
Dell W1700 TV/monitor XFree86 / Xorg modeline
From xorg.conf (or XF86Config-4 ):
Section "Monitor"
Identifier "Dell W1700"
HorizSync 30-61
VertRefresh 56-75
Option "DPMS"
# for Dell W1700, got it from internet someone else. Seems to work fine
Modeline "1280x768@60" 81 1280 1344 1480 1680 768 769 772 795 -hsync +vsync
EndSection
