I would like to create a shell extension for Ubuntu 20.04 that enables and disables the webcam but I don't know absolutely anything about JavaScript. Although, the extension is pretty simple: I would like to make a simple camera icon in the top bar that
- When clicked on just becomes crossed out and executes
sudo modprobe -r uvcvideo
, to disable the webcam. - When then re-clicked on just runs
sudo modprobe uvcvideo
and the icon returns to the one before, enabling the webcam.
How can I do it?
EDIT: I made it by myself in GO, if you're searching for it here it is https://github.com/0xfederama/simple-tasks