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

Is it possible to make an action of main icon? #910

Open
fm4tt0s opened this issue Jan 6, 2024 · 0 comments
Open

Is it possible to make an action of main icon? #910

fm4tt0s opened this issue Jan 6, 2024 · 0 comments

Comments

@fm4tt0s
Copy link

fm4tt0s commented Jan 6, 2024

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
# <xbar.title>Win365 Edge Launcher</xbar.title>
# <xbar.version>0.1</xbar.version>
# <xbar.author>Felipe Mattos</xbar.author>
# <xbar.author.github>fm4tt0s</xbar.author.github>
# <xbar.desc>Open My W365 VM/xbar.desc>
# <xbar.image>https://pngimg.com/d/windows_logos_PNG24.png</xbar.image>
# <xbar.dependencies></xbar.dependencies>

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
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

No branches or pull requests

1 participant