Build your first applet
-
Generate the applet. Use
hello-panelwhen asked for a project name, or adjust the directory name below. Choose an app ID such asio.github.yourname.HelloPaneland fill in the description, license, and repository URL.cargo generate gh:pop-os/cosmic-applet-template cd hello-panel -
Build and install it for your user. The install recipe copies the binary, desktop entry, and icon under
~/.local. Your COSMIC session needs~/.local/binon itsPATHto launch the applet.just just prefix="$HOME/.local" install -
Add it to the panel. In COSMIC Settings → Desktop → Panel, open Configure panel applets → Add applet and choose your applet. You can also add it from the Dock settings. Click its icon to open the example popup. System76’s guide to the Panel and Dock
-
Edit the popup. In
src/app.rs,viewbuilds the panel button andview_windowbuilds the popup. Change something in the popup, repeat the build and install commands, then remove and re-add the applet in Settings to launch the updated binary. libcosmic guide to panel applets