Quote:
Originally Posted by e1-531g
Code:
#!/bin/ksh
typeset -i ILOSC_TAPET=4
typeset -i losowa_liczba=$(( ( RANDOM % ${ILOSC_TAPET} ) + 1 ))
/usr/local/bin/feh --bg-scale /home/open/tapety/z_logo/${losowa_liczba}.jpg
|
This works as well:
Code:
/usr/local/bin/feh --bg-scale --randomize /home/open/tapety/z_logo/*.jpg
EDIT: also, rather than:
Code:
eval `cat $HOME/.fehbg`
This can be used instead:
Thanks for the guide shep, it is very useful