<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Linux (Lubuntu) Spotify Bluetooth earphone controls in Desktop (Linux)</title>
    <link>https://community.spotify.com/t5/Desktop-Linux/Linux-Lubuntu-Spotify-Bluetooth-earphone-controls/m-p/4478303#M16422</link>
    <description>&lt;P&gt;Just to give some information about my set up...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my computer I am running Windows 7, but because it is a work computer, Spotify fails to be installed.&amp;nbsp; Therefore I am running Spotify within a Lubuntu (lightweight Ubuntu) VirtualBox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because sometimes I need to very quickly pause Spotify (e.g. I am required to go for a meeting), I needed a quick key-combo to press which would pause/play Spotify, while I am outside of the virtual machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up writing this AutoHotkey script, that when you press RightControl+Spacebar it would Activate the virtual machine window, send space, and then reactivate the window that was currently active:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;gt;^Space Up::
    DetectHiddenWindows, On

    KeyWait, RControl
    activeWindowID := WinExist("A")
    virtualBoxWindowID := WinExist("Lubuntu ahk_exe VirtualBox.exe")
    
    if (activeWindowID &amp;lt;&amp;gt; virtualBoxWindowID) {
        WinSet, Transparent, 0, ahk_id %virtualBoxWindowID%
        
        WinActivate, ahk_id %virtualBoxWindowID%
        SendInput {Space}
        
        WinHide, ahk_id %virtualBoxWindowID%      
        WinMinimize, ahk_id %virtualBoxWindowID%
        WinActivate, ahk_id %activeWindowID%
        
        WinSet, Transparent, Off, ahk_id %virtualBoxWindowID%
        
        WinShow, ahk_id %virtualBoxWindowID%      
    }
return&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It is pretty simple to use AutoIt to do the same if you were inside of Linux, not inside of a virtual machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 14:27:09 GMT</pubDate>
    <dc:creator>tahir-a-hassan</dc:creator>
    <dc:date>2018-05-10T14:27:09Z</dc:date>
    <item>
      <title>Linux (Lubuntu) Spotify Bluetooth earphone controls</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Linux-Lubuntu-Spotify-Bluetooth-earphone-controls/m-p/4478140#M16420</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Spotify on Lubuntu 18.04 (just downloaded it today 10/05/2018), and I am sad to say that my Bluetooth pause button does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test that it is a problem with Spotify and not my Lubuntu installation, I have verified that the Bluetooth buttons work with VLC player.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be implemented?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A possible solution: Because I am using Lubuntu within VirtualBox, I am sure I can whip up a simple AutoHotkey script that RCtrl+Space could trigger sending a Space to VirtualBox, and therefore the application, as per the keyboard shortcuts found here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.spotify.com/uk/using_spotify/system_settings/keyboard-shortcuts/" target="_blank"&gt;https://support.spotify.com/uk/using_spotify/system_settings/keyboard-shortcuts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 11:33:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Linux-Lubuntu-Spotify-Bluetooth-earphone-controls/m-p/4478140#M16420</guid>
      <dc:creator>tahir-a-hassan</dc:creator>
      <dc:date>2018-05-10T11:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linux (Lubuntu) Spotify Bluetooth earphone controls</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/Linux-Lubuntu-Spotify-Bluetooth-earphone-controls/m-p/4478303#M16422</link>
      <description>&lt;P&gt;Just to give some information about my set up...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my computer I am running Windows 7, but because it is a work computer, Spotify fails to be installed.&amp;nbsp; Therefore I am running Spotify within a Lubuntu (lightweight Ubuntu) VirtualBox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because sometimes I need to very quickly pause Spotify (e.g. I am required to go for a meeting), I needed a quick key-combo to press which would pause/play Spotify, while I am outside of the virtual machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up writing this AutoHotkey script, that when you press RightControl+Spacebar it would Activate the virtual machine window, send space, and then reactivate the window that was currently active:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;gt;^Space Up::
    DetectHiddenWindows, On

    KeyWait, RControl
    activeWindowID := WinExist("A")
    virtualBoxWindowID := WinExist("Lubuntu ahk_exe VirtualBox.exe")
    
    if (activeWindowID &amp;lt;&amp;gt; virtualBoxWindowID) {
        WinSet, Transparent, 0, ahk_id %virtualBoxWindowID%
        
        WinActivate, ahk_id %virtualBoxWindowID%
        SendInput {Space}
        
        WinHide, ahk_id %virtualBoxWindowID%      
        WinMinimize, ahk_id %virtualBoxWindowID%
        WinActivate, ahk_id %activeWindowID%
        
        WinSet, Transparent, Off, ahk_id %virtualBoxWindowID%
        
        WinShow, ahk_id %virtualBoxWindowID%      
    }
return&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It is pretty simple to use AutoIt to do the same if you were inside of Linux, not inside of a virtual machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 14:27:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/Linux-Lubuntu-Spotify-Bluetooth-earphone-controls/m-p/4478303#M16422</guid>
      <dc:creator>tahir-a-hassan</dc:creator>
      <dc:date>2018-05-10T14:27:09Z</dc:date>
    </item>
  </channel>
</rss>

