PINE64
Lxde media keys activated - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: Lxde media keys activated (/showthread.php?tid=6864)



Lxde media keys activated - denni - 11-23-2018

Did find that the media keys were missing so I did a little bit of duckduckgo to find out.    You have to add them in to ~/.config/openbox/lxde-rc.xlm under the <keyboard> section.  You find out the <keybind key=""> with the command line program xev.  Then you can configure the keys <command> with amixer (better) and pactl. 

The alsamixer commands are; XF86AudioMute = amixer -D pulse sset Master toggle, XF86AudioLowerVolume = amixer -D pulse sset Master 10%-, XF86AudioRaiseVolume = amixer -D pulse sset Master 10%+

Pavucontrole = pactl set-sink-volume @DEFAULT_SINK@ +1000 (up in % or db ending), pactl set-sink-volume @DEFAULT_SINK@ -1000 (lover),  mute = pactl set-sink-mute @DEFAULT_SINK@ toggle

Here is the modification of my ~/.config/openbox/lxde-rc.xlm
---------------------------------------------------------------
<!-- media -->
<keybind key="XF86AudioPlay">
      <action name="Execute">
          <command>smplayer</command>
      </action>
  </keybind>

<!-- hljóðstillingar -->
<keybind key="XF86Tools">
      <action name="Execute">
          <command>pavucontrol</command>
      </action>
  </keybind>

<!-- mute sbr. https://wiki.archlinux.org/index.php/Xbindkeys#Volume_control -->

<keybind key="XF86AudioMute">
      <action name="Execute">
          <command>amixer -D pulse sset Master toggle</command>
      </action>
  </keybind>

<!-- hækka sbr. https://wiki.archlinux.org/index.php/Xbindkeys#Volume_control -->
<keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
          <command>amixer -D pulse sset Master 10%+</command>
      </action>
  </keybind>


<!-- lækka sbr. https://wiki.archlinux.org/index.php/Xbindkeys#Volume_control -->
<keybind key="XF86AudioLowerVolume">
      <action name="Execute">
          <command>amixer -D pulse sset Master 10%-</command>
      </action>
  </keybind>


  <!-- Launch Task Manager with Ctrl+Alt+Del -->
  <keybind key="A-C-Delete">
      <action name="Execute">
          <command>lxtask</command>
      </action>
  </keybind>

  <!-- skjámynd  -->
  <keybind key="Print">
      <action name="Execute"><command>shutter</command></action>
  </keybind>

--------------------------------------------------------------------------------------------------


RE: Lxde media keys activated - ahultra2078298 - 10-11-2020

This actually worked!!
Thanks