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

How to allow 1/3 -> 1/2 -> 2/3 cycle? #43

Open
mankoff opened this issue Aug 7, 2023 · 0 comments
Open

How to allow 1/3 -> 1/2 -> 2/3 cycle? #43

mankoff opened this issue Aug 7, 2023 · 0 comments

Comments

@mankoff
Copy link

mankoff commented Aug 7, 2023

How can I set up an option to cycle through 1/3, 1/2, and 2/3 of monitor width?

I can cycle through 25, 50, and 75 % width with:

{
  "default": {
    "minwidth": 0.25,
    "maxwidth": 0.75,
    "xdivs": 4,
}

But I'd prefer 1/3, 1/2, and 2/3. I can't get that to work. If I set min/max/xdivs to 0.33/0.67/4, it locks at 50 % (1/2). If I set min/max/xdivs to 0.33/0.67/3, then it lets me do 1/3 and 2/3, but not 1/2.

This could be simplified if rather than doing min/max/div I could just specify I want 0.33, 0.5, and 0.67.

Full config is:

{
  "default": {
    "minwidth": 0.25,
    "maxwidth": 0.75,
    "minheight": 0.33,
    "maxheight": 0.67,
    "padding": [
      0,
      0,
      0,
      0
    ],
    "snaptocursor": false,
    "spacing": 0,
    "xdivs": 4,
    "ydivs": 2
  },
  "keys": {
      "accelerator": "<Mod4>",
      "commands": {
	  "Left": "left",
	  "Right": "right",
	  "Up": "top",
	  "Down": "bottom",
	  "m": "maximize",
	  "g": "topleft",
	  "r": "topright",
	  "h": "bottomleft",
	  "n": "bottomright",
	  "KP_4": "middle",
	  "Tab": "cycle-monitor"
    }
  }
}
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

1 participant