Update nightwatch75/topgrade-wrapper to 0.0.4 (#128)
Settings shortcut in the panel header, and a README that names the release a user can act on instead of an API level. Co-authored-by: nightwatch75 <nightwatch75@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
nightwatch75
Claude Opus 5
parent
8d988d2d3f
commit
af10183aaa
@@ -15,8 +15,9 @@ count at a glance without giving up the interactive upgrade.
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Noctalia with plugin API 9 or newer (the panel wires its callbacks as closures),
|
Noctalia v5.0.0-beta.6 or newer — the first tagged release that accepts
|
||||||
and `topgrade` on `PATH`. A terminal emulator is needed for the update run:
|
`plugin_api = 15`, which the panel's settings shortcut
|
||||||
|
(`noctalia.openSettings()`) needs — and `topgrade` on `PATH`. A terminal emulator is needed for the update run:
|
||||||
the plugin uses Noctalia's own detection (`$TERMINAL`, then `ghostty`, `kitty`,
|
the plugin uses Noctalia's own detection (`$TERMINAL`, then `ghostty`, `kitty`,
|
||||||
`alacritty`, `wezterm`, `foot`, `konsole`, `gnome-terminal`, `ptyxis`, `xterm`),
|
`alacritty`, `wezterm`, `foot`, `konsole`, `gnome-terminal`, `ptyxis`, `xterm`),
|
||||||
or the one named in the **Terminal** setting.
|
or the one named in the **Terminal** setting.
|
||||||
@@ -67,6 +68,14 @@ noctalia msg panel-toggle nightwatch75/topgrade-wrapper:panel
|
|||||||
| **Update** (panel) | Run topgrade in a terminal window |
|
| **Update** (panel) | Run topgrade in a terminal window |
|
||||||
| **Dismiss** (panel) | Keep the numbers but return the bar glyph to its resting colour |
|
| **Dismiss** (panel) | Keep the numbers but return the bar glyph to its resting colour |
|
||||||
| ↻ refresh (panel header) | Same as **Check Updates** |
|
| ↻ refresh (panel header) | Same as **Check Updates** |
|
||||||
|
| ⚙ settings (panel header) | Open this plugin's page in *Settings → Plugins* |
|
||||||
|
|
||||||
|
That settings page also opens from the command line, so it can be bound in your
|
||||||
|
compositor too:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
noctalia msg settings-open-plugin nightwatch75/topgrade-wrapper
|
||||||
|
```
|
||||||
|
|
||||||
The glyph turns to the accent colour with the pending count next to it once a
|
The glyph turns to the accent colour with the pending count next to it once a
|
||||||
check finds something, stays neutral while everything is up to date or after
|
check finds something, stays neutral while everything is up to date or after
|
||||||
|
|||||||
@@ -349,6 +349,17 @@ render = function()
|
|||||||
request("check")
|
request("check")
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
|
-- Opens the settings window on this plugin's own page (the host
|
||||||
|
-- supplies the plugin id, so a plugin can only ever open its own).
|
||||||
|
-- The panel closes on the way; the engine keeps running.
|
||||||
|
ui.button({
|
||||||
|
glyph = "settings",
|
||||||
|
variant = "ghost",
|
||||||
|
tooltip = tr("tip_settings"),
|
||||||
|
onClick = function()
|
||||||
|
noctalia.openSettings()
|
||||||
|
end,
|
||||||
|
}),
|
||||||
ui.button({
|
ui.button({
|
||||||
glyph = "close",
|
glyph = "close",
|
||||||
variant = "ghost",
|
variant = "ghost",
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
id = "nightwatch75/topgrade-wrapper"
|
id = "nightwatch75/topgrade-wrapper"
|
||||||
name = "Topgrade Wrapper"
|
name = "Topgrade Wrapper"
|
||||||
version = "0.0.2"
|
version = "0.0.4"
|
||||||
plugin_api = 9
|
plugin_api = 15
|
||||||
author = "nightwatch75"
|
author = "nightwatch75"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
dependencies = ["topgrade"]
|
dependencies = ["topgrade"]
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
"step_planning": "topgrade steps",
|
"step_planning": "topgrade steps",
|
||||||
"step_unnamed": "topgrade",
|
"step_unnamed": "topgrade",
|
||||||
"tip_check": "Check for updates now",
|
"tip_check": "Check for updates now",
|
||||||
|
"tip_settings": "Plugin settings",
|
||||||
"tip_close": "Close",
|
"tip_close": "Close",
|
||||||
"tip_update": "Run topgrade in a terminal window",
|
"tip_update": "Run topgrade in a terminal window",
|
||||||
"title": "Topgrade Wrapper",
|
"title": "Topgrade Wrapper",
|
||||||
|
|||||||
Reference in New Issue
Block a user