Home > Archive > alt.os.linux > October 2002 > fluxbox question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author fluxbox question
Joel Rosenberg

2002-10-04, 10:25 am

Is there any reasonable way to have multiple actions for a single key?
I'd like to configure my keyfile to toggle both decorations and
maximization with the same keystroke.
--
An idle mind is worth two in the bush.
------------------------------------------------------------
http://islamthereligionofpeace.blogspot.com
Paul Lutus

2002-10-05, 11:24 pm

Joel Rosenberg wrote:

> Is there any reasonable way to have multiple actions for a single key?


Let your action be the invocation of a shell script. Write the shell script
to do anything you want.

> I'd like to configure my keyfile to toggle both decorations and
> maximization with the same keystroke.


See above.

--
Paul Lutus
www.arachnoid.com
Joel Rosenberg

2002-10-06, 5:24 pm

Paul Lutus <nospam@nosite.zzz> wrote in message news:<upvels9uicmk11@corp.supernews.com>...
> Joel Rosenberg wrote:
>
> > Is there any reasonable way to have multiple actions for a single key?

>
> Let your action be the invocation of a shell script. Write the shell script
> to do anything you want.
>
> > I'd like to configure my keyfile to toggle both decorations and
> > maximization with the same keystroke.

>
> See above.


Not unless there's some way to have a shell script pass commands or
keystrokes to fluxbox itself. I could easily have a shell script
start emacs, kill my mailer, etc. -- but if there's some way it can
tell fluxbox to perform an "Operation", it's escaping me.
Paul Lutus

2002-10-07, 12:24 am

Joel Rosenberg wrote:

> Paul Lutus <nospam@nosite.zzz> wrote in message
> news:<upvels9uicmk11@corp.supernews.com>...
>> Joel Rosenberg wrote:
>>
>> > Is there any reasonable way to have multiple actions for a single key?

>>
>> Let your action be the invocation of a shell script. Write the shell
>> script to do anything you want.
>>
>> > I'd like to configure my keyfile to toggle both decorations and
>> > maximization with the same keystroke.

>>
>> See above.

>
> Not unless there's some way to have a shell script pass commands or
> keystrokes to fluxbox itself.


No. The scenario is that keystrokes invoke commands. You want more than one
command per keyastroke. So, run a shell script that runs more than one
command.

Here is your original request:

> Is there any reasonable way to have multiple actions for a single key?


The answer -- yes. Have a single key launch a shell script.

> I could easily have a shell script
> start emacs, kill my mailer, etc. -- but if there's some way it can
> tell fluxbox to perform an "Operation", it's escaping me.


What does Fluxbox do when you press keys? Do you get to tell it which key
leads to which actions? What kinds of actions are permitted?

--
Paul Lutus
www.arachnoid.com
=?iso-8859-1?Q?Nils_O=2E_Sel=E5sdal?=

2002-10-07, 5:24 am

In article <uq240fmkb4cr97@corp.supernews.com>, Paul Lutus wrote:
> Joel Rosenberg wrote:
>
>> Paul Lutus <nospam@nosite.zzz> wrote in message
>> news:<upvels9uicmk11@corp.supernews.com>...
>>> Joel Rosenberg wrote:
>>>
>>> > Is there any reasonable way to have multiple actions for a single key?
>>>
>>> Let your action be the invocation of a shell script. Write the shell
>>> script to do anything you want.
>>>
>>> > I'd like to configure my keyfile to toggle both decorations and
>>> > maximization with the same keystroke.
>>>
>>> See above.

>>
>> Not unless there's some way to have a shell script pass commands or
>> keystrokes to fluxbox itself.

>
> No. The scenario is that keystrokes invoke commands. You want more than one
> command per keyastroke. So, run a shell script that runs more than one
> command.

As you see on his original request, he doesn't want commands, but actions.
e.g. how to you from a script tell fluxbox to shade a window.

Cant be done currently...



--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal
System Engineer
UtelSystems a/s
Tlf: +47 370 45 431
w w w . u t e l s y s t e m s . c o m

Joel Rosenberg

2002-10-07, 8:24 am

