ShaneC80 wrote: > LMS is running on a Pi (through a Volumio plugin). Squeezelite-X works > in Windows to remotely control the player, but is there something > similar for Linux systems?
Why not just run use Chrome (or Chromium) in app mode? - Start chrome - Navigate to LMS - Chrome menu -> More tools -> Create shortcut - Select "Open as window" This will create a -.desktop- file in -~/.local/share/applications- to launch LMS in a separate chrome window. But it will have a thin titlebar and (for LMS) an insecure site warning. You can work-around these by editing the desktop file (it will have a random name starting with "chrome-") and add the following at the end of the Exec line: "--new-window --app=http://SERVER:9000" - replace "SERVER" with hostname/IP of your LMS. e.g. Code: -------------------- Exec=/usr/lib64/chromium-browser/chromium-browser.sh --profile-directory=Default --app-id=paaimebbekiccdafaddkineemmdijoxy -new-window --app=http://pi:9000 -------------------- I use my MaterialSkin with a dark theme, but unfortunately it seems chromium ignores any dark mode flag in app mode and I get a light titlebar. To work-around this I created a shell script to launch chromium and then set it to use a dark theme - which then gives me the dark titlebar. This script requires 'xdotool', and is as follows: Code: -------------------- #!/bin/bash IFS=" " class=$1 shift $* & for attempt in `seq 1 10` ; do id=`xdotool search --classname "$class"` if [ "$id" != "" ] ; then xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT "dark" -id $id exit else sleep 1 fi done -------------------- To use this I have edited the desktop file again, so that the Exec line use my script to launch. e.g. Code: -------------------- Exec=/home/craig/.local/share/applications/launch.sh pi__material /usr/lib64/chromium-browser/chromium-browser.sh --profile-directory=Default --app-id=paaimebbekiccdafaddkineemmdijoxy -new-window --app=http://pi:9000/material -------------------- -pi__material- is the window's "class name" - and this can be found by launching the app and then using "xprop" from a terminal. ...if this is all too much (and it is a bit messy really), you can always use GNOME's Epiphany browser. Epihany has a menu entry to "Install Site as Web Application". This also creates a desktop file, and to force this into dark mode you just need to prepend "env GTK_THEME=Adwaita-dark " to the Exec line. However, I find Epiphany to be slower and it does not support Material's blurring of background images. *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. ------------------------------------------------------------------------ cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=114794 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
