1
0
Commit Graph

208 Commits

Author SHA1 Message Date
NiLuJe
dc698bfc64 Fixed some comments
Partially cherry-picked from 3a997ce6f4299a465eee1299a58e581304cb9a07.
2020-05-01 15:00:20 -04:00
Patrick Gaskin
cd1586c65b Added GitHub Action for automated releases 2020-05-01 14:25:25 -04:00
Patrick Gaskin
155bee4c9c Implemented nickel_setting:force_wifi action
As per @NiLuJe's request: https://github.com/geek1011/kobo-plugin-experiments/issues/3#issuecomment-622109660
2020-05-01 03:59:19 -04:00
NiLuJe
748338bbdb Harmless typo 2020-04-29 03:05:49 +02:00
NiLuJe
311b9d54ee Cleaned up Makefile
Split from 191945b93390a672bc71c027ad968f31c8ee4cbe, c15af90cc6c98ac2a3464a0f088e776710e05f11, and 603d20aea1e8c5378889ee2238f0289e6d23759f in the kfmon-v1 branch.

Note: Requires the TC build from geek1011/kobo-plugin-experiments@f12e6817cc or later (2020-04-24).
2020-04-28 17:53:40 -04:00
Patrick Gaskin
28ad962060 Added more stuff to the README 2020-04-28 16:52:27 -04:00
Patrick Gaskin
141b83d057 Added license 2020-04-28 16:03:50 -04:00
NiLuJe
89006c3ea3 Document the createAction bools 2020-04-28 12:00:15 -04:00
Patrick Gaskin
56af774366 Improved chain docs 2020-04-25 21:26:25 -04:00
shermp
ff6c38b2da Implemented action chaining
commit d4e71cdd21347d1d64ef59de4c8bc0afaf775523
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 19:52:26 2020 +1200

    Log when action is run

    Co-authored-by: Patrick Gaskin <patrick@pgaskin.net>

commit 6533e8cc6a74a0b7246334b4712a96d678aefcd0
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 19:32:28 2020 +1200

    Fixed field numbers in 'chain' error messages

    Fixes the consequences of copy & paste

commit 9c4311ce5b1eb01b81a18cc19b39025514ba6be4
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 19:27:30 2020 +1200

    Simplified nm_config_push_action()

    The previous implementation was a bit... convoluted

    Co-authored-by: Patrick Gaskin <patrick@pgaskin.net>

commit e17509a85f1f125e3be4386966d37452c970f8a5
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 16:29:46 2020 +1200

    Config parser tweaks based on review

    Co-authored-by: Patrick Gaskin <patrick@pgaskin.net>

commit fbea6709ffb3cc755d01bdb7ba3ed06fc901aca5
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 15:23:22 2020 +1200

    Small documentation tweak

    Co-authored-by: Patrick Gaskin <patrick@pgaskin.net>

commit adbfc4b8edd84ca8ce381b0d4a306678f7039be1
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 15:12:49 2020 +1200

    Fix config error segfault

    Allocating some memory helps...

commit a0eb89598a74df1e7937c8615c4a4d7d1d17101b
Merge: 17d6e90 7491a97
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 14:48:06 2020 +1200

    Merge branch 'master' into pre-hook-exp2

commit 17d6e90d62df4b754967d2f2ea94f0d29aa8786d
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 11:52:41 2020 +1200

    Change loop as suggested

commit fa16f123b6c08fce88227f74b75aa2b1983bef65
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 11:50:54 2020 +1200

    Initial config parsing implementation for chain

commit d4648c424cd4c79aece73d10549c57a91a49366a
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 11:09:58 2020 +1200

    Add initial chain documentation

commit fc85239500cb892ee9ecd20c370e664007446d8f
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 11:02:31 2020 +1200

    Fix broken loop

commit ce71679a42f1fe7f82f9df68e862e6af2f57c18e
Author: shermp <14854761+shermp@users.noreply.github.com>
Date:   Sat Apr 25 10:14:59 2020 +1200

    (WIP) Added nm_menu_action_t for action chaining.

    Note: this commit will NOT compile
2020-04-25 21:13:42 -04:00
Patrick Gaskin
7aabc1d087 Added a basic README
I'll add more stuff to it later.
2020-04-25 21:06:13 -04:00
Patrick Gaskin
c1f0cdfffa Implemented nickel_setting:screenshots action 2020-04-25 12:59:04 -04:00
Patrick Gaskin
06f566a812 Implemented nickel_setting:lockscreen action 2020-04-25 12:30:16 -04:00
NiLuJe
c6ccc8c5a4 Fixed config path in docs 2020-04-25 12:06:47 -04:00
Patrick Gaskin
7a5eff60f8 Updated docs 2020-04-25 01:54:17 -04:00
Patrick Gaskin
7491a97d04 Merge branch 'refactor-actions' 2020-04-24 22:24:56 -04:00
Patrick Gaskin
7f51f3a06d Increased coordinates for getting top-level widget for force-refreshing the screen
Apparently, the H2O starts at 11 pixels.

Co-Authored-By: NiLuJe <ninuje@gmail.com>
2020-04-24 22:13:22 -04:00
Patrick Gaskin
306cf0e3d3 Updated example for cmd_output
Co-Authored-By: shermp <14854761+shermp@users.noreply.github.com>
2020-04-24 22:12:10 -04:00
Patrick Gaskin
b56d3aad19 Merge branch 'master' into refactor-actions 2020-04-24 21:51:57 -04:00
Patrick Gaskin
bcc61c14d4 Refactored actions
* New return type which allows showing messages or toasts.
* Unified action header.
* More macros to make stuff consistent.
* A few bugfixes.
2020-04-24 20:24:34 -04:00
Patrick Gaskin
0c147b77e8 Stricter linker options 2020-04-24 20:16:36 -04:00
Patrick Gaskin
ff5a2c0406 Fixed typo in config error message 2020-04-23 19:04:42 -04:00
Patrick Gaskin
493a049624 Added GitHub Actions config 2020-04-23 12:10:39 -04:00
Patrick Gaskin
07b70cb1a5 More settings stuff
* Show a toast for non-apparent setting changes.
* Force-update the screen after changing inversion.
2020-04-23 11:17:25 -04:00
Patrick Gaskin
77fac73a60 Fixed a warning 2020-04-23 10:25:51 -04:00
Patrick Gaskin
237d87f4f6 Implemented nickel_extras:web_browser action 2020-04-23 10:23:44 -04:00
Patrick Gaskin
09b8745c31 Added limit on the number of menu items allowed per menu 2020-04-23 09:01:16 -04:00
Patrick Gaskin
b3d38dbdee Implemented nickel_misc:rescan_books action, updated docs 2020-04-23 06:32:51 -04:00
Patrick Gaskin
d2f307dd7b Fixed line numbers in config errors 2020-04-23 06:28:48 -04:00
Patrick Gaskin
a20551d82a Implemented action nickel_misc:rescan_books_full 2020-04-23 05:54:06 -04:00
Patrick Gaskin
197a401e66 Made config preserve item order 2020-04-23 05:34:32 -04:00
Patrick Gaskin
1905691e64 Updated examples 2020-04-23 05:31:51 -04:00
Patrick Gaskin
e2c00dbbec Implemented cmd_spawn and cmd_output actions 2020-04-23 05:26:10 -04:00
Patrick Gaskin
4c38d6af7f More stuff 2020-04-22 21:33:18 -04:00
Patrick Gaskin
a293143fd0 Renamed to NickelMenu 2020-04-22 21:27:00 -04:00
Patrick Gaskin
a19ece7cd8 Implemented config file parsing 2020-04-22 21:17:37 -04:00
Patrick Gaskin
9d231999a7 Implemented some more actions 2020-04-22 21:00:00 -04:00
Patrick Gaskin
c113045a71 Fixed the failsafe when running from the Qt plugins dir
For some reason, it tries to load all files in it, whether or not
they end with .so.
2020-04-22 18:36:30 -04:00
Patrick Gaskin
92602f0792 Added some stuff 2020-04-22 14:30:35 -04:00
Patrick Gaskin
e938943817 Improved KoboRoot.tgz generation 2020-04-22 13:38:25 -04:00
Patrick Gaskin
28386d3eee Fixed some warnings 2020-04-22 13:06:39 -04:00
Patrick Gaskin
4b45731adf Renamed subsystem to action 2020-04-22 13:01:55 -04:00
Patrick Gaskin
61ed6820c7 Started implementing config, implemented uninstall flag 2020-04-22 12:50:39 -04:00
Patrick Gaskin
b5b5093f9f Updated gitignore 2020-04-22 08:30:53 -04:00
Patrick Gaskin
679cdedfd6 Fixed plugin loading (LD_PRELOAD isn't required anymore) 2020-04-22 08:25:05 -04:00
Patrick Gaskin
f31c903eaa Fixed menu item separators not appearing after custom items 2020-04-22 06:57:50 -04:00
Patrick Gaskin
1caf6c31db Implemented settings 2020-04-22 06:51:20 -04:00
Patrick Gaskin
5c04eb3017 Cleanup 2020-04-22 04:11:03 -04:00
Patrick Gaskin
fc915fad83 Added support for utf-8 in labels, improved UI 2020-04-22 04:06:44 -04:00
Patrick Gaskin
0e60cc759d Added support for other locales 2020-04-22 03:55:03 -04:00