Binding F-Keys

Hi there, I just disabled my F-keys ( for gaming corncerns) and I wanted to know how is it possible to only disable certain f-keys ( more accurate from F1-F3).

It works fine for me, so I don't know what your problem is I must confess...
{ MODKEY, XK_F1, spawn, {.v = termcmd } },
{ MODKEY, XK_F2, spawn, {.v = wwwcmd } },
{ MODKEY, XK_F12, spawn, {.v = haltcmd } },
{ MODKEY, XK_F11, spawn, {.v = rebootcmd } },
{ MODKEY, XK_Escape, killclient, {0} },
{ 0, 0x1008ff13,spawn, {.v = volupcmd } },
{ 0, 0x1008ff11,spawn, {.v = voldowncmd } },
{ 0, 0x1008ff12,spawn, {.v = volmutecmd } },
Please post me an example that dosen't work for you, and i'll test it out on my end ...
-- EDIT --
Forgot to refresh the page and so haden't seen knopwob allready providing help...
Last edited by mhertz (2011-11-18 00:08:38)

Similar Messages

  • Changevol - volume management (good for binding multimedia keys)

    I wrote this script to work with my laptop's multimedia keys. It requires python, pygtk, and alsa-utils. It is a non-interactive program that modifies the volume and then pops up a little gui notifier similar to programs like keytouch (but much simpler and less bloated). It was designed to work by binding multimedia keys (using programs like xbindkeys or any WM's/DE's keybinding apps) to the script and that is probably the only real convenient use.
    Here is what it looks like (pops up in the middle of the desktop on top of everything else). Don't worry about the color of the bar and such, it is programmed with gtk2, so it will inherit whatever your gtk theme looks like:
    Here is the script. To use: just dump into a text file called "changevol", chmod +x it, and put it in the PATH somewhere:
    #!/usr/bin/env python
    import pygtk
    import gtk
    import gobject
    import commands
    import sys
    import os
    import re
    import getopt
    def err(msg):
    print msg
    sys.exit(1)
    def usage():
    print '''
    Usage: changevol [options] [argument]
    Options:
    -i, --increase increase volume by `argument'
    -d, --decrease decrease volume by `argument'
    -c, --control specify the mixer control by `argument' (default Master)
    use only to modify a mixer other than Master
    -t, --toggle toggle mute on and off
    -s, --status display current volume status without modifying it
    -q, --quiet don't display the gtk progressbar, just change the volume
    -b, --backlight adjust the backlight using xbacklight
    -h, --help display this help message
    Note:
    Volume increases and decreases won't be exact due to amixer oddities.
    sys.exit(0)
    class GetVolInfo():
    def __init__(self, command):
    self.amixeroutput = commands.getoutput(command)
    if re.compile("off]$", re.M).search(self.amixeroutput, 1):
    self.realvol = "0"
    self.endlabel = "Mute"
    else:
    self.tempvolarray1 = self.amixeroutput.split("[")
    self.tempvolarray2 = self.tempvolarray1[1].split("%")
    self.realvol = self.tempvolarray2[0]
    self.endlabel = self.realvol + " %"
    self.percent = float(self.realvol)/100
    self.label = "Volume " + self.endlabel
    class ProgressBar:
    def timeout_callback(self):
    gtk.main_quit()
    return False
    def __init__(self, fraction, label):
    self.window = gtk.Window(gtk.WINDOW_POPUP)
    self.window.set_border_width(0)
    self.window.set_default_size(180, -1)
    self.window.set_position(gtk.WIN_POS_CENTER)
    timer = gobject.timeout_add(1000, self.timeout_callback)
    self.bar = gtk.ProgressBar()
    self.bar.set_fraction(fraction)
    self.bar.set_orientation(gtk.PROGRESS_LEFT_TO_RIGHT)
    self.bar.set_text(label)
    self.bar.show()
    self.window.add(self.bar)
    self.window.show()
    #Run through parameters, set variables and such
    CONTROL = "Master"
    AMIXEROPTION = "unset"
    QUIET = "NO"
    BACKLIGHT = "NO"
    if (len(sys.argv) < 2):
    usage()
    try:
    opts, args = getopt.getopt(sys.argv[1:], "bqhtsc:i:d:", ["backlight" "quiet", "help", "toggle", "status", "control=", "increase=", "decrease="])
    except getopt.GetoptError:
    err("Incorrect usage, see changevol --help.")
    if (len(opts) == 0):
    err("Incorrect usage, see --help.")
    for opt, arg in opts:
    if opt in ("-h", "--help"):
    usage()
    elif opt in ("-q", "--quiet"):
    QUIET = "YES"
    elif opt in ("-b", "--backlight"):
    BACKLIGHT = "YES"
    elif opt in ("-t", "--toggle"):
    AMIXEROPTION = "toggle"
    elif opt in ("-s", "--status"):
    INCREMENT = "0"
    AMIXEROPTION = INCREMENT + "%+"
    elif opt in ("-c", "--control"):
    CONTROL = arg
    elif opt in ("-i", "--increase"):
    INCREMENT = arg
    AMIXEROPTION = INCREMENT + "%+"
    elif opt in ("-d", "--decrease"):
    INCREMENT = arg
    AMIXEROPTION = INCREMENT + "%-"
    else:
    err("Incorrect usage, see --help")
    if (AMIXEROPTION == "unset"):
    err("No volume changing action has been dictated. See changevol --help.")
    command = "amixer set " + CONTROL + " " + AMIXEROPTION
    #Execution
    volume = GetVolInfo(command)
    if (QUIET == "NO"):
    ProgressBar(volume.percent, volume.label)
    gtk.main()
    if (BACKLIGHT == "YES"):
    os.execv('/usr/bin/xbacklight', ['placeholder', '-set', volume.realvol])
    Here is the usage synopsis (it can be accessed with changevol --help):
    Usage: changevol [options] [argument]
    Options:
      -i, --increase  increase volume by `argument'
      -d, --decrease  decrease volume by `argument'
      -c, --control   specify the mixer control by `argument' (default Master)
                      use only to modify a mixer other than Master
      -t, --toggle    toggle mute on and off
      -s, --status    display current volume status without modifying it
      -q, --quiet     don't display the gtk progressbar, just change the volume
      -b, --backlight adjust the backlight using xbacklight
      -h, --help      display this help message
    Note:
      Volume increases and decreases won't be exact due to amixer oddities.
    Edit: Changed mute handling a bit.
    Edit2: Added a -c, --control option for an amixer interface other than Master
    Edit3: Added a -s, --status option to just display the current volume status without modifying it
    Edit4: Added a -q, --quiet option to not show the progress bar and just change the volume
    Edit5: Added a -b, --backlight option to adjust the backlight along with the volume change (someone asked for it, so why the hell not right?)
    Last edited by bruenig (2008-02-03 06:43:07)

    ralvez wrote:I gave it a spin but every time I get the same answer: "No volume changing action has been dictated."
    Can you provide an example of issuing the command using xbindkeys? or even what I should be issuing on the command line? I must be doing something wrong ... and I do not feel like studying the code to figure it out since you can give me the answer just as fast
    The usage synopsis is in the first post or available by just doing "changevol" or changevol -h|--help.
    But to increase the volume by 5:
    changevol -i 5
    To decrease the volume by 5:
    changevol -d 5
    To toggle mute on and off:
    changevol -t
    If you need to specify a mixer other than "Master" which is the default mixer, you use the -c flag, so say you needed to use the mixer "Front" to increase by 5:
    changevol -c Front -i 5
    I see there is a problem in the code where it says No volume changing action has been dictated when I want it to say Incorrect usage, see changevol --help. I will try to fix that. Still learning python.
    Edit: I have changed it to see if getopts returns no options and then if so print back the Incorrect usage error message. That should do a lot to direct people to the right, direction. I have also, changed the No volume changing action one, to also direct to --help.
    Last edited by bruenig (2007-12-31 03:27:37)

  • Sleutel Bind, fancy key events handler for standalone window managers

    I began using Openbox in my laptop a while ago, and I was amazed by the speed, customization and simplicity it provides. After I started customizing my desktop I noticed that some of the special keys (TouchpadToggle, Volume, PrintScreen, etc) didn't worked at all. There are some applications for the Volume keys to work, but not for keys like touchpad-toggle and print-screen. Of course, there's a workaround for each case using simple scripts, but I wanted something a little more fancy, so I made:
    Sleutel Bind
    It's made in C and provides key events handling for:
    XF86TouchpadToggle
    Print (prtsc key)
    It makes use of libnotify to display states ( touchpad enabled/disabled, screenshot taken, etc) and imlib2 (a very popular library, probably already installed in your system) to grab the screenshots. Almost all other keys are covered already by another application, but if needed, more key events will be added in the future.
    Feel free to post your thoughts about Sleutel Bind, it's my first contribution to the community.
    How to use
    Once installed just run the command as a normal user.
    If using openbox, place the following command in the "~/.config/openbox/autostart" file:
    sleutelb &
    Links
    AUR
    github
    Last edited by DanielRS (2013-03-01 21:58:35)

    mgmillani wrote:
    I believe it must have been a bug and it was fixed, since print screen now works as expected. I'm using xmonad version 0.11-9, with ghc version 7.8.3.
    davama wrote:
    Note: for my print key to be recognized by xev i had to hold the ctrl key. that way it was not registered by xmonad. Also for xev command i use
    xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
    Nice, that seems to be useful. Thanks!
    @LQYMGT
    Do you still have issues with the latest version? Otherwise I will mark this thread as solved.
    well, still do not work... But I do not want to try it any more...So you can mark.

  • Trouble binding "TAB" key to JTree

    Hi,
    I tried to bind the TAB key (tab only) by doing this:
    jTree.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "tabActionKey");
    jTree.getActionMap().put("tabActionKey", new AbstractAction() {....and it doesn't seem to work. Nothing happens when i hit tab. However, if i add a modifier, such as CTRL, then it works fine, but unfortunately, I need this to work with TAB only.
    So then I figure the tab key was already binded to this component, so i tried to unbind it, but that didn't work.
    So I found some code which lists all the bindings for a components..found here:
    http://javaalmanac.com/egs/javax.swing/ListKeyBinds.html
    and i printed that out before I assigned my keyStroke, and TAB was not listed. I printed it out after I assigned my keyStroke, and tab WAS listed. (however, it still didn't work).
    Anyone have any ideas about what is goin on?
    thanks

    Here's the complete example: removing TAB from the focus traversal and then adding it to the keyboard actions.
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            JTree tree = new JTree();
            KeyStroke tab = KeyStroke.getKeyStroke("TAB");
            removeKeystroke(tree, KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, tab);
            Action action = new AbstractAction("example") {
                public void actionPerformed(ActionEvent evt) {
                    System.out.println("example action");
            addAction(tree, JComponent.WHEN_FOCUSED, tab, action);
            JFrame f = new JFrame("");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            Container cp = f.getContentPane();
            cp.setLayout(new GridLayout(1,2));
            cp.add(tree);
            cp.add(new JTree());
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        static void removeKeystroke(Component comp, int id, AWTKeyStroke ks) {
            Set keys = comp.getFocusTraversalKeys(id);
            Set alteredKeys = new HashSet(keys);
            alteredKeys.remove(ks);
            comp.setFocusTraversalKeys(id, alteredKeys);
        static void addAction(JComponent comp, int condition, KeyStroke ks, Action action) {
            Object binding = action.getValue(Action.NAME);
            comp.getInputMap(condition).put(ks, binding);
            comp.getActionMap().put(binding, action);
    }

  • Bind a key to page down

    Hi,
    I have an android tablet, and  like to use it to read PDF documents, but it would be much more confortable if I could bind a hardware key (eg sound control) to page up and page down action. Swiping is not the most confortable way to go to the next page.
    Did I miss an option, or should this be a feature request? This is the only feature I misse to confortably read PDF docs on my tablet.
    Thanks
    Raph

    As is the case in your other posting regarding JButtons: JLabel does not have a setAccelerator method.

  • [SOLVED] Openbox bind Super_L key

    Hello,
    I am trying to bind my Super_L key to create nested keychains à la Ratpoison. But I can't find anything telling me how to bind the Super key without using another key to create a combination with it, and obkey doesn't react to this key alone. Is this even possible ? Or do I have to use a dirty xmodmap trick ?
    Thanks in advance.
    Last edited by drlkf00 (2013-11-03 11:24:34)

    That's what I was doing originally, and it turns out I'm a dumbass. The first thing I tried was binding with '<keybind key="Super_L">', and for some unknown reason (probably a really dumb mistake on my part), it didn't work, so I tried everything I could find ("Mod4", hex keycode, and some other remapping nonsense). I tried binding "Super_L" again and it worked. Even the "S-Super_L" combination works fine. Anyway, thank you for your suggestion, it made me try again and realize I had it from the beginning.

  • How to binding a key press event of "Esc" to "cancle" button

    I create a class extended JComponent. Than I add a button named "cancle " to it.
    Than I add the class's instance to a JDialog object.
    I try to get the key press event through add a keyListener to the class instance, but no works.
    I try to add a keymap and action map to the dialog 's getRootPane() also no works.
    Who can tell me how can I do?

    Thats the way I did it:
        // map escape key
        ActionListener escapeActionListener = new ActionListener()
          public void actionPerformed(ActionEvent e)
            cancelPressed();
        this.registerKeyboardAction( escapeActionListener,
                                     KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false),
                                     JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );

  • Binding run key to keyboard key

    Hi, I am very new to labview. Anyways I have some trigger set up that writes a  "   `    " character when triggered. I would like to set my labview program up so that when it receives this key it begins running, and further pressings of this key do nothing (the program continues until its completed). Is there a simple way to do this? Any help would be greatly appreciated.

    ah yes, thank you for your reply. I have watched a few of the beginner tutorials. So my current plan was to just put the program within a case structure. The condition then could be an input form the keyboard matching the string constant "   `   ", which would execute once it receives this. I have the input keyboard wired to the acquire input data and use the output from the acquire input data to compare to the string constant "  `   " using the logial equals sign. I would then connect the result of that comparison to the case statement. I now get this error:
    These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
    The type of the source is 1D array of
    boolean (TRUE or FALSE).
    The type of the sink is boolean (TRUE or FALSE).
    So it appears like the result I'm getting from the keyboard is not a string, and so it won't let me compare to the string constant. I'm not sure what format the key is in, but is there a way to fix this, perhaps by casting to a string? Thanks very much in advance.

  • Binding Mouse and Key Events.

    Hi,
    When a user clicks the Ctrl + V the data from the clipboard
    is pasted into the user area. Instead of using this can we do it
    using a mouse click. For now, I am planning to bind the event code
    of these combinations (CTRL + V == 86) to the mouse click. But when
    I tried this I am unable to bind this key event to the mouse event.
    Can anyone help me out for getting out of this problem.
    Regards,
    eodC.

    No, it isn't.
    Kind regards,
      Levi

  • Binding keys to buttons

    For my calculator that I have been messing around with I want to bind certain keys to certain buttons. I was wondering what would be the easiest way to do it. Any help would be greatly appreciated. My code can be found here.
    Thanks,
    -Dan

    Swing related questions should be posted in the Swing forum.
    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings

  • Key binding to quit an applescript app as an alternative to 'Force Quit'

    Hello,
    I have an AppleScript App which is running for a hour. It is basically a GUI scripting.
    If I want to quit the app in between, I am unable to use 'Force Quit' as the mouse/key board is extensively used by the app.
    I wish to know some alternatives for this issue.
    note:
    Is there anyway I can bind some key combination and once it is pressed, the app should quit?

    +Any suggestions to handle this issue?+
    You can quit a script that is saved as an 'application bundle' with another script.
    Open the 'application bundle' and drag the 'applet' file between the quotes...
    tell application "" to quit
    and you will get this, but with a different path.
    tell application "/Users/tom/Login Items/ReniceR.app/Contents/MacOS/applet" to quit

  • Binding keys to console commands

    Hey guys, so i have linux, and the eject button on my macbook pro wont work. I found out that if i type 'eject' in the console, the disc ejects. so, how would i bind my eject key to the 'eject' command?

    karol wrote:
    From the bug report:
    Tom Gundersen (tomegun) wrote:
    As a temporary workaround, I suggest adding
    echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs
    to your rc.local.
    Does it work for you?
    I just want to bind a key.......

  • Is there a way to detect two keys at the same time?

    Is there a way to detect the keys if the user is holding two keys down at the same time?

    yes, but you'll have to check outside of the event loop (i.e. don't check for it in the keyPressed method).
    just use an array of keys that keeps track of which keys are currently down and which are up. you could use a boolean array but I use an int array because... Im not sure I've just done it probably because of my C background. anyway, basic setup:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class MultiKey extends JFrame {
         int keys[];
         public MultiKey() {
              super();
              keys = new int[256];
              Arrays.fill(keys,0); // 0 = key is up
              enableEvents(AWTEvent.KEY_EVENT_MASK);
              show();
         public void processKeyEvent(KeyEvent e) {
              // the 0xff below binds the key code to below 256
              int key = (e.getKeyCode()&0xff);
              if (e.getID() == KeyEvent.KEY_PRESSED) {
                   keys[key] = 1; // 1 = key is down
              else if (e.getID() == KeyEvent.KEY_RELEASED) {
                   keys[key] = 0; // 0 = key is up
         protected boolean isKeyDown(int key) {
              return (keys[key] != 0);
         protected boolean isKeyUp(int key) {
              return (keys[key] == 0);
    }so now at any time in your code you can check key state by using the isKeyUp and isKeyDown methods. this is about as close as you get to input polling in java unless you use LWJGL or something similiar ;)
    you can try out a full executable example at my site here - just open up the jar and start holding keys down :)

  • Multimedia Keys in Awesome Window Manager [SOLVED]

    Hey,
    I've googled, searched, grepped and scanned about this for weeks, and I think I can't get it working on my own, although I'm sure the right answer is just out there waiting to be found, and one of you brighter minds might just know it already. Right, here's what happens.
    I was using openbox, and the keybindings were working just fine. This should probably discard missing symbols or scancodes for the keys, IMHO. Then I switch over to Awesome, and fall in love. The awesome (pun intended) config files by anrxc made it even better, and these days I can't live without my awesome. But I also wanted my volume keys to work. Not like I mind opening a terminal and popping alsamixer... I got 15 of them open all the time anyway. But I still wanted to use the fancy buttons.
    The strange thing is, the keys seem to "disappear" as soon as I map them somewhere. I've tried binding them in rc.lua:
    awful.key({}, "#121", function () exec("pvol.py -m", false) end),
    awful.key({}, "#122", function () exec("pvol.py -c -2", false) end),
    awful.key({}, "#123", function () exec("pvol.py -c 2", false) end),
    pvol.py is a script (made by anrxc too) that does stuff to the volume and displays a cute gtk progress bar to indicate current volume level. Invoking it from the terminal works fine.
    I also tried using xbindkeys:
    "pvol.py -m"
    XF86AudioMute
    "pvol.py -c -2"
    XF86AudioLowerVolume
    "pvol.py -c 2"
    XF86AudioRaiseVolume
    But the result was the same. Here's the output of xev with the keys unbound:
    KeyPress event, serial 25, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4706773, (74,267), root:(796,288),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4706853, (74,267), root:(796,288),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4712422, (74,267), root:(796,288),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4712534, (74,267), root:(796,288),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4713862, (74,267), root:(796,288),
    state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4713878, (74,267), root:(796,288),
    state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    As you can see, they respond to the key codes 121. 122, and 123. Going to a console and running showkey, however, gives me the key codes 113, 114, and 115. I've tried mapping both, and the X11 symbols, with the same result. Below, a sample of xev's output when I bind the keys somewhere (out put for a single key, all result in the same output):
    FocusOut event, serial 29, synthetic NO, window 0x1600001,
    mode NotifyGrab, detail NotifyAncestor
    FocusIn event, serial 29, synthetic NO, window 0x1600001,
    mode NotifyUngrab, detail NotifyAncestor
    KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    And of course, nothing happens. The same happens whether I bind the keys in awesome or through xbindkeys. I have to admit, I'm pretty much out of ideas. Anyone seen this before?
    Last edited by mkaito (2010-06-16 15:06:06)

    d2ogch3n wrote:
    Here's what I have
        -- Multimedia keys
        awful.key({ }, "XF86AudioRaiseVolume",    function () awful.util.spawn("amixer set Master 2+") end),
        awful.key({ }, "XF86AudioLowerVolume",    function () awful.util.spawn("amixer set Master 2-") end)
    Just to clarify for anyone who comes across this, "%" is needed after the number. It should be:
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+") end),
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-") end)
    You should also be able to add Mute functionality:
    awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle") end)
    Also, to get rid of the loading cursor, pass false as a second argument to all three of these:
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+", false) end),
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-", false) end)
    awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle", false) end)
    The AWM wiki is the source for this:
    http://awesome.naquadah.org/wiki/Volume … nd_display

  • Vim key mapping question, Xterm question

    Since i type Dvorak, I wish to have a mapping to allow me to move between windows in vim with Ctrl-W d/h/t/n instead of Ctrl-W h/j/k/l  . I have looked in the vim help files, and online, but can't find how to do it. I tried eg.
    :noremap <c-w>d<c-w> <c-w>h<c-w>
    in vimrc, and the same thing but with <Down> instead of 'h', but neither worked... i'm not sure how to do this.
    The second thing I want to ask is what the easiest way to bind middlemouse button to a keyboard combo is, so that I can paste stuff highlighted in eg. firefox into my terminal running screen - any ratpoison users will understand my desire to use the mouse as little as possible.. i use Screen's scrollback buffer mode to copy and paste everything within the terminal itself using only the keyboard, but I wish to be able to do the same thing from firefox to the terminal.
    The third thing is (and I'm aware I'm less likely to get a solution to this one    ) are there any obvious reasons why I wouldn't be able to switch to a tty from an X server? I've had this problem for several months now, and have still not resolved it (mainly because my own research alongside forum posts hasn't turned up any potential causes of the issue).
    I love you all   
    Komodo

    SleepyDog wrote:shift+insert
    Sadly I don't have an insert key on my keyboard...
    phrakture wrote:
    There's also a few apps that can be called to dump the X selection/clipboard buffers... xcutsel comes to mind.
    You can probably bind a key in screen to dump xcutsel to the tmp file screen can use as a copy/paste buffer, then use screen's paste functionality.
    I bring this up only because there's potential here to do wacky things with screen's paste-from-file setup, i.e.
    date > /tmp/screen-exchange
    bam, you can bind a key to "insert current date"
    Cool tip phrak, thanks muchly
    So, that's Q2 down. Anybody brave enough to attempt Q3? It's a toughie  :?

Maybe you are looking for

  • TV upgrade surroundsound stopped working

    Had a reg.TV hooked to a JBL ESC333 (Simply Cinema) 5.1 surroundsound. Was getting great sound. Upgraded to a Sony KDL-40Z4100 Bravia TV, (with same JBL system). Lost surroundsound in rear speakers. Can't figure. Also thought I could plug router into

  • Query/join problem

    Does anyone see any issues in my query/join? Select c.case_id, a.business_unit, a.field_name, a.change_date, a.old_value, a.new_value, a.created_by, a.creation_date, c.provider_group_id, c.creation_date, c.closed_dttm From ps_case c, ps_case_history_

  • My app has disappeared

    I can see the app in the app store, but it is not available to use (it is not updating) or open?

  • I brought iphone 5 unlocked from dubai will it work in india

    i brought iphone 5 unlocked will it work in india

  • Showing Qunatity in Red color

    Hi All, In account Dimension 1. Quantity 2. Each cost 3. Tot sales In input schedule once i enter data then once i click on send data it's showing 'quantity' and 'Each Cost' in red color with brackets(that means a negative value). I want it as Positi