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

hyprland/wokspaces mouse clicks on workspace not work #2299

Open
hvppydvddy opened this issue Jul 10, 2023 · 13 comments
Open

hyprland/wokspaces mouse clicks on workspace not work #2299

hvppydvddy opened this issue Jul 10, 2023 · 13 comments

Comments

@hvppydvddy
Copy link

"modules-left": ["hyprland/workspaces", ....]

Activate action not work by mouse click, but mouse scrolling work fine:

"hyprland/workspaces": {
    "on-click": "activate",  
    "on-scroll-up": "hyprctl dispatch workspace e+1", 
    "on-scroll-down": "hyprctl dispatch workspace e-1" 
}
  • Void Linux
  • Hyprland 0.26.0_1
  • Waybar 0.9.19
@MightyPlaza
Copy link
Contributor

afaik you still need to apply the patch
http://wiki.hyprland.org/Useful-Utilities/Status-Bars/#compiling-manually

@hvppydvddy
Copy link
Author

afaik you still need to apply the patch http://wiki.hyprland.org/Useful-Utilities/Status-Bars/#compiling-manually

In 0.9.19 version file workspace_manager.cpp already patched

@MightyPlaza
Copy link
Contributor

well you're patching wlr/workspaces, you can't use hyprland/workspaces

@zjeffer
Copy link
Contributor

zjeffer commented Jul 16, 2023

@hvppydvddy We're tracking this issue here: #2271

This PR contains the changes you want: #2316

The module is still in development, it's maybe better to use wlr/workspaces with the hyprland patch for the time being.

@MightyPlaza
Copy link
Contributor

this has been fixed already, you can use it (without any patches) by building from the main branch

@khaneliman
Copy link
Contributor

khaneliman commented Aug 24, 2023

"modules-left": ["hyprland/workspaces", ....]

Activate action not work by mouse click, but mouse scrolling work fine:

"hyprland/workspaces": {
    "on-click": "activate",  
    "on-scroll-up": "hyprctl dispatch workspace e+1", 
    "on-scroll-down": "hyprctl dispatch workspace e-1" 
}
* Void Linux

* Hyprland 0.26.0_1

* Waybar 0.9.19

This should be closed, now. Workspace switching works in hyprland on wlr/workspaces with experimental enabled and hyprland/workspaces. https://github.com/Alexays/Waybar/wiki/Module:-Hyprland

@romanstingler
Copy link

romanstingler commented Sep 4, 2023

a few days ago, the workspaces are not displayed anymore on my system.
doesn't work with "hyprland/workspaces" nor with "wlr/workspaces".

I am on arch and tested 9waybar, waybar-hyprland, waybar-hyprland-git) all with the same result.
I added the workspaces another time in my bar and it showed me an empty slice and when I click on it I get
sh: line 1: activate: command not found

@MightyPlaza
Copy link
Contributor

a few days ago, the workspaces are not displayed anymore on my system. doesn't work with "hyprland/workspaces" nor with "wlr/workspaces".

I am on arch and tested 9waybar, waybar-hyprland, waybar-hyprland-git) all with the same result. I added the workspaces another time in my bar and it showed me an empty slice and when I click on it I get sh: line 1: activate: command not found

wlr/workspaces won't work anymore
you probably have format:"{id}" instead of format:"{name}"

@romanstingler
Copy link

@MightyPlaza hey

I have tested it with

	"hyprland/workspaces": {
	"format": "{name}: {icon}",
	"format-icons": {
		"1": "",
		"2": "",
		"3": "",
		"4": "",
		"5": "",
		"active": "",
		"default": ""
	},

from the example code, doesn't work for me

@MightyPlaza
Copy link
Contributor

are you sure you're using the hyprland/workspaces module?

@romanstingler
Copy link

@MightyPlaza thank you. I still had wlr in my modules-left, no clue why I missed that.
It is resolved. thx a lot

@khaneliman
Copy link
Contributor

@MightyPlaza thank you. I still had wlr in my modules-left, no clue why I missed that. It is resolved. thx a lot

@Alexays mind closing this ? hyprland/workspaces click handling is implemented in #2316

@romanstingler
Copy link

@khaneliman can be closed from my side

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

5 participants