SEARCH

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

You are not logged in.

#1 2009-06-12 23:13:55

lkraemer
Member
Registered: 2009-05-31
Posts: 23

HOWTO: Change your Super Key (Windows Key) to ALT or CNTL

HOWTO: Change your Super Key (Windows Key) to ALT or CNTL

Here is what you need to do:
1.  Change Conky so it displays which key you want to use.....like ALT or CNTL
2.  Edit the rc.xml file to make the changes work.
3.  Open a terminal window by right clicking on the desktop, or move the mouse to the top of the screen
4.  Open this file by right clicking on the desktop, or move the mouse to the top of the screen
5.  GOTO PREFERENCES -> CONKY CONFIG -> EDIT .CONKYRC
     Change the displayed key from Super to what you have selected to use.
6.  Change SUPER to Alt (like the first one (Alt+F2) for all 9 (or make a couple more spares)
     About line 107 starts the Super+ code (9 changes)
     Save the file.   Restart Conky from the Menu.
7.  GOTO PREFERENCES -> OPENBOX CONFIG -> EDIT rc.xml
     go down to the following code, edit it, then save it, and Restart From the Menu:

ORIGINAL CODE FOLLOWS:

<!-- Keybindings for running applications -->
    <keybind key="A-F2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Run Program</name>
        </startupnotify>
        <command>gmrun</command>
      </action>
    </keybind>
    <keybind key="W-f">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Thunar</name>
        </startupnotify>
        <command>thunar</command>
      </action>
    </keybind>
    <keybind key="W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>terminator</command>
      </action>
    </keybind>
    <keybind key="W-w">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Web Browser</name>
        </startupnotify>
        <command>firefox</command>
      </action>
    </keybind>
    <keybind key="W-l">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Lock screen</name>
        </startupnotify>
        <command>gnome-screensaver-command -l</command>
      </action>
    </keybind>
    <keybind key="W-e">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Editor</name>
        </startupnotify>
        <command>gedit</command>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Mediaplayer</name>
        </startupnotify>
        <command>vlc</command>
      </action>
    </keybind>
    <keybind key="W-v">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>xfce4-mixer</name>
        </startupnotify>
        <command>xfce4-mixer</command>
      </action>
    </keybind>
    <keybind key="W-g">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Gimp</name>
        </startupnotify>
        <command>gimp</command>
      </action>
    </keybind>
    <keybind key="W-o">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>OpenOffice.org</name>
        </startupnotify>
        <command>ooffice</command>
      </action>
    </keybind>

Change to ALT or CNTL (not shown)
Change each key="W-f" to key="A-f"
Change each key="W-t" to key="A-t"
Change each key="W-w" to key="A-w"
Change each key="W-l" to key="A-l"
Change each key="W-e" to key="A-e"
Change each key="W-m" to key="A-m"
Change each key="W-v" to key="A-v"
Change each key="W-g" to key="A-g"
Change each key="W-o" to key="A-o"

Save your files. Try it out.  You can make it CNTL if you like instead of ALT.

Posting moved 06-12-2009 to Tips, Tricks & Scripts from HOWTO: Sticky.......

lkraemer

Last edited by lkraemer (2009-06-12 23:47:01)

Offline

Help fund CrunchBang, donate to the project!

#2 2009-06-13 16:12:07

fhsm
#! Junkie
From: New Hampshire, USA
Registered: 2009-01-05
Posts: 443

Re: HOWTO: Change your Super Key (Windows Key) to ALT or CNTL

Thanks for reposting this here, it's a good explanation of this approach. 

I've updated my solution comparison thread and added the question to the Wiki FAQ.


FHSM: avoid vowels and exotic consonants and you'll get your handle every time.  identi.ca

Offline

#3 2009-06-13 17:51:37

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,888
Website

Re: HOWTO: Change your Super Key (Windows Key) to ALT or CNTL

Nice work guys, thank you for sharing! smile

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