Nils O. Selåsdal <noselasd@frisurf.no> writes:

> In article <uq240fmkb4cr97@corp.supernews.com>, Paul Lutus wrote:
>> Joel Rosenberg wrote:
>>
>>> Paul Lutus <nospam@nosite.zzz> wrote in message
>>> news:<upvels9uicmk11@corp.supernews.com>...
>>>> Joel Rosenberg wrote:
>>>>
>>>> > Is there any reasonable way to have multiple actions for a single key?
>>>>
>>>> Let your action be the invocation of a shell script. Write the shell
>>>> script to do anything you want.
>>>>
>>>> > I'd like to configure my keyfile to toggle both decorations and
>>>> > maximization with the same keystroke.
>>>>
>>>> See above.
>>>
>>> Not unless there's some way to have a shell script pass commands or
>>> keystrokes to fluxbox itself.

>>
>> No. The scenario is that keystrokes invoke commands. You want more than one
>> command per keyastroke. So, run a shell script that runs more than one
>> command.

> As you see on his original request, he doesn't want commands, but actions.
> e.g. how to you from a script tell fluxbox to shade a window.
>
> Cant be done currently...
>


That's the conclusion that I've come to. Not, by any means,
sufficient reason for me to give up fluxbox, but it would be nice if
it were otherwise.

--
Did you hear that two rabbits escaped from the zoo and so far they have
only recaptured 116 of them?
------------------------------------------------------------
http://islamthereligionofpeace.blogspot.com
=?iso-8859-1?Q?Nils_O=2E_Sel=E5sdal?=

2002-10-07, 11:24 am

In article <m2zntq76s0.fsf@joelr.ellegon.com>, Joel Rosenberg wrote:
> Nils O. Selåsdal <noselasd@frisurf.no> writes:
>
>> In article <uq240fmkb4cr97@corp.supernews.com>, Paul Lutus wrote:
>>> Joel Rosenberg wrote:
>>>
>>>> Paul Lutus <nospam@nosite.zzz> wrote in message
>>>> news:<upvels9uicmk11@corp.supernews.com>...
>>>>> Joel Rosenberg wrote:
>>>>>
>>>>> > Is there any reasonable way to have multiple actions for a single key?
>>>>>
>>>>> Let your action be the invocation of a shell script. Write the shell
>>>>> script to do anything you want.
>>>>>
>>>>> > I'd like to configure my keyfile to toggle both decorations and
>>>>> > maximization with the same keystroke.
>>>>>
>>>>> See above.
>>>>
>>>> Not unless there's some way to have a shell script pass commands or
>>>> keystrokes to fluxbox itself.
>>>
>>> No. The scenario is that keystrokes invoke commands. You want more than one
>>> command per keyastroke. So, run a shell script that runs more than one
>>> command.

>> As you see on his original request, he doesn't want commands, but actions.
>> e.g. how to you from a script tell fluxbox to shade a window.
>>
>> Cant be done currently...
>>

>
> That's the conclusion that I've come to. Not, by any means,
> sufficient reason for me to give up fluxbox, but it would be nice if
> it were otherwise.


I suggest a post at their mailinglist.


--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal
System Engineer
UtelSystems a/s
Tlf: +47 370 45 431
w w w . u t e l s y s t e m s . c o m

AthlonRob

2002-10-08, 12:24 am

On Sun, 06 Oct 2002 21:40:20 -0700, Paul Lutus <nospam@nosite.zzz> wrote:
> Here is your original request:
>
>> Is there any reasonable way to have multiple actions for a single key?

>
> The answer -- yes. Have a single key launch a shell script.


The problem is (look up the full original post) he wants to do two
things with a single key command... but not run two commands. He wanted
to do something like toggle decorations and maximize the window.
Fluxbox's key grabbing whatchamacallit does a whole hell of a lot more
than just ExecCommand. :-)

man fluxbox to see what all it can do.

I do not believe you can modify window properties via a shell script so
easily.

I would suggest the OP take this to the fluxbox-users or fluxbox-dev
mailing list... maybe they'll add the feature if it isn't already there.
:-)

Rob
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net