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

Unable to save "Bar Layouts for Monitors" #4

Closed
ll931217 opened this issue Jul 26, 2024 · 1 comment
Closed

Unable to save "Bar Layouts for Monitors" #4

ll931217 opened this issue Jul 26, 2024 · 1 comment

Comments

@ll931217
Copy link

Hi! I love what you have done with this panel, I am having an issue trying to save my layout. I have 2 monitors, "0" is a vertical monitor, "1" is a horizontal monitor. I only want the bar to show on my horizontal monitor. Here is the JSON I have formatted:

{
  "1": {
    "left": [
      "dashboard",
      "workspaces",
      "windowtitle"
    ],
    "middle": [
      "media"
    ],
    "right": [
      "volume",
      "network",
      "bluetooth",
      "battery",
      "systray",
      "clock",
      "notifications"
    ]
  }
}

I was able to change the font and it seems to be saved in the config, but the layout couldn't be saved, I couldn't save the weatherapi key as well. There don't seem to be a save button, am I doing something wrong?

@ll931217
Copy link
Author

Sorry, got it to work by updating the options.ts file:

  bar: {
    layouts: opt({
      "0": {
        left: [],
        middle: [],
        right: [],
      },
      "1": {
        left: ["dashboard", "workspaces", "windowtitle"],
        middle: ["media"],
        right: [
          "volume",
          "network",
          "bluetooth",
          "battery",
          "systray",
          "clock",
          "notifications",
        ],
      },
    }),

And adding .weather.json file with the key weather_api_key to the root config directory

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