This is a very very hacky Gnome extension to interface with some of the rockchip_ebc kernel driver options. It also provides a "rotate" menu option to easily switch between landscape and portrait mode (which is handy when switching between desktop work and ebook reading).
This is more a proof of concept as I never before worked with GJS. Use with care. Suggestions are welcome!
Naturally, merge requests (or rewrites) are very welcome!
-
Copy to the local extension directory
rsync -avh [email protected]/ $HOME/.local/share/gnome-shell/extensions/[email protected]/
-
enable in gnome extension manager
-
restart gnome
mkdir build
git clone https://github.com/PNDeb/pinenote-gnome-extension.git
cd pinenote-gnome-extension
dpkg-buildpackage -us -uc
./install.sh && dbus-run-session -- gnome-shell --nested --wayland
- Make sure the disable() function properly destroys all objects