Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cosmic-panel-button): add capability to execute commands #319

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Quackdoc
Copy link
Contributor

Adds the ability to run commands directly from the app instead of needing to create a separate .desktop file an example invocation of this would be below

A couple things I want to fix up,

  • The if statement is stupid and rustfmt did it no favors, however I ran out of time.
  • I don't actually know what the icon does since setting it has never actually done anything for me
  • word the help better or maybe just remove it and put it into it's own little document file

as it stands however i'm out of time until next week or so.

[Desktop Entry]
Name=Cosmic Panel wvkbd trigger
Comment=Applet to trigger wvkbd
Type=Application
Exec=sh -c "cosmic-panel-button --exec 'notify-send cosmic-panel-button_pressed' --name 'send-notification' --icon bell"
Terminal=false
Categories=Cosmic;Iced;
Keywords=Cosmic;Iced;
Icon=bell
StartupNotify=true
NoDisplay=true
X-CosmicApplet=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant