[-]
[+]
|
Changed |
_service:tar_git:triambienced.spec
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -7,7 +7,7 @@
<service name="tar_git">
<param name="url">https://github.com/sailfishos-oneplus5/triambience-daemon.git</param>
<param name="branch">master</param>
- <param name="revision">a26d93dc3219e5e5538332f5720725bd01cd85c2</param>
+ <param name="revision">bf3988756cc4db994b6fd2be50206ad8e30648c5</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/README.md
^
|
@@ -13,4 +13,10 @@
There is also a [Sailfish OS settings plugin](https://github.com/sailfishos-oneplus5/onyx-triambience-settings-plugin) available for simple control of these values through the settings app.
## Adaptation
-The tristate key node and emitted event codes will most likely need to be changed [like I had to do for OnePlus 5/5T devices](https://github.com/sailfishos-oneplus5/triambience/commit/15772a57e8571799939bc1b7a80f7d04beb4771e).
+Now you can add a `/etc/dconf/db/vendor.d/triambienced.txt` file in your droid-config sparse files to choose the correct tristate key node when needed without having to fork this project, for example:
+```
+[apps/onyxtristate]
+sliderDevice='/dev/input/event6'
+```
+
+The [emitted tristate key event codes](https://github.com/sailfishos-oneplus5/triambience-daemon/commit/15772a57e8571799939bc1b7a80f7d04beb4771e#diff-855c3a38d4fc3858a48957f816ac34dfL115) still have to be changed in source for now; expect this to get easier soon ;)
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/src/switcher.cpp
^
|
@@ -1,6 +1,6 @@
/*
* (C) 2016 Kimmo Lindholm <kimmo.lindholm@gmail.com> Kimmoli
- * (C) 2019 Jami Kettunen <jami.kettunen@protonmail.com>
+ * (C) 2019-2020 Jami Kettunen <jami.kettunen@protonmail.com>
*
* Triambience daemon
*
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/src/switcher.h
^
|
@@ -1,6 +1,6 @@
/*
* (C) 2016 Kimmo Lindholm <kimmo.lindholm@gmail.com> Kimmoli
- * (C) 2019 Jami Kettunen <jami.kettunen@protonmail.com>
+ * (C) 2019-2020 Jami Kettunen <jami.kettunen@protonmail.com>
*
* Triambience daemon
*
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/src/triambience-daemon.cpp
^
|
@@ -1,6 +1,6 @@
/*
* (C) 2016 Kimmo Lindholm <kimmo.lindholm@gmail.com> Kimmoli
- * (C) 2019 Jami Kettunen <jami.kettunen@protonmail.com>
+ * (C) 2019-2020 Jami Kettunen <jami.kettunen@protonmail.com>
*
* Triambience daemon
*
@@ -32,15 +32,18 @@
switcher *sw;
UinputEvPoll *uin;
QThread *uinThread;
+ MGConfItem *dconfSliderDevice;
uin = new UinputEvPoll();
sw = new switcher();
uinThread = new QThread();
+ dconfSliderDevice = new MGConfItem("/apps/onyxtristate/sliderDevice");
- int fd = uin->openDevice("/dev/input/event3");
+ const char* sliderDevice = dconfSliderDevice->value(QString("/dev/input/event3")).toString().toUtf8().constData();
+ int fd = uin->openDevice(sliderDevice);
if (fd == -1)
{
- printf("triambienced: error opening input device\n");
+ printf("triambienced: error opening input device %s!\n", sliderDevice);
return EXIT_FAILURE;
}
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/src/uinputevpoll.cpp
^
|
@@ -1,6 +1,6 @@
/*
* (C) 2016 Kimmo Lindholm <kimmo.lindholm@gmail.com> Kimmoli
- * (C) 2019 Jami Kettunen <jami.kettunen@protonmail.com>
+ * (C) 2019-2020 Jami Kettunen <jami.kettunen@protonmail.com>
*
* Triambience daemon
*
|
[-]
[+]
|
Changed |
_service:tar_git:triambienced-1.1.0.tar.bz2/src/uinputevpoll.h
^
|
@@ -1,6 +1,6 @@
/*
* (C) 2016 Kimmo Lindholm <kimmo.lindholm@gmail.com> Kimmoli
- * (C) 2019 Jami Kettunen <jami.kettunen@protonmail.com>
+ * (C) 2019-2020 Jami Kettunen <jami.kettunen@protonmail.com>
*
* Triambience daemon
*
|