Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mpvpaper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
7 changes: 6 additions & 1 deletion mpvpaper/plugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
13 changes: 13 additions & 0 deletions mpvpaper/shortcut.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--!nonstrict
-- Tile in the control center that opens the video wallpaper picker.

local function render()
shortcut.setLabel(noctalia.tr("title"))
shortcut.setIcon("movie")
end

render()

function onClick()
noctalia.togglePanel("noctalia/mpvpaper:picker")
end