Lxde media keys activated
#1
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/Xbi...me_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/Xbi...me_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/Xbi...me_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>

--------------------------------------------------------------------------------------------------
#2
This actually worked!!
Thanks


Possibly Related Threads…
Thread Author Replies Views Last Post
  Release 0.9.14 Ubuntu Mate desktop, LXDE, OMV, Docker CE (container) Luke 1 3,701 12-10-2019, 01:30 PM
Last Post: Helium75
  Ubuntu LXDE on Rockpro64 rahulsharma 2 3,855 10-23-2018, 03:42 PM
Last Post: dukla2000
  Ubuntu Bionic LXDE Desktop /w Firefox and TightVNC stability HenryBenry 4 6,068 10-11-2018, 04:33 AM
Last Post: HenryBenry

Forum Jump:


Users browsing this thread: 1 Guest(s)