From 985907c3d368899d3639bf972092ab8e55024aed Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Fri, 21 Aug 2026 11:26:03 +0200 Subject: [PATCH 1/3] feat(mpvpaper): add control center tile --- mpvpaper/plugin.toml | 7 ++++++- mpvpaper/shortcut.luau | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 mpvpaper/shortcut.luau diff --git a/mpvpaper/plugin.toml b/mpvpaper/plugin.toml index 347d360..48cb347 100644 --- a/mpvpaper/plugin.toml +++ b/mpvpaper/plugin.toml @@ -10,7 +10,7 @@ id = "noctalia/mpvpaper" name = "Video Wallpaper" -version = "1.0.7" +version = "1.1.0" plugin_api = 9 author = "noctalia" license = "MIT" @@ -135,3 +135,8 @@ entry = "widget.luau" type = "glyph" label_key = "settings.glyph.label" default = "movie" + +# Control center shortcut that opens the picker. +[[shortcut]] +id = "shortcut" +entry = "shortcut.luau" diff --git a/mpvpaper/shortcut.luau b/mpvpaper/shortcut.luau new file mode 100644 index 0000000..96abb29 --- /dev/null +++ b/mpvpaper/shortcut.luau @@ -0,0 +1,13 @@ +--!nonstrict +-- Tile in the control center that opens the video wallpaper picker. + +local function render() + shortcut.setLabel("Video Wallpaper") + shortcut.setIcon("movie") +end + +render() + +function onClick() + noctalia.togglePanel("noctalia/mpvpaper:picker") +end From cf1732996d7ba7e83588af8d45528f51d98fe3ad Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Fri, 21 Aug 2026 11:31:33 +0200 Subject: [PATCH 2/3] chore: update README --- mpvpaper/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpvpaper/README.md b/mpvpaper/README.md index cee2484..3fce0d9 100644 --- a/mpvpaper/README.md +++ b/mpvpaper/README.md @@ -13,7 +13,7 @@ drawn above it. | Field | Value | | --- | --- | | ID | `noctalia/mpvpaper` | -| Entries | Service: `service`; Panel: `picker`; bar widget: `mpvpaper` | +| Entries | Service: `service`; Panel: `picker`; bar widget: `mpvpaper`; Shortcut: `shortcut` | ## Requirements @@ -25,7 +25,7 @@ The plugin works on `wlr-layer-shell` compositors (Niri, Hyprland, Sway, Mango). ## Usage 1. Set **Video directory** in the plugin settings (defaults to `~/Videos`). -2. Add the **Video Wallpaper** bar widget, or open the picker with +2. Add the **Video Wallpaper** bar widget, the control center shortcut, or open the picker with ```sh noctalia msg panel-toggle noctalia/mpvpaper:picker From 6542747854bfa7d1ed92a7a00ee68b39f47738a4 Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Fri, 21 Aug 2026 13:24:30 +0200 Subject: [PATCH 3/3] fix: use translation for the shortcut title --- mpvpaper/shortcut.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpvpaper/shortcut.luau b/mpvpaper/shortcut.luau index 96abb29..44bfba6 100644 --- a/mpvpaper/shortcut.luau +++ b/mpvpaper/shortcut.luau @@ -2,7 +2,7 @@ -- Tile in the control center that opens the video wallpaper picker. local function render() - shortcut.setLabel("Video Wallpaper") + shortcut.setLabel(noctalia.tr("title")) shortcut.setIcon("movie") end