You can. GNOME has a JavaScript binding called gjs. It runs JavaScript (with SpiderMonkey) and has support for most of GNOME APIs.
https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/Home.md
https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/Home.md
No comments yet.