Results 1 to 3 of 3

Thread: Alternate keyboard/mouse shortcuts

  1. #1
    Join Date
    Jan 2008
    Beans
    145
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Alternate keyboard/mouse shortcuts

    I have a laptop that does not have any media keys, so I used the keyboard shortcut GUI to make:
    F8 - play/pause
    F9 - track back
    F10 - track forward

    However, when I plug in my external keyboard, which does have media keys, I still have to use the F8-10 keys instead of the media keys, since I had to re-assign them.

    Is there a way of creating multiple shortcut possibilities for the same function? So that F8 will be play/pause, as will the play/pause button on the external keyboard. Additionally, I've got a Logitech VX Revolution with a zoom slider that would be cool to map to the system volume.

    I'm currently on Ubuntu 12.10 with Gnome3.

    Thanks!
    Ubuntu 14.04 LTS, Gnome3, ck-designed desktop
    (ASRock Z77 Extreme4 MB / 3.4GHz Intel i7-3770 / 16GB G.Skill RAM / Intel HD 4000)
    Ubuntu Studio 12.10, Gnome3, Sony Vaio SVS151190X notebook
    (2.5GHz Intel i5-3210M / 6GB RAM / Intel HD 4000)

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,243
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Alternate keyboard/mouse shortcuts

    try xdotool, it can fake keypresses

    i'd try to configure Play as XF86AudioPlay (multimedia key) and F8 as a custom shortcut that runs
    Code:
    xdotool key XF86AudioPlay
    if it works, your standard keyboard will be able to send fake multimedia signal that will be recognized by default settings.

    http://askubuntu.com/questions/23512...ys-in-terminal
    if your question is answered, mark the thread as [SOLVED]. Thx.
    To post code or command output, use [code] tags.
    Check your bash script here // BashFAQ // BashPitfalls

  3. #3
    Join Date
    Jan 2008
    Beans
    145
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Re: Alternate keyboard/mouse shortcuts

    Perfect! It took me a few moments to figure out how to apply xdotool, but then I found out that I go back to the keyboard shortcuts GUI, create a custom shortcut that has the command you mentioned above invoked by F8, and it works quite nicely. Same with F9 & F10 for skip back/forward.

    I can't get it to work with my mouse zoom slider, though. Any thoughts on that?
    Here's an image of the mouse with the zoom slider:
    http://candeiasonline.net/tray/image...revolution.jpg

    Anyway, thank you very much for helping me to get my keyboard to behave!
    Ubuntu 14.04 LTS, Gnome3, ck-designed desktop
    (ASRock Z77 Extreme4 MB / 3.4GHz Intel i7-3770 / 16GB G.Skill RAM / Intel HD 4000)
    Ubuntu Studio 12.10, Gnome3, Sony Vaio SVS151190X notebook
    (2.5GHz Intel i5-3210M / 6GB RAM / Intel HD 4000)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •