Is it possible to make an action of main icon?
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 18.1k
- Forks
- 656
- PR merge metrics
- No merged PRs in 30d
Description
I have a simple script to launch my WIN365 homepage on MS Edge. I wanted to make the main icon clickable, instead of opening the menu and having to click on its child. Is that possible?
- xbar v2.17 beta
- MacOS 14.2.1 (23C71)
current script DOES have the submenu item (WIN365), I want to make the main icon (the computer one) an clickable action.
```
!/usr/bin/env bash
# Win365 Edge Launcher
# 0.1
# Felipe Mattos
# fm4tt0s
# Open My W365 VM/xbar.desc>
# https://pngimg.com/d/windows_logos_PNG24.png
#
case "$1" in
0)
osascript -e "do shell script \"open -a 'Microsoft Edge' --args --start-fullscreen https://windows365.microsoft.com/"\"
exit
esac
echo "🖥️"
echo "---"
echo "🖥️ WIN 365 | bash='$0' param1='0' terminal=false refresh='false'"
exit 0
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the script's case "$1" handler and the output that defines the main icon and WIN 365 submenu item. Review how xbar v2.17 beta dispatches script parameters for menu-bar items, then determine whether the main icon can invoke the same action; done means the requested click behavior is supported or its limitation is clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, macos
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100