SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2008-11-26 21:04:55

Master One
Member
Registered: 2008-11-25
Posts: 31

How to change the Shortcut Keys?

Just running the 8.10.01 livecd for the very first time. Quite nice, although I am still not sure, if it is the right thing for me, as I was using Xfce on sidux and Debian Lenny till now.

So running the livecd, I can see a list of shortcuts on the desktop, and I was wondering how these can be changed, because most of them involve the Super (= Windows) key, but my IBM ThinkPad T42p laptop does not have that key.

Offline

Be excellent to each other!

#2 2008-11-26 22:00:06

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,058
Website

Re: How to change the Shortcut Keys?

Hi Master One

Shortcut keys can be modified by editing the keybindings in ~/.config/openbox/rc.xml . The entries start at around line 267 and take the form:

    <keybind key="A-F2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Run Program</name>
        </startupnotify>
        <command>gmrun</command>
      </action>
    </keybind>

Hope this helps smile

Offline

#3 2008-11-27 07:29:43

Master One
Member
Registered: 2008-11-25
Posts: 31

Re: How to change the Shortcut Keys?

I guess there is no GUI frontend available for that task?

Offline

#4 2008-11-27 08:36:46

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,058
Website

Re: How to change the Shortcut Keys?

Not that I am aware of, ObConf does not seem to offer any options for altering keybindings. Having said that, I find that once I have done my initial set-up, I rarely have to edit them, so maybe a GUI would be overkill?

Offline

#5 2008-12-22 20:26:26

Foomandoonian
#! CrunchBanger
From: Cardiff, UK
Registered: 2008-12-07
Posts: 227
Website

Re: How to change the Shortcut Keys?

I have a follow up question:

Launching the main menu is currently <super> + <space> (W-space). That is also the combination that gnome-do wants to use. I would like to change the menu shortcut to just <super> (W), but when I do the shortcut gets bound to <w> instead of <super>.

Windows gets to just use the super key! Can I? tongue


foomandoonian's tumblelog & twitter

Offline

#6 2008-12-23 00:40:20

kestrel
Species: F. sparverius
From: Moscow, Idaho
Registered: 2008-11-29
Posts: 170
Website

Re: How to change the Shortcut Keys?

Foomandoonian wrote:

I have a follow up question:

Launching the main menu is currently <super> + <space> (W-space). That is also the combination that gnome-do wants to use. I would like to change the menu shortcut to just <super> (W), but when I do the shortcut gets bound to <w> instead of <super>.

Windows gets to just use the super key! Can I? tongue

In the Openbox rc.xml file, the uppercase w (W) signifies the super or "windows" key. If you want the main menu to be <super> w the here is the snippet from the rc.xml. Letter case is important!

    <keybind key="W-w">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>

In the past I have set Gnome-Do to Ctrl + Super + Spacebar with <keybind key="C-W-space"> Currently I'm running #! sans the Do.

Last edited by kestrel (2008-12-23 00:46:06)


My web activities: Etsy Shop | Facebook | Blog

Offline

#7 2008-12-23 00:54:43

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: How to change the Shortcut Keys?

kestrel wrote:

Currently I'm running #! sans the Do.

I've never properly understood the attraction of the Do. I feel it's a highly overrated piece of software. Still, whatever makes you productive I guess smile

The joys of Linux smile

Offline

#8 2008-12-23 01:02:38

Foomandoonian
#! CrunchBanger
From: Cardiff, UK
Registered: 2008-12-07
Posts: 227
Website

Re: How to change the Shortcut Keys?

Sorry, I muddled my question!

I don't want to use 'super' and 'w', just 'super' all on it's own. I figured out that 'W' was super, but on it's lonesome, it just becomes a plain old non-super 'w'. Incidentally, I've set gnome-do to use Alt-space, which will work just fine for me.  smile

I've also been trying in vain to change the desktop-context scrollwheel behaviour from switching desktops! I do that accidentally all the time!


foomandoonian's tumblelog & twitter

Offline

#9 2008-12-23 02:26:27

scottro
#! Member
From: NYC
Registered: 2008-12-13
Posts: 68
Website

Re: How to change the Shortcut Keys?

Hrrm, that will mess up all other shortcuts.  If you change it to just <keybind="W">, what happens.  (I'm in a fluxbox session at present, so can't test it.)

Offline

#10 2008-12-23 03:32:35

kestrel
Species: F. sparverius
From: Moscow, Idaho
Registered: 2008-11-29
Posts: 170
Website

Re: How to change the Shortcut Keys?

omns wrote:
kestrel wrote:

Currently I'm running #! sans the Do.

I've never properly understood the attraction of the Do. I feel it's a highly overrated piece of software. Still, whatever makes you productive I guess smile

The joys of Linux smile

THe Holy Grail that Do is after is to be able to launch any application together with any file on your machine and to Do this with just a few keyboard strokes. No mousing around for the Kenny G song or the link to a recently visited website. It does all this coolness without any preconfiguring in advance. It scans you disk for apps and files. It is worth a look.


My web activities: Etsy Shop | Facebook | Blog

Offline

#11 2008-12-23 12:52:51

Foomandoonian
#! CrunchBanger
From: Cardiff, UK
Registered: 2008-12-07
Posts: 227
Website

Re: How to change the Shortcut Keys?

scottro wrote:

Hrrm, that will mess up all other shortcuts.  If you change it to just <keybind="W">, what happens.  (I'm in a fluxbox session at present, so can't test it.)

It's a confusing problem to explain. hmm

Here's the default XML:

    <keybind key="W-space">
      <action name="ShowMenu">
        <menu>root-menu</menu>
      </action>
    </keybind>

Obviously, the "W-space" equates to <super> + <space>

However, if I change it thusly:

    <keybind key="W">

It now applies the shortcut to the normal letter '<w> and not <super>, as I expected.

I don't think what I'm asking is possible, but I'm persisting because perhaps there is some complex workaround. I'll try the OpenBox IRC also... smile


foomandoonian's tumblelog & twitter

Offline

#12 2008-12-23 13:29:29

Foomandoonian
#! CrunchBanger
From: Cardiff, UK
Registered: 2008-12-07
Posts: 227
Website

Re: How to change the Shortcut Keys?

Okay, answer from 'Mikachu' in #openbox:

The shortcut for the super key is either Meta_L or Super_L (Or _R for the other key).

However, this will override any other combination that uses that key!

I actually may make this change, and come up with different shortcuts for the apps I need, but I'm reluctant to change any OS defaults too much. Every change is something I have to remember to backup/reconfigure if/when I reinstall. tongue

--

The scrollwheel/desktop switcher may only be a problem for me, because  have the a.d.d. tendency to click and scroll my mouse on random crap when I'm thinking. If you want to turn it off, find the relevant bit of code and comment it out, thusly:

<!--   Scrollwheel switches desktop and pisses me off
<mousebind button="Up" action="Click">
        <action name="DesktopPrevious"/>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="DesktopNext"/>
      </mousebind> -->

foomandoonian's tumblelog & twitter

Offline

#13 2009-03-19 11:22:17

e.m.fields
Howto Master
From: chapel hill, nc
Registered: 2009-03-15
Posts: 31
Website

Re: How to change the Shortcut Keys?

Wiki Entry on this subject:
http://crunchbanglinux.org/wiki/howto/e … _shortcuts

Getting my keyboard shortcuts setup is always something I devote a lot of time into when I get started with customizing a new system, makes a big difference in being able to navigate "unconsciously". 
So.. Sounds like you guys know a lot more than I do, please come add tips/resources/knowledge to the wiki page...


--
e.m.fields
chapel hill, nc

Offline

#14 2012-03-02 20:03:23

skid vicious
#! Member
Registered: 2011-06-04
Posts: 51

Re: How to change the Shortcut Keys?

hello.

i am trying but failing trick out the shortcut menu for the first time.  i want to use Super+4 to invoke libreoffice-calc but i keep getting this msg:

Failed to execute child process "libreoffice-calc"

i first tried with just "calc".  i also tried to code with W+s, thinking maybe numbers don.t work but that didn.t help either.  do i need to actually author a more precise path or what...?

Offline

#15 2012-03-02 21:50:55

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: How to change the Shortcut Keys?

SKID VICIOUS wrote:

hello.

i am trying but failing trick out the shortcut menu for the first time.  i want to use Super+4 to invoke libreoffice-calc but i keep getting this msg:

Failed to execute child process "libreoffice-calc"

i first tried with just "calc".  i also tried to code with W+s, thinking maybe numbers don.t work but that didn.t help either.  do i need to actually author a more precise path or what...?

Try this:

<keybind key="W-4">
      <action name="Execute">
          <command>libreoffice --calc</command>
      </action>
</keybind>

Remember to reconfigure Openbox after you edit rc.xml (either from the menu or with

openbox --reconfigure

in a terminal).

Then try either of these in a terminal if you need to learn about more options:

libreoffice --help
man libreoffice

One (or both) of these commands will usually show you a lot of useful information about an app you're trying to run.

Last edited by 2ManyDogs (2012-03-02 23:06:51)


Be eggsalad to each other.

Offline

#16 2012-03-03 01:45:11

skid vicious
#! Member
Registered: 2011-06-04
Posts: 51

Re: How to change the Shortcut Keys?

2ManyDogs:

thank you so much, that worked like a charm!  you.re on my xmas list...

skid.

Offline

#17 2013-12-27 13:25:09

Pandemonium
Member
Registered: 2013-12-24
Posts: 10

Re: How to change the Shortcut Keys?

2ManyDogs, thanks a lot! Especially for saying that you need to reconfigure openbox. I like dmenu, and I wanted it to be on Super+Space, like on my previous two distros. I have been using #! on my main computer for about a week, and I am a distro hopper, but I think I will hold onto #! because of it's customizability (if that word exist at all, english isn't my main language  tongue  smile  ).
Anyway, thanks and have a good day!


Remember, remember the 5th of November!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo