Results 1 to 2 of 2

Thread: foobar volume control from wireless keyboard [also winamp]

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    foobar volume control from wireless keyboard [also winamp]

    With Ubuntu [and probably other distros too] If you have foobar playing on a computer and a wireless keyboard you use as a handset this is fun >>>




    Code:
    sudo apt-get install winbind

    to facilitate processes


    ➋ sudo gedit ~/.config/openbox/lxde-rc.xml
    ➌ CTRL+F to find where "keybind key" starts on page
    ➍ Create a new <keybind key> </keybind> this way >>>




    Code:
    #foobar
    
    
    <keybind key="A-f"><action name="Execute"><command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/foobar2000/foobar2000.exe /playpause</command></action></keybind>
    
    
    <keybind key="C-0"><action name="Execute"><command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/foobar2000/foobar2000.exe /command:Up</command></action></keybind>
    
    
    <keybind key="C-9"><action name="Execute"><command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/foobar2000/foobar2000.exe /command:Down</command></action></keybind>

    Nota Bene: if you want other settings use:


    Modifier keys

    S Shift key
    C Control key
    A Alt key
    W Super key (Usually bound to the Windows key on keyboards which have one)
    M Meta key
    H Hyper key (If it is bound to something)


    ➎ then run
    Code:
    openbox --reconfigure && lxpanelctl restart
    to validate the changes


    NOW: Take your wireless keyboard sit away from computer hit Alt+F to playpause or Ctrl+0 or 9 to see the volume cursor move


    NJOI
    Last edited by shantiq; June 1st, 2019 at 05:05 PM. Reason: changed /home/shan/ to ~
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: foobar volume control from wireless keyboard

    and run exactly in the same way for Winamp [there are other versions too knocking around]

    but you will need to install a piece of kit called CLEveR.exe which i install inside the winamp folder


    Code:
    #winamp 
    
    
      <keybind key="A-b">
          <action name="Execute">
              <command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/Winamp/CLEveR.exe playpause</command></action>
        </keybind>
        
      <keybind key="C-7">
          <action name="Execute">
              <command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/Winamp/CLEveR.exe voldn</command></action>
        </keybind>   
        
      <keybind key="C-8">
          <action name="Execute">
              <command>wine ~/.wine/dosdevices/c:/"Program Files (x86)"/Winamp/CLEveR.exe volup</command></action>
        </keybind>
    ====


    as we can see here many plugins handled here that other players would balk at including cuefile and many rare lossless formats

    Last edited by shantiq; June 2nd, 2019 at 08:11 AM. Reason: added screenshot of player in action
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

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
  •