Skip to content

On-click not working for workspaces in hyprland #3206

Description

@Kommynct
	"hyprland/workspaces": {
		"enable-bar-scroll": true,
		"disable-scroll-wraparound": true,
		"all-outputs": false,
		"show-special": true,
		"format": "{name}",
		"smooth-scrolling-threshold": "4",
		"on-click": "activate && hyprctl monitors -j | jaq -r '.[] | select(.focused == true) | .specialWorkspace.name' | sd 'special:' '' | xargs -I [] hyprctl dispatch togglespecialworkspace []",
		"format-icons": {
			"1": "1",
			"2": "2",
			"3": "3",
			"4": "4",
			"5": "5",
			"6": "6",
			"7": "7",
			"8": "8",
			"9": "9",
			"10": "10",
		}
	},

the on-click here should close the special workspace if it's open and another workspace has been clicked on, it however, does nothing, i've tried it with also replacing the activate && with just the part after, and that also just normally activates on-click.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions