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 add context menus to each widget? #1173

Open
hypernova7 opened this issue Aug 26, 2024 · 2 comments
Open

Is it possible to add context menus to each widget? #1173

hypernova7 opened this issue Aug 26, 2024 · 2 comments

Comments

@hypernova7
Copy link
Contributor

20240826_155731.png

I currently edited the eww code to convert a json array to render the photo's context menu.

@MartyMcFlyInTheSky
Copy link

Pretty cool. Care to publish the dotfiles or the relevant parts at least? :)

@hypernova7
Copy link
Contributor Author

@MartyMcFlyInTheSky I do this
2024-08-29_01-31-02_area_maim

Edit the eww code to add the menu attribute, it converts a json to a gtk menu. The idea is that elkowar can make any widget able to carry this attribute to add context menus anywhere, but in a more beautiful way. Like this

(box
  :menu (menu
    (option
      :label "Show weather"
      :actionn "${EWW_CMD} update show_weather=true"
    )
    (option
      :label "Submenu"
      :submenu (menu
        (option
          :label "Item 1"
        )
      )
    )
  )
)

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

3 participants
@hypernova7 @MartyMcFlyInTheSky and others