You are not logged in.

#1 2011-06-04 14:03:35

build
Member
Registered: 2009-03-05
Posts: 15

execute command with defined parameters

Hi,

I have a firefox addon, "Image Assistent", which enables you to open images with an image viewer. The only possibility is gThumb, which I do not like. So one makes a symbolic link. I have made one so it uses Feh. But I want Feh to be executed as "feh -ZF --hide-pointer". How do I do this?

I made a tiny script feh.sh with "feh -ZF --hide-pointer" as content, but this lacks what image it should open. An alias doesnt work. So how can I get feh to open with said parameters?

Thanks

Offline

#2 2011-06-04 14:08:21

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: execute command with defined parameters

Use this as script

#!/bin/sh
feh -ZF --hide-pointer "$*"

Offline

#3 2011-06-05 18:32:09

build
Member
Registered: 2009-03-05
Posts: 15

Re: execute command with defined parameters

Nice! Thank you, mister.

Offline

Board footer

Powered by FluxBB