Scrolling [Feature request] #39

Closed
opened 9 months ago by qwertea · 3 comments
qwertea commented 9 months ago

Would it be possible to run specific commands when you scroll up/down while hovering on a bar particle?

For example, you could scroll up while your cursor is on the volume icon to increase the volume, and the same for the backlight. And for workspaces, you could switch to the next/previous active workspace.

I believe this was possible on polybar, and I found it quite convenient back when I used it.

Edit: Also, regarding on-click, it would be nice to be able to run different commands depending on whether you left clicked, right clicked, or middle clicked the particle.

Would it be possible to run specific commands when you scroll up/down while hovering on a bar particle? For example, you could scroll up while your cursor is on the volume icon to increase the volume, and the same for the backlight. And for workspaces, you could switch to the next/previous active workspace. I believe this was possible on polybar, and I found it quite convenient back when I used it. Edit: Also, regarding on-click, it would be nice to be able to run different commands depending on whether you left clicked, right clicked, or middle clicked the particle.
dnkl added the
enhancement
label 9 months ago
Owner

There's (obviously) no support for it at the moment, but I see absolutely no reasons we can't add it.

Perhaps add an optional button property to on-click, defaulting to left:

on-click:
  button: middle
  exec: poweroff
There's (obviously) no support for it at the moment, but I see absolutely no reasons we can't add it. Perhaps add an optional `button` property to `on-click`, defaulting to `left`: ```yaml on-click: button: middle exec: poweroff ```
Owner

And just to be clear, we'd also keep:

on-click: poweroff

as a shorthand (and backward compatible!) variant of:

on-click:
  action: poweroff

which, in turn, is shorthand for:

on-click:
  button: left
  action: poweroff
And just to be clear, we'd also keep: ```yaml on-click: poweroff ``` as a shorthand (and backward compatible!) variant of: ```yaml on-click: action: poweroff ``` which, in turn, is shorthand for: ```yaml on-click: button: left action: poweroff ```
dnkl added the
help wanted
label 8 months ago
Owner

I'll get to this one eventually, but it's currently pretty far down on my TODO list. If someone else want's to have a go at it, by all means, do so!

I'll get to this one eventually, but it's currently pretty far down on my TODO list. If someone else want's to have a go at it, by all means, do so!
dnkl removed the
help wanted
label 6 months ago
dnkl self-assigned this 6 months ago
dnkl closed this issue 5 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.