On Mon, 21 Feb 2000, Lloyd Sumpter wrote:
>    I'm just getting used to KDE and in general I think it's nice. 

>    1. I'd like to change the app that is chosen when you click on a file. For
> instance, now when I click on an .mpg, it runs aktion, and I'd like it to run
> mtv.
I don't know how to deal with this, but I imagine it has to do with
Mime-Types, before changing to KDE, I used a small program written in 
Yabasic to deal with this, I am attaching it, you can find Yabasic in
www.yabasic.de
Yabasic is a Basic interpreter that lets you write scripts with easy and
simple commands (compared to the ugly Perl commands :-)
You will need "xgetfile" which is a utility included with most Linux
distributions.
>    2. I want auto-focus, and I want a right-click to send the window to the
> back.
click on the "K" button and select "KDE Control Center", then
select 
[-]Windows
then select
[-]Properties
and pick "Focus follows mouse"

>    4. I'd like to change the little icons in the bottom row to ones I use more
> often.
click the "K" button,
move cursor on "Panel"
select "Add Application"
after you add an application, click on its icon with right button and
select "Properties"
select tab "Execute" and you can change its icon and binary there.
--
Hope this helps,
bye

--------------------------------------------------------------------------
Hermang Mansilla M.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Linux, the choice of a GNU Generation ... 
because life is too short to compute on anything else."
"May the Open Source be with you ..."
---------------------------------------------------------------------------

#!/usr/local/bin/yabasic
if peek("argument")<>1 then
print "Usage:\n browser.yab <filename.ext>\n"
end
else
filename$=peek$("argument")
fi
opt=instr(filename$,".")
if opt=0 then
print "Sorry extension is needed or not recognized\n"
end
fi
fileext$=mid$(filename$,opt+1,len(filename$)-opt)
read n
dim ext$(n),applic$(n)
for i=1 to n
read ext$(i),applic$(i)
check=instr(ext$(i),fileext$)
if check>0 then
eureka=i
fi
next i
if eureka>0 then
check=instr("avi:mov:qt:fli",fileext$)
        if check>0 then
        clear screen
        print "Double scaling? "
        k$=inkey$
                if k$="y" then
                command$="xanim +f +Ss2 "
                else
                command$="xanim +f "
                fi
        system(command$+filename$)
        else
        command$=applic$(eureka)+filename$
        system(command$)
        fi
else
print " No match"
fi
end

data 14
rem data "gif:jpg", "zgv "
data "gif:jpg:GIF:JPG:bmp", "xv "
data "midi:MIDI", "timidity -in "
data "html", "netscapej1 "
data "au", "play "
data "wav", "play "
data "mp3:MP3", "old.x11amp "
data "ram:rm:RM", "rplayer "
data "avi:AVI:mov:MOV:qt:fli", "xanim +f "
rem +Ss2 "
data "mod:MOD:s3m:S3M", "Mikmod "
data "txt", "less "
data "mpg:mpeg", "pipempeg "
data "gl", "xviewgl "
data "xbm:XBM", "xbm2ybm.yab "
data "csf", "sod2  "
end
xgetfile  -exec "browser.yab %s" -queue

Reply via email to