Skip to content

Commit

Permalink
gbar => menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Dec 15, 2024
1 parent b6c654e commit 0b64057
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 37 deletions.
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.3-8"
VERSION = "2.4.3-11"
2 changes: 1 addition & 1 deletion site/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const plugin_list = {
items: [
{ text: "Expose", link: "./expose" },
{ text: "Fetch client menu", link: "./fetch_client_menu" },
{ text: "Gbar", link: "./gbar" },
{ text: "Menubar", link: "./bar" },
{ text: "Layout center", link: "./layout_center" },
{ text: "Lost windows", link: "./lost_windows" },
{ text: "Magnify", link: "./magnify" },
Expand Down
36 changes: 36 additions & 0 deletions site/bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
commands:
- name: bar restart
description: Restart/refresh Menu Bar on the "best" monitor.
---

# menubar

Runs your favorite bar app (gbar, ags / hyprpanel, waybar, ...) with option to pass the "best" monitor from a list of monitors.

- Will take care of starting the command on startup (you must not run it from another source like `hyprland.conf`).
- Automatically restarts the menu bar on crash
- Checks which monitors are on and take the best one from a provided list

## Command

<CommandList :commands="$frontmatter.commands" />


## Configuration

### `command` (REQUIRED)

The command which runs the menu bar. The string `[monitor]` will be replaced by the best monitor.

### `monitors`

List of monitors to chose from, the first have higher priority over the second one etc...


## Example

```sh
[gbar]
monitors = ["DP-1", "HDMI-1", "HDMI-1-A"]
```
4 changes: 2 additions & 2 deletions site/components/PluginList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export default {
description: 'handles random wallpapers at regular interval (from a folder)'
},
{
name: 'gbar',
name: 'bar',
stars: 3,
description: 'improves multi-monitor handling of the status bar - only <tt>gBar</tt> is supported at the moment'
description: 'improves multi-monitor handling of the status bar - restarts it on crashes too'
},
{
name: 'expose',
Expand Down
33 changes: 0 additions & 33 deletions site/gbar.md

This file was deleted.

0 comments on commit 0b64057

Please sign in to comment.