[Solved] How do I # showkey --keycodes for mouse?

How do I
# showkey --keycodes
for mouse buttons? I would like to make some special mouse key for MX performance mouse to work, but not sure what's it's name.
Last edited by Ventil1 (2014-03-09 16:31:59)

Thanks tomk. Solved my problem.
This is what I've put in rc.xml:
<mousebind button="W-button 4" action="Press">
<action name="Execute">
<command>amixer -q set Master 3+% unmute</command>
</action>
</mousebind>
<mousebind button="W-button 5" action="Press">
<action name="Execute">
<command>amixer -q set Master 3-% unmute</command>
</action>
</mousebind>
With that I can make my sound volume louder if I hold WIN key plus scroll up or volume lower if I scroll down. I also tried to bind 2 mouse buttons together where I would have to hold one mouse button while scrolling, but it's not working so I am not sure if it's possible.

Similar Messages

  • [SOLVED]How to show desktop by moving mouse pointer to a corner?

    I did it in ubuntu with a easy compiz-fusion config tool. But I totally forget the name of the tool.
    Now I want to do it in archlinux, but I cannot find how.
    Last edited by danielking (2008-06-29 14:54:30)

    I think it is Fade to Desktop in the options for it you can set what ever corner or side of the screen that you want. Mine is set for the top left corner (KDE). I could be wrong though I am at work right now and my memory sucks.
    http://wiki.compiz-fusion.org/Plugins/Fadedesktop

  • [solved] How to set default browser for qt apps ?

    hi ,
    I'm running a LXDE session and I can't figure out how to set opera as a default browser in qt apps . they default to firefox .
    Any ideas ?
    Last edited by Nezmer (2008-11-21 11:37:52)

    grep wrote:
    http://kb.mozillazine.org/Setting_Your_Default_Browser
    I read this guide before .
    The DE I'm running is LXDE and the apps are pure qt4 .
    how can this guide be helpful ?
    Last edited by Nezmer (2008-11-16 19:06:23)

  • [SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

    Hi all,
             I wanted to know whether it is possible to use Unique Partition GUID of a GPT partition to setup /dev/disk/by-part-uuid (something like that) and using that path in the bootloader config's 'root= ' kernel parameter.
    It is possible to obtain those GUIDs from gdisk (or maybe from blkid in util-linux-ng - not sure). But how to make udev setup /dev/disk/by-part-uuid like dir with these GUIDs.
    Main info http://marc.info/?l=linux-hotplug&m=129425482207292&w=2 and http://git.kernel.org/?p=linux/kernel/g … b78fc0e100 (currently in 2.6.37 only - but this commit will not work since in Arch initramfs is used). Thanks in advance.
    Last edited by skodabenz (2011-06-11 12:26:08)

    Encypted partitions (not that I use). Also searching will be faster (although not noticable), as parsing partition table is faster than parsing each filesystem and obtaining UUID. See http://www.mail-archive.com/grub-devel@ … 15218.html and http://www.mail-archive.com/grub-devel@ … 15228.html
    Last edited by skodabenz (2011-01-08 21:17:39)

  • Multiple Buttons in JTable Headers:  Listening for Mouse Clicks

    I am writing a table which has table headers that contain multiple buttons. For the header cells, I am using a custom cell renderer which extends JPanel. A JLabel and JButtons are added to the JPanel.
    Unfortunately, the buttons do not do anything. (Clicking in the area of a button doesn't appear to have any effect; the button doesn't appear to be pressed.)
    Looking through the archives, I read a suggestion that the way to solve this problem is to listen for mouse clicks on the table header and then determine whether the mouse clicks fall in the area of the button. However, I cannot seem to get coordinates for the button that match the coordinates I see for mouse clicks.
    The coordinates for mouse clicks seem to be relative to the top left corner of the table header (which would match the specification for mouse listeners). I haven't figured out how to get corresponding coordinates for the button. The coordinates returned by JButton.getBounds() seem to be relative to the top left corner of the panel. I hoped I could just add those to the coordinates for the panel to get coordinates relative to the table header, but JPanel.getBounds() gives me negative numbers for x and y (?!?). JPanel.getLocation() gives me the same negative numbers. When I tried JPanel.getLocationOnScreen(), I get an IllegalComponentStateException:
    Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
    Can someone tell me how to get coordinates for the button on the JTableHeader? Or is there an easier way to do this (some way to make the buttons actually work so I can just use an ActionListener like I normally would)?
    Here is relevant code:
    public class MyTableHeaderRenderer extends JPanel implements TableCellRenderer {
    public MyTableHeaderRenderer() {
      setOpaque(true);
      // ... set colors...
      setBorder(UIManager.getBorder("TableHeader.cellBorder"));
      setLayout(new FlowLayout(FlowLayout.LEADING));
      setAlignmentY(Component.CENTER_ALIGNMENT);
    public Component getTableCellRendererComponent(JTable table,
                                                     Object value,
                                                     boolean isSelected,
                                                     boolean hasFocus,
                                                     int row,
                                                     int column){
      if (table != null){
        removeAll();
        String valueString = (value == null) ? "" : value.toString();
        add(new JLabel(valueString));
        Insets zeroInsets = new Insets(0, 0, 0, 0);
        final JButton sortAscendingButton = new JButton("1");
        sortAscendingButton.setMargin(zeroInsets);
        table.getTableHeader().addMouseListener(new MouseAdapter(){
          public void mouseClicked(MouseEvent e) {
            Rectangle buttonBounds = sortAscendingButton.getBounds();
            Rectangle panelBounds = MyTableHeaderRenderer.this.getBounds();
            System.out.println(Revising based on (" + panelBounds.x + ", "
                               + panelBounds.y + ")...");
            buttonBounds.translate(panelBounds.x, panelBounds.y);
            if (buttonBounds.contains(e.getX(), e.getY())){  // The click was on this button.
              System.out.println("Calling sortAscending...");
              ((MyTableModel) table.getModel()).sortAscending(column);
            else{
              System.out.println("(" + e.getX() + ", " + e.getY() + ") is not within "
                                 + sortAscendingButton.getBounds() + " [ revised to " + buttonBounds + "].");
        sortAscendingButton.setEnabled(true);
        add(sortAscendingButton);
        JButton button2 = new JButton("2");
        button2.setMargin(zeroInsets);
        add(button2);
        //etc
      return this;
    }

    I found a solution to this: It's the getHeaderRect method in class JTableHeader.
    table.getTableHeader().addMouseListener(new MouseAdapter(){
      public void mouseClicked(MouseEvent e) {
        Rectangle panelBounds = table.getTableHeader().getHeaderRect(column);
        Rectangle buttonBounds = sortAscendingButton.getBounds();
        buttonBounds.translate(panelBounds.x, panelBounds.y);
        if (buttonBounds.contains(e.getX(), e.getY()) && processedEvents.add(e)){  // The click was on this button.
          ((MyTableModel) table.getModel()).sortAscending(column);
    });

  • My problem/Q not solved- how/what correct signal setting on the Macbook pro for ther PC config on Bravia defn

    Regrettably Shane mu Q/problem is not solved-how does one check the comptability of defn (1020x...) for the computer and Bracia?

    Don't know, I do know the TV has a higher refresh rate, check out SwitchResX online for more control options over HDMI.

  • How write Vbscript for Mouse Right Click using UFT 11.5

    how write Vbscript for Mouse Right Click using UFT 11.5

    Press and hold the Control (Ctrl) key while you click the mouse button. This is identical to right-clicking with a mouse. (Ctrl+click = Right click)
    You can try the following:
    •Click on and off the 'right click' checkbox in the Mouse System Preferences
    •Restart in Safe Mode
    •Reset NVRAM / PRAM

  • [SOLVED] How to install Image magick extension for php?

    As in topic, how to install imagick extension for php (xampp)? I tried with pecl, i installed pear first and imagick with "pecl install imagick". I added extension to php.ini file (/opt/lampp/etc/php.ini) but when i try to start xampp, i get error:
    Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so: cannot open shared object file: No such file or directory in Unknown on line 0
    What should i do?
    Last edited by smiechowy (2011-03-06 12:23:55)

    it was installed in /usr/lib/php/modules/ I copied imagic.so to /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ but it still don't work ;/
    Edit: problem solved, i made a mistake adding "imagic.so" in php.ini instead of "imagick.so".
    Last edited by smiechowy (2011-03-06 12:23:39)

  • How do you go to marker  when there is a wait for mouse click between the markers?

    I cant seem to get by the wait for mouse click, when using                          go to (marker)
    I have a game that I have 2 push buttons one is
    on mouseUp me
      go to frame 9
    end
    on mouseUp me
       go to frame  29
    end
    There is a wait to click in between these 2  frames and when I click on the  2nd button to go to frame 29  it stops at the wait to click?
    I have tried  all these below and cant get past the click to wait?????
    go
    go to frame
    go to marker
    _movie.go
    _movie.marker
    _nextMarker=

    Think this issue is resolved but to ensure the full answer is available, here it is.
    First, it's a bad idea to use the Tempo channel at all. You can use a script to do anything that you can do there. I have Lingo alternates to the Tempo channel at:
    http://www.deansdirectortutorials.com/Lingo/tempoLingo.htm
    (think I need to update this page though)
    So - DO NOT USE the Tempo Channel setting - Wait for Mouse Click or Key Press.
    The above setting creates a type of pause that interferes with other interactivity.
    Instead - use a 'Hold on Frame' behavior (from the Library Palette - Navigation category) or it could be written as:
    on exitFrame
    go the frame
    end
    Once you have the above behaviour in you desired frame, you can attach a sprite behaviour to your buttons / links. A good one to use is the ‘Jump to Marker Button’ behaviour in the Controls category of the Library Palette. You can attach this behavior to different sprites and just change the marker setting of the behavior, removing the need to have individual hard-coded scripts for each button.
    Next – DO NOT link to frame numbers. Always link to a marker. You may insert or remove frames. This would cause your incorrect links since the frame number would no longer the right point.
    Next – the following all do the same thing:
    go to frame “markername”
    go to “markername”
    go “markername”
    So, you can leave out ‘frame’ or even ‘to’ as they are not needed. I still use ‘go to’ as it feels more natural to me (just history).
    or you could use:
    _movie.go("dean")
    Don’t use
    go to marker “markername”
    I think that did work at some point but not anymore.
    marker can be used as follows:
    go marker (-1)
    Where -1 is the amount of markers back (could be forward as well).
    Well, that gives the detailed answer to your question.
    Dean

  • How can I restart tracking for my Magic Mouse?

    How can I get my Magic Mouse to restart tracking function?

    And is usefully preceded by the label "IMEI".  

  • How to create an EventListener for a specific keyboard press?

    Hello,
    I have been trying to figure out how to switch my actionscript3 from a mouse click to a keyboard press. I'm new to Flash, but the problem I keep coming to is that I need to have 3 separate keys programmed in to do three seperate outcomes. I have messed around with eventListeners for keyboard presses, but I cannot figure out how to have flash listen for a specific key press and then do an action based on that specific key press.
    Here is my actionscript. Any suggestions on how I can modify the mouse clicks to be keyboard presses, where key 's' = btn1 and triggers gotoAndPlay(2), 'g' = btn2 and triggers gotoAndPlay(3), 'k' = btn3 and triggers gotoAndPlay(4) as outline below. I also need my timer and writing to an exteral file to remain the same.
    stop();
    var startTime:Number=getTimer();
    var elapsedTime:Number;
    stream.writeUTFBytes("Item1,");
    function BTN1Action(eventObject:MouseEvent) {
         elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar1,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(2);
    function BTN2Action(eventObject:MouseEvent) {
              elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar2,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(3);
    function BTN3Action(eventObject:MouseEvent) {
              elapsedTime = getTimer() - startTime;
              stream.writeUTFBytes("Tar3,");
              stream.writeUTFBytes(elapsedTime.toString());
              stream.writeUTFBytes("\n");
              gotoAndPlay(4);
    BTN1.addEventListener(MouseEvent.CLICK, BTN1Action);
    BTN2.addEventListener(MouseEvent.CLICK, BTN2Action);
    BTN3.addEventListener(MouseEvent.CLICK, BTN3Action);
    Any assistance with this is greatly appriciated. 

    Assuming you want to monitor key press on the button BTN1, you can do following:
    // Add a key up event listener on the button (or on the source where the key press needs to be captured)
    BTN1.addEventListener(KeyPress.KEYUP, BTN1KeyUpAction);
    // BTN1KeyUpAction sample, you can modify this
    function BTN1KeyUpAction(e:KeyboardEvent):void {
        if(e.keyCode == Keyboard.S) {
        gotoAndPlay(2);

  • No keycodes for Extrakeys in Xorg but on the VC

    For some days now I try to get some extrakeys working for X. The frustrating thing is that I get Scancodes as well as Keycodes when I am in a virtual console by using showkey but when I use xev in a XSessions there is not only a Symbol missing for the Key but there also is no Keycode. The Output of such a key in xev is the following for example:
    FocusOut event, serial 32, synthetic NO, window 0x1800001,
    mode NotifyGrab, detail NotifyAncestor
    FocusIn event, serial 32, synthetic NO, window 0x1800001,
    mode NotifyUngrab, detail NotifyAncestor
    KeymapNotify event, serial 32, 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
    Hence in udev things work while in evdev they don't. Going through all the related pages in the wiki I only found information about what to do when the symbols are missing in Xorg but not if the keycodes are missing. And the mapping of Scan Codes to Keycodes for udev with hwdb does not provide the keycodes in X, so is there a possibility to map scancodes for xev or how do I get recognized these keys in X. I would be happy for every hint that puts me into a direction cause I don't know where to look further.
    EDIT: Of cause I tried several Dell keyboardmodels with setxkbmap
    Last edited by cutuchiqueno (2014-03-15 08:30:52)

    You can try plugging the headphones in and out several times, also try toggling the volume and mute buttons while doing this.
    Also click on GO in the menu bar>Utilities>Audio MIDI set up .app and see if your can select built in from there.
    Utilities/Audio MIDI Setup/Built-In Output/Output and in Format change from the default 2ch-24bit integer to any other format (say, 2ch-32bit float). This should activate the headphone jack.  I moved the format back to the original 2ch-24 integer setting and the headphones continued working.
    PRAM reset:
    Power off, power on holding  OPTION  COMMAND  P  R  immediately after powering it up, and hold till you hear the second chime, it can take 10-30 seconds for the second chime to happen.
    There is a micro switch in the headphone port that sometimes gets stuck, you can also take cotton swap, cut the cotton end off and try to GENTLY "massage" the port to free up the switch.
    If none of these helps, you may want to take it to an Apple store for a free evaluation
    Hope one of these offers some help

  • What is the keycode for .??

    How do I get the keycode for "." ? (Without the "'s) A dot in other words.
    I tried VK_DECIMAL but that gives me ","

    never mind! i solved it!

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • How to integrate bing map for including or displaying multiple locations at the same time

    how to integrate bing map for including or displaying multiple locations at the same time

    Have you aware of the geolocation field that's been introduced with SharePoint 2013?  You can store location data within a list and then integrate this within Bing.  The second tutorial on this Bing team blog will show it well.
    https://www.bing.com/blogs/site_blogs/b/maps/archive/2013/03/26/connecting-a-sharepoint-list-to-bing-maps.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

Maybe you are looking for

  • How do I get my photos and music back into new version iTunes from my iPad?

    I have the new version of iTunes (11 0 2 26) for Windows which installed over my old copy. I see none of my music etc even after it claims to have synced and backed up. How do I get my photos and music back into iTunes from my iPad? It syncs OK with

  • Digidesign Coreaudio 7.1 might be causing capture issues with ADVC100

    I'm having a problem that seemingly reared it's ugly head after I installed ProTols 7.1 and Coreaudio 7.1 that is presenting itself over FCPHD and iMovie. Neither is recognizing the ADVC100 at all, FCP warns about it not being connected when booting

  • Scoll panel zooming

    I want to add zoom feature to the scroll panel. As the zoom button is pressed, I have to increase scrolling area. I tried the following sample code. If you run the sample, you can see the image size is increasing, but the scrolling area is same. I wa

  • Zoom Level Bug

    I filed this through the Feedback page and encourage others to do the same if you see it. Has anyone had a situation while in Full Screen mode, where switching from viewing a page to a layout master, everything becomes "maximum zoom", filling the pag

  • NO 11g "Manage Filters" Online Layout "OR" filter operator!?

    Hey guys, I realize this is a totally n00b question about the BIP 11.1.1.5 Online Layout editor (for Interactive layout mode). I've created a complex P&L financial statement report in BIP using a Word RTF template, and I'd like to try to retool it in