Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.28k stars 689 forks source link

Create custom dropdown menus #1064

Open tukusejssirs opened 3 years ago

tukusejssirs commented 3 years ago

I have installed SwayWM and Waybar about a half a year ago. Since then I have use it as my default setup.

One thing I miss in Waybar is the ability to create a custom module with a dropdown menu. This feature request is twofold:

  1. I want to output multiple rows of static information.

For example, I created a custom clock and I want to output a dropdown menu with some additional information (e.g. international days or whatever else dependent on today’s date).

  1. The other use case is to put some buttons (clickable text) into the dropdown menu similar to the dropdown menu of systray icons.

If it is already possible, could someone give an example how I could implement this.

Thanks in advance! :wink:

mrusme commented 3 years ago

A dedicated drop-down feature for waybar is imho not needed in order to integrate what you suggested.

  1. Tooltips can be used to output static information.
  2. For something that pops up to offer a list of options, you can simply define the on-click handler and run a script that uses wofi to display your options.

However, while the tooltips and on-click handlers are nice to haves, if you're using Sway but still hunt around for clickable drop-down menus your workflow might not be ideal in first place. wofi is quite powerful in this regard and lets you set up all sorts of shortcut-triggered "drop-down menus".

tmpm697 commented 2 years ago

I want this feature also, it's not click to show drop-down like @mrusme mentioned. I want it to hove over to list drop-down menu (hove over to show like with tooltip), then be able to select from the list.

This sound likes overlapping whatever fuzzy menu solutions but it's not. It's a bar that we can nevigate thing to do.

For example, we can't just show a vpn status in the bar but not able to select a bunch of vpn profiles from drop-down menu to start/stop the vpn.

Click on vpn status in waybar module is really not ideal and then navigate again in fuzzy drop-down menu pop-up in where-who-know to able to select vpn profiles.

It's not only inconvenient but also give users headache to understand the workflow that minus huge of productivity.

mrusme commented 2 years ago

@tmpm697 the config and script (new version) that I mentioned in my previous comment solves exactly the scenario you described, using onclick and wofi.

theRealCarneiro commented 11 months ago

+1 on this. Something like a GtkPopover with clickable items, sliders, icons (actual GtkIcons, not FA).

cakarmustactalone commented 11 months ago

+1 too . I don't wan to use eww for this , waybar has much more potential and easy to use.

AdsonCicilioti commented 10 months ago

Please! Implement this!

+1 ++