From 0b640576dbc69b1fb79a53ce959d3a8a8bcaa034 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Sun, 15 Dec 2024 18:22:25 +0100 Subject: [PATCH] gbar => menubar --- pyprland/version.py | 2 +- site/.vitepress/config.mjs | 2 +- site/bar.md | 36 ++++++++++++++++++++++++++++++++++ site/components/PluginList.vue | 4 ++-- site/gbar.md | 33 ------------------------------- 5 files changed, 40 insertions(+), 37 deletions(-) create mode 100644 site/bar.md delete mode 100644 site/gbar.md diff --git a/pyprland/version.py b/pyprland/version.py index c4d7003..51bd9a5 100644 --- a/pyprland/version.py +++ b/pyprland/version.py @@ -1,3 +1,3 @@ """Package version.""" -VERSION = "2.4.3-8" +VERSION = "2.4.3-11" diff --git a/site/.vitepress/config.mjs b/site/.vitepress/config.mjs index 542cd77..c52967d 100644 --- a/site/.vitepress/config.mjs +++ b/site/.vitepress/config.mjs @@ -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" }, diff --git a/site/bar.md b/site/bar.md new file mode 100644 index 0000000..f7d15d6 --- /dev/null +++ b/site/bar.md @@ -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 + + + + +## 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"] +``` diff --git a/site/components/PluginList.vue b/site/components/PluginList.vue index d1704b5..8b66095 100644 --- a/site/components/PluginList.vue +++ b/site/components/PluginList.vue @@ -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 gBar is supported at the moment' + description: 'improves multi-monitor handling of the status bar - restarts it on crashes too' }, { name: 'expose', diff --git a/site/gbar.md b/site/gbar.md deleted file mode 100644 index c7407af..0000000 --- a/site/gbar.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -commands: - - name: gbar restart - description: Restart/refresh gBar on the "best" monitor. ---- - -# gbar - -Runs [gBar](https://github.com/scorpion-26/gBar) on the "best" monitor from a list of monitors. - -- Will take care of starting gbar on startup (you must not run it from another source like `hyprland.conf`). -- Automatically restarts gbar on crash -- Checks which monitors are on and take the best one from a provided list - -## Command - - - - -## Configuration - - -### `monitors` (REQUIRED) - -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"] -```