LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to open fluxbox right click menu when there is a full screen window on screen (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-open-fluxbox-right-click-menu-when-there-is-a-full-screen-window-on-screen-942648/)

alagenchev 04-30-2012 09:48 PM

how to open fluxbox right click menu when there is a full screen window on screen
 
I've been using Linux for years, but I am new to fluxbox. Is there a way to open the right click menu in fluxbox without eh... right clicking on the desktop :-).
I would like to be able to launch a new program while I have let's say the browser in full screen mode.
I have the feeling that I am missing something here. Is that not the way I am supposed to use fluxbox?

Tinkster 05-01-2012 01:41 AM

I use a key combo to do that ...
Mod1 Shift m :RootMenu

Of course that (or your preferred choice of funky keys) needs
to be in your ~/.fluxbox/keys before you try to use it ;}


Cheers,
Tink

frankbell 05-01-2012 09:39 PM

In the .fluxbox/keys file, I entered this:

Code:

Control Escape :RootMenu
In a salute to my Windows days, I can open the menu by hitting CTRL-ESC.

alagenchev 05-06-2012 08:26 PM

Sorry for the late response, I just realized that I don't get email updates when somebody posts a message to my threads. All this time I was under the impression that no one had replied. Thank you for the replies. I was able to get Control + Escape working. Do you know how I can add the windows key to the keys file? I tried all of these:
Mod4 :RootMenu
Windows key :RootMenu
Windows :RootMenu
Super :RootMenu

But nothing happens when I press the windows key.

frankbell 05-06-2012 08:50 PM

Here's a bit from my keys file. I think you are missing the "ExecCommand" item.

Code:

Mod4 v :ExecCommand xterm -e alsamixer
Mod4 w :ExecCommand libreoffice3.4
Control Escape :RootMenu

These work. Try

Code:

Mod 4:ExecCommand RootMenu
I have never tried to get the Windows key to do anything on its own.


Edit: Fluxbox rocks.

alagenchev 05-07-2012 07:43 PM

Quote:

Originally Posted by frankbell (Post 4672002)
Here's a bit from my keys file. I think you are missing the "ExecCommand" item.

Code:

Mod4 v :ExecCommand xterm -e alsamixer
Mod4 w :ExecCommand libreoffice3.4
Control Escape :RootMenu

These work. Try

Code:

Mod 4:ExecCommand RootMenu
I have never tried to get the Windows key to do anything on its own.


Edit: Fluxbox rocks.

Hi, I tried that and it didn't work. It would be nice to make use of the windows key, since it's just sitting there unused.

Tinkster 05-07-2012 08:04 PM

Quote:

Originally Posted by alagenchev (Post 4672872)
Hi, I tried that and it didn't work. It would be nice to make use of the windows key, since it's just sitting there unused.

Define "unused" :}

For me it's the modifier for several key-combos.
Code:


grep Mod4 /home/andrej/.fluxbox/keys
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9
Mod4 F1 :SendToWorkspace 1
Mod4 F2 :SendToWorkspace 2
Mod4 F3 :SendToWorkspace 3
Mod4 F4 :SendToWorkspace 4
Mod4 F5 :SendToWorkspace 5
Mod4 F6 :SendToWorkspace 6
Mod4 F7 :SendToWorkspace 7
Mod4 F8 :SendToWorkspace 8
Mod4 F9 :SendToWorkspace 9
Mod4 F10 :SendToWorkspace 10

I'd miss them if it had a single action assigned to it ;D

frankbell 05-07-2012 08:23 PM

You can use xev to see the raw keycodes. Xev generates a mass of data to wade through, but it might help.

By the way, it's a small thing, but you have to restart Fluxbox for a modification to the keys file to take effect. You can use the "restart" item on the Fluxbox menu to do so without closing any applications.

alagenchev 05-14-2012 12:10 PM

Quote:

Originally Posted by Tinkster (Post 4672887)
Define "unused" :}

For me it's the modifier for several key-combos.
Code:


grep Mod4 /home/andrej/.fluxbox/keys
Mod4 Tab :NextTab
Mod4 Shift Tab :PrevTab
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9
Mod4 F1 :SendToWorkspace 1
Mod4 F2 :SendToWorkspace 2
Mod4 F3 :SendToWorkspace 3
Mod4 F4 :SendToWorkspace 4
Mod4 F5 :SendToWorkspace 5
Mod4 F6 :SendToWorkspace 6
Mod4 F7 :SendToWorkspace 7
Mod4 F8 :SendToWorkspace 8
Mod4 F9 :SendToWorkspace 9
Mod4 F10 :SendToWorkspace 10

I'd miss them if it had a single action assigned to it ;D

I like the single key function. It's faster to press one button than two, I guess a matter of preference.

alagenchev 05-14-2012 12:20 PM

Quote:

Originally Posted by frankbell (Post 4672902)
You can use xev to see the raw keycodes. Xev generates a mass of data to wade through, but it might help.

By the way, it's a small thing, but you have to restart Fluxbox for a modification to the keys file to take effect. You can use the "restart" item on the Fluxbox menu to do so without closing any applications.

Haha xev did the job. Here is how I went about solving this. I like describing the process, rather than giving out just the answer. If you want to skip the reading, the answer was to add this Super_L : RootMenu to your .fluxbox/keys file. I hope it helps someone else.

I ran xev like you suggested. It outputs all the x events in the console. Here is what I got for the super key:

KeyRelease event, serial 31, synthetic NO, window 0xa00001,
root 0x69, subw 0x0, time 6359893, (170,-9), root:(1067,313),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

Notice this part:
root:(1067,313),
state 0x40, keycode 133 (keysym 0xffeb, Super_L),

The Super_L is the name of the windows key.

I then ran xmodmap as suggested here: http://fluxbox-wiki.org/index.php?ti...ing_up_Super_L
and surprisingly mod4 was mapped correctly:

alagenchev@tangra:~$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)

However, my mod4 entry in the keys file didn't work correctly, so I looked at my keys file closer:

I had the following:
Mod4 : ExecCommand RootMenu
Super_L : ExecCommand RootMenu
Control Escape : RootMenu

Contorl + Escape worked, but not the others, so I removed the ExecCommand to result in this:

Mod4 : RootMenu
Super_L : RootMenu

That worked, but only because of the Super_L line. I don't know why but Mod4 : RootMenu doesn't do anything for me even though xmodmap has it mapped correctly.
Regardless, I am happy because I got it working and Super_L : RootMenu was the solution

frankbell 05-14-2012 08:07 PM

Glad you got it working. Thanks for the update.


All times are GMT -5. The time now is 06:53 PM.