AndreasBackx / waycorner

Hot corners for Wayland. Create anchors in the corners of your monitors and execute a command of your choice.
MIT License
86 stars 6 forks source link

Seperate command per corner/edge #23

Closed pancsta closed 8 months ago

pancsta commented 8 months ago

How to execute a different command for each corner / edge? The following does not work:

[left]
enter_command = [ "sway-hot-edge", "left" ]

[top]
enter_command = [ "sway-hot-edge", "top" ]

[right]
enter_command = [ "sway-hot-edge", "right" ]

[bottom]
enter_command = [ "sway-hot-edge", "bottom" ]

locations = ["left", "right", "top", "bottom"]

Only the last enter_command is executed.

thx

AndreasBackx commented 8 months ago

You need to specify locations for each item. Your items here are left, top, right, and bottom. README has a full example for each item and its config settings. If you're still confused, I recommend having a look at how TOML works.