Reply
Thread Tools
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#1
made a media volume slider that wraps an external volume script
it requires Mer.Cutes (to make the external system call from QML), which is not installed by default anymore since SFOS 3.3
(packages are named cutes-js + cutes-qt5, etc)

install at your own peril! im posting this for devs to poke at. its NOT easy to install, doesnt have anything like a patchmanager experience, but it works, at least for me.

(one could remove the Mer.Cutes and external script dependency with Nemo.DBus, and i might in the future. i had the script and mercutes already tho, so i just wrapped it)

/usr/local/bin/vol
volume script, e.g.: `vol +3` or `vol 0` or `vol --get`
https://github.com/teleshoes/sx-conf..._FILES/bin/vol

/usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml
allow script to show the system Volume Bar by setting a dconf value (not required for slider):
https://github.com/teleshoes/sx-conf...umeControl.qml

/usr/share/jolla-settings/pages/sounds/MediaVolumeSliderController.qml
slider implementation (calls `vol`)
https://github.com/teleshoes/sx-conf...Controller.qml

/usr/share/jolla-settings/pages/sounds/MediaVolumeSlider.qml
slider widget wrapper (jolla take note: there is no point separating a widget view and a controller implementation if you put all of the ui and styling in the controller...)
https://github.com/teleshoes/sx-conf...lumeSlider.qml

/usr/share/jolla-settings/pages/sounds/SoundsPage.qml
adds slider widget to settings app
https://github.com/teleshoes/sx-conf...SoundsPage.qml

/usr/share/jolla-settings/entries/sounds.json
allows selecting media-volume-slider as a widget in the top menu
https://github.com/teleshoes/sx-conf...%25sounds.json

screenshot is on my xperia x compact (720x1280), with a few other topmenu tweaks to fit more on one page in this reduced screen resolution
Attached Images
 
__________________
~ teleshoes ~

Last edited by wolke; 2021-01-24 at 18:21.
 

The Following 6 Users Say Thank You to wolke For This Useful Post:
Reply

Tags
media, media volume, top menu, volume


 
Forum Jump


All times are GMT. The time now is 09:29.