LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-30-2012, 09:48 PM   #1
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Rep: Reputation: 30
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?
 
Old 05-01-2012, 01:41 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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

Last edited by Tinkster; 05-01-2012 at 09:56 PM. Reason: y
 
Old 05-01-2012, 09:39 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,888

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
1 members found this post helpful.
Old 05-06-2012, 08:26 PM   #4
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
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.
 
Old 05-06-2012, 08:50 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,888

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.

Last edited by frankbell; 05-06-2012 at 08:56 PM.
 
Old 05-07-2012, 07:43 PM   #6
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by frankbell View Post
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.
 
Old 05-07-2012, 08:04 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
Originally Posted by alagenchev View Post
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
 
Old 05-07-2012, 08:23 PM   #8
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,888

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.

Last edited by frankbell; 05-07-2012 at 08:24 PM.
 
1 members found this post helpful.
Old 05-14-2012, 12:10 PM   #9
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Tinkster View Post
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.
 
Old 05-14-2012, 12:20 PM   #10
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by frankbell View Post
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), root1067,313),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

Notice this part:
root1067,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
 
Old 05-14-2012, 08:07 PM   #11
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,888

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Glad you got it working. Thanks for the update.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox: fbsetbg -f doesn't create full screen pictures User Name. Linux - Newbie 5 09-03-2008 02:53 PM
Fluxbox - Problem with Alt-Tab and Firefox Full Screen windz Linux - Desktop 2 04-17-2007 04:52 AM
full screen menu to select games? johnson_steve Linux - Software 4 02-02-2006 06:43 AM
How to set double click to open video in full screen in mplayer ankur_linuxfan Linux - Software 1 05-14-2005 04:33 AM
scripting a mouse movement and click & mozilla full screen kingshrimp Linux - Software 2 11-26-2003 07:02 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration