Skip to content

Plugin directory ​

These examples live in the WayRun-Plugins workspace. They are reference material: nothing is registered until your plugins.toml names it. Most Lua examples are one script; kde.lua and windows.lua carry their kde/ and windows/ modules. A Python example is a directory that carries its own wayrun_plugin/ copy.

Lua examples ​

PluginWhat it doesNeeds
FirefoxBookmarks and history from places.sqlitea Firefox profile; assets/
Web searchSearch-engine suggestionsnetwork; assets/
Clipboard historySearch cliphist, copy an entry backcliphist; wl-clipboard
ScreenshotsRecent screenshots with image previews~/Pictures/Screenshots, or edit DIR and read
NotesText and Markdown notes with previewsdocuments/
GitHubRepository and user searchnetwork; optional GITHUB_TOKEN
WallpaperSwitch the DMS wallpaperdms on PATH; ~/Pictures/Wallpapers
Web openOpen a typed URL or domain as a default provider—
Man pagesSearch man pages and open one in a terminalapropos (man-db)
CurrencyConvert between currencies at daily ratesnetwork
KDE settingsSearch KDE System SettingsKDE Plasma; systemsettings or kcmshell6
PackagesSearch pacman repositories and the AURArch; pacman; paru or yay optional
WindowsSwitch between open windowsKDE, niri or Hyprland; busctl, niri or hyprctl
Kill processFind a process by name and send SIGTERM or SIGKILLps and kill (procps-ng)

firefox.lua and web.lua read the assets/ folder beside the script; documents.lua reads documents/, kde.lua reads kde/, and windows.lua reads windows/. Copy the folder with the script.

Python examples ​

PluginWhat it doesNeeds
GitHubRepository searchPython 3; framework included
TodoTodo manager with a panel actionPython 3; framework included

Installing an example ​

For a Lua plugin, clone the workspace and register the script. plugin add refuses a script without the exec bit, and the keyword is yours to pick:

bash
git clone https://github.com/Prslc/WayRun-Plugins.git
chmod +x WayRun-Plugins/examples/lua/firefox.lua
wayrun plugin add WayRun-Plugins/examples/lua/firefox.lua --keyword ff

For a Python plugin, add a plugins.toml entry yourself; plugin add registers Lua scripts only. The example carries its own wayrun_plugin/, so command can point straight at main.py:

toml
[[plugins]]
id = "github"
keyword = "gh"
command = "/absolute/path/to/examples/python/github/main.py"

The script needs its exec bit; run chmod +x main.py if you copied it. Check a Lua example with wayrun plugin check <script.lua>. The workspace's Python guide covers the framework and its API.

These are examples, not reviewed packages: read a script before registering it.

Released under the MIT OR Apache-2.0 license.