Script to install LCD 3.5 Shield MPD button control

Moderators: odroid, mdrjr

Script to install LCD 3.5 Shield MPD button control

Unread postby Fourdee » Tue Nov 22, 2016 9:28 pm

This script will:

Requires:
  • MPD installed and working
  • C1/C2/XU4
  • Debian Jessie or higher
  • Ubuntu 16.xx
  • Any Debian based OS with SystemD

Keys are:
  • 1 = Next
  • 2 = Previous
  • 3 = Play/Pause
  • 4 = Toggle random

See the scripts sourcecode: http://dietpi.com/downloads/misc/community/odroid_LCD35_MPD_Keys.sh

Download script:
Code: Select all
wget http://dietpi.com/downloads/misc/community/odroid_LCD35_MPD_Keys.sh -O odroid_LCD35_MPD_Keys.sh
sudo chmod +x odroid_LCD35_MPD_Keys.sh


How to install:
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh


How to run the service:
Either reboot, or, run:
Code: Select all
sudo systemctl start odroid_lcd_mpd_keys


How to uninstall:
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh -1
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com
User avatar
Fourdee
 
Posts: 297
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.

Re: Script to install LCD 3.5 Shield MPD button control

Unread postby rooted » Wed Nov 23, 2016 5:53 am

I don't use this but it's very cool, thanks for sharing it.
User avatar
rooted
 
Posts: 5692
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Script to install LCD 3.5 Shield MPD button control

Unread postby audiotechguy » Thu Dec 28, 2017 7:33 pm

Fourdee wrote:This script will:

Requires:
  • MPD installed and working
  • C1/C2/XU4
  • Debian Jessie or higher
  • Ubuntu 16.xx
  • Any Debian based OS with SystemD

Keys are:
  • 1 = Next
  • 2 = Previous
  • 3 = Play/Pause
  • 4 = Toggle random

See the scripts sourcecode: http://dietpi.com/downloads/misc/community/odroid_LCD35_MPD_Keys.sh

Download script:
Code: Select all
wget http://dietpi.com/downloads/misc/community/odroid_LCD35_MPD_Keys.sh -O odroid_LCD35_MPD_Keys.sh
sudo chmod +x odroid_LCD35_MPD_Keys.sh


How to install:
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh


How to run the service:
Either reboot, or, run:
Code: Select all
sudo systemctl start odroid_lcd_mpd_keys


How to uninstall:
Code: Select all
sudo ./odroid_LCD35_MPD_Keys.sh -1



What exactly can this be used for. Say I want to use that key set to cycle through different app windows? Is that possible


Sent from my iPhone using Tapatalk
audiotechguy
 
Posts: 122
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english

Re: Script to install LCD 3.5 Shield MPD button control

Unread postby mad_ady » Fri Dec 29, 2017 4:25 am

Yes, but you would need to customize it. I'd like to suggest my implementation of it with multiclick support: https://github.com/mad-ady/multibutton

Regarding switching between windows, I assume you mean open windows in a X11 environment that can be differentiated by title. If yes, you could use something like DISPLAY=:0 wmctrl -R "My Window Title
"
. See man wmctrl for details.
User avatar
mad_ady
 
Posts: 4729
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1


Return to 3.5inch LCD Shield

Who is online

Users browsing this forum: No registered users and 2 guests