[noctalia] Init

This commit is contained in:
aloslider committed 2026-07-04 20:58:10 +03:00
1 parent 60e546e2b8
commit 337028ce7c
112 files changed
+12125

No files matched your search

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Kohányi Róbert
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,344 @@
import QtQuick
import Quickshell
import qs.Commons
Item {
id: root
property var pluginApi: null
property string name: "Niri Workspaces"
property var launcher: null
property bool handleSearch: false
property string supportedLayouts: "list"
property bool supportsAutoPaste: false
readonly property var cfg: pluginApi?.pluginSettings || ({})
readonly property var defaults: pluginApi?.manifest?.metadata?.defaultSettings || ({})
readonly property string prefix: cfg.launcherPrefix ?? defaults.launcherPrefix ?? ">ws"
// `!` immediately after the prefix enters rename mode. `!!` resets.
readonly property string renameSigil: "!"
readonly property var mainInstance: pluginApi?.mainInstance
// Workspace id set by the pencil/eraser buttons. When >= 0, indicates a
// button-initiated edit so onActivate skips the post-apply focus jump.
// The keyboard flow (`>ws !name` / `>ws !!`) leaves this at -1 and targets
// `highlightedWorkspaceId` instead, then focuses the edited workspace.
property int editTargetId: -1
// Workspace id the user last highlighted while in filter mode. Captured
// by the selectedIndexChanged handler below and frozen the moment rename
// mode kicks in (since the launcher resets selectedIndex to 0 whenever
// results change).
property int highlightedWorkspaceId: -1
// Parallel to the last filter-mode results array: workspace id at each
// row index, or -1 for non-workspace rows (e.g. "no matches").
property var filterResultWorkspaceIds: []
Connections {
target: mainInstance
enabled: mainInstance !== null && launcher !== null
function onWorkspacesChanged() {
if (launcher && launcher.searchText && launcher.searchText.startsWith(prefix)) {
launcher.updateResults();
}
}
}
// Track which workspace is highlighted in the list — but only while in
// filter mode. Skip updates in rename mode so the frozen highlight at the
// moment the user typed `!` survives the selectedIndex reset.
Connections {
target: launcher
enabled: launcher !== null
function onSelectedIndexChanged() {
root.captureHighlightFromLauncher();
}
}
function captureHighlightFromLauncher() {
if (!launcher) return;
var txt = launcher.searchText || "";
if (!txt.startsWith(prefix)) return;
var content = txt.slice(prefix.length).replace(/^\s+/, "");
if (content.startsWith(renameSigil)) return; // freeze during rename mode
var idx = launcher.selectedIndex;
if (idx < 0 || idx >= filterResultWorkspaceIds.length) return;
var wsId = filterResultWorkspaceIds[idx];
if (wsId !== null && wsId !== undefined && wsId !== -1) {
highlightedWorkspaceId = wsId;
}
}
function handleCommand(searchText) {
return searchText.startsWith(prefix);
}
function commands() {
return [{
"name": prefix,
"description": pluginApi?.tr("launcher.command.description"),
"icon": "layout-grid",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {
if (launcher) launcher.setSearchText(prefix + " ");
}
}];
}
function getResults(searchText) {
if (!searchText.startsWith(prefix)) return [];
if (!mainInstance || !mainInstance.isNiri) {
filterResultWorkspaceIds = [];
return [{
"name": pluginApi?.tr("launcher.notNiri.name"),
"description": pluginApi?.tr("launcher.notNiri.description"),
"icon": "alert-circle",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {}
}];
}
var content = searchText.slice(prefix.length).replace(/^\s+/, "");
if (content.startsWith(renameSigil)) {
return renameModeResults(content.slice(renameSigil.length).replace(/^\s+/, ""));
}
// Exiting rename mode — clear any pending pencil/eraser target.
if (editTargetId !== -1) editTargetId = -1;
return filterModeResults(content.trim());
}
function filterModeResults(filter) {
var results = [];
var ids = [];
var workspaces = mainInstance.sortedWorkspaces;
var filterLower = filter.toLowerCase();
for (var i = 0; i < workspaces.length; i++) {
var ws = workspaces[i];
if (filter.length === 0 || matchesFilter(ws, filterLower)) {
results.push(buildWorkspaceEntry(ws));
ids.push(ws.id);
}
}
if (results.length === 0 && filter.length > 0) {
results.push({
"name": pluginApi?.tr("launcher.noMatches.name", { "filter": filter }),
"description": pluginApi?.tr("launcher.noMatches.description"),
"icon": "mood-empty",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {}
});
ids.push(-1);
}
filterResultWorkspaceIds = ids;
// Seed the highlight to the first visible workspace so an immediate
// transition to rename mode (before the user arrows) still has a target.
if (ids.length > 0 && ids[0] !== -1) {
highlightedWorkspaceId = ids[0];
}
// When no filter is active, auto-highlight the focused workspace instead
// of row 0 — matches "which workspace am I editing/jumping from" better
// than "first row on this output". LauncherCore sets selectedIndex=0 at
// the end of updateResults, so we have to override via callLater.
if (filter.length === 0 && launcher && mainInstance.focusedWorkspace) {
var focusedId = mainInstance.focusedWorkspace.id;
var focusedIdx = ids.indexOf(focusedId);
if (focusedIdx > 0) {
Qt.callLater(function () {
if (launcher) launcher.selectedIndex = focusedIdx;
});
highlightedWorkspaceId = focusedId;
}
}
return results;
}
function renameModeResults(newName) {
var target = resolveRenameTarget();
if (!target) {
return [{
"name": pluginApi?.tr("launcher.noHighlighted.name"),
"description": pluginApi?.tr("launcher.noHighlighted.description"),
"icon": "alert-circle",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {}
}];
}
var targetId = target.id;
var currentName = (target.name && target.name.length > 0) ? target.name : "";
var targetLabel = currentName.length > 0 ? "\"" + currentName + "\"" : "Workspace " + target.idx;
// `!!` — reset target's name.
if (newName.startsWith(renameSigil)) {
return [{
"name": pluginApi?.tr("launcher.resetPrompt.name", { "target": targetLabel }),
"description": pluginApi?.tr("launcher.resetPrompt.description"),
"icon": "eraser",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {
applyEdit(targetId, null);
}
}];
}
if (newName.length === 0) {
var promptName = currentName.length > 0
? pluginApi?.tr("launcher.renamePrompt.nameWithCurrent", { "current": currentName })
: pluginApi?.tr("launcher.renamePrompt.name", { "idx": target.idx });
return [{
"name": promptName,
"description": pluginApi?.tr("launcher.renamePrompt.description", { "sigil": renameSigil }),
"icon": "pencil",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {}
}];
}
// No-op: user pressed Enter without changing the pre-filled name.
if (newName === currentName) {
return [{
"name": pluginApi?.tr("launcher.applyRename.unchangedName", { "name": newName }),
"description": pluginApi?.tr("launcher.applyRename.unchangedDescription"),
"icon": "pencil",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {
root.editTargetId = -1;
if (launcher) launcher.setSearchText(prefix + " ");
}
}];
}
return [{
"name": pluginApi?.tr("launcher.applyRename.name", { "name": newName }),
"description": pluginApi?.tr("launcher.applyRename.description", { "target": targetLabel }),
"icon": "pencil",
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {
applyEdit(targetId, newName);
}
}];
}
// Apply a rename (newName truthy) or reset (newName === null) and return
// the launcher to the filtered-list view. We never auto-focus the edited
// workspace or close the launcher — the user stays in the list so they
// can keep editing or jump somewhere else on their own terms.
function applyEdit(targetId, newName) {
var ws = mainInstance.findWorkspaceById(targetId) || mainInstance.focusedWorkspace;
if (newName === null) {
mainInstance.unsetWorkspaceName(ws);
} else {
mainInstance.renameWorkspace(ws, newName);
}
root.editTargetId = -1;
if (launcher) launcher.setSearchText(prefix + " ");
}
function resolveRenameTarget() {
// Pencil/eraser wins — they pinpoint a specific row.
if (editTargetId !== -1) {
var targeted = mainInstance.findWorkspaceById(editTargetId);
if (targeted) return targeted;
}
// Keyboard flow: whichever workspace was highlighted in the list.
if (highlightedWorkspaceId !== -1) {
var highlighted = mainInstance.findWorkspaceById(highlightedWorkspaceId);
if (highlighted) return highlighted;
}
// Last resort when the launcher has no usable highlight.
return mainInstance.focusedWorkspace;
}
function matchesFilter(ws, filterLower) {
if (String(ws.idx).indexOf(filterLower) !== -1) return true;
if (ws.name && ws.name.toLowerCase().indexOf(filterLower) !== -1) return true;
if (ws.output && ws.output.toLowerCase().indexOf(filterLower) !== -1) return true;
return false;
}
function workspaceLabel(ws) {
if (ws.name && ws.name.length > 0) return ws.idx + " · " + ws.name;
return pluginApi?.tr("launcher.unnamedLabel", { "idx": ws.idx });
}
function buildWorkspaceEntry(ws) {
var label = workspaceLabel(ws);
if (ws.isFocused) label += pluginApi?.tr("launcher.currentSuffix");
var descKey = ws.isFocused ? "launcher.focus.descriptionCurrent" : "launcher.focus.description";
var desc = pluginApi?.tr(descKey);
if (ws.output) desc = desc + " — " + ws.output;
var wsId = ws.id;
var hasName = !!(ws.name && ws.name.length > 0);
return {
"name": label,
"description": desc,
"icon": ws.isFocused ? "check" : "chevron-right",
"isTablerIcon": true,
"isImage": false,
"provider": root,
"workspaceId": wsId,
"workspaceHasName": hasName,
"onActivate": function () {
var target = mainInstance.findWorkspaceById(wsId);
if (target) mainInstance.focusWorkspace(target);
if (launcher) launcher.close();
}
};
}
// Per-row action buttons. Button-initiated edits set editTargetId so the
// rename mode resolves this specific row and skips the post-apply focus.
function getItemActions(item) {
if (!item || item.workspaceId === undefined) return [];
var wsId = item.workspaceId;
var actions = [];
actions.push({
"icon": "pencil",
"tooltip": pluginApi?.tr("launcher.actions.rename"),
"action": function () {
root.editTargetId = wsId;
var ws = mainInstance.findWorkspaceById(wsId);
var existing = (ws && ws.name && !ws.name.startsWith(renameSigil)) ? ws.name : "";
if (launcher) launcher.setSearchText(prefix + " " + renameSigil + existing);
}
});
if (item.workspaceHasName) {
actions.push({
"icon": "eraser",
"tooltip": pluginApi?.tr("launcher.actions.reset"),
"action": function () {
// Mark as button-initiated so any refresh of highlightedWorkspaceId
// doesn't accidentally bring keyboard-flow focus-jump semantics in.
root.editTargetId = wsId;
var ws = mainInstance.findWorkspaceById(wsId);
if (ws) mainInstance.unsetWorkspaceName(ws);
root.editTargetId = -1;
}
});
}
return actions;
}
}
@@ -0,0 +1,162 @@
import QtQuick
import Quickshell
import Quickshell.Io
import qs.Commons
import qs.Services.Compositor
import qs.Services.UI
Item {
id: root
property var pluginApi: null
readonly property bool isNiri: CompositorService.isNiri
readonly property var cfg: pluginApi?.pluginSettings || ({})
readonly property var defaults: pluginApi?.manifest?.metadata?.defaultSettings || ({})
readonly property string launcherPrefix: cfg.launcherPrefix ?? defaults.launcherPrefix ?? ">ws"
// Snapshot of CompositorService.workspaces as a plain array. Rebuilt on
// workspaceChanged so JS-array consumers (LauncherProvider) get a stable,
// iterable view. The backend ListModel is already sorted by output+idx.
property var sortedWorkspaces: []
property var focusedWorkspace: null
signal workspacesChanged
Connections {
target: CompositorService
function onWorkspaceChanged() {
root.rebuildWorkspaces();
}
}
function rebuildWorkspaces() {
var arr = [];
var focused = null;
var model = CompositorService.workspaces;
for (var i = 0; i < model.count; i++) {
var w = model.get(i);
arr.push(w);
if (w.isFocused) focused = w;
}
sortedWorkspaces = arr;
focusedWorkspace = focused;
workspacesChanged();
}
// Resolve a workspace into a `--workspace` reference acceptable to the
// niri CLI. The CLI parses numeric refs as *idx* (not id) via
// WorkspaceReferenceArg::Index, so `ws.idx` is the only correct numeric
// reference — `ws.id` would silently target a different workspace.
// Names are unique across niri and preferred when available.
function workspaceRef(ws) {
if (!ws) return null;
if (ws.name && ws.name.length > 0) return ws.name;
return String(ws.idx);
}
function findWorkspaceById(id) {
for (var i = 0; i < sortedWorkspaces.length; i++) {
if (sortedWorkspaces[i].id === id) return sortedWorkspaces[i];
}
return null;
}
function renameWorkspace(ws, newName) {
if (!isNiri || !ws) return;
var trimmed = (newName || "").trim();
// niri's two subcommands take the target in different forms:
// set-workspace-name <NAME> [--workspace <REF>]
// unset-workspace-name [<REF>]
// Passing --workspace to unset-workspace-name makes niri reject the
// command, so branch here. Omitting the reference entirely makes niri
// target the focused workspace, which is what we want when ws is
// already focused (also avoids our idx ref misfiring for unnamed
// workspaces).
var args = ["niri", "msg", "action"];
var ref = ws.isFocused ? null : workspaceRef(ws);
if (trimmed.length === 0) {
args.push("unset-workspace-name");
if (ref !== null) args.push(ref);
} else {
args.push("set-workspace-name", trimmed);
if (ref !== null) args.push("--workspace", ref);
}
Logger.i("NiriWorkspaces", "Running:", args.join(" "));
Quickshell.execDetached(args);
}
function unsetWorkspaceName(ws) {
renameWorkspace(ws, "");
}
function renameCurrent(newName) {
if (!focusedWorkspace) {
Logger.w("NiriWorkspaces", "No focused workspace to rename");
return;
}
renameWorkspace(focusedWorkspace, newName);
}
function unsetCurrentName() {
if (!focusedWorkspace) {
Logger.w("NiriWorkspaces", "No focused workspace to unset");
return;
}
unsetWorkspaceName(focusedWorkspace);
}
function focusWorkspace(ws) {
if (!isNiri || !ws) return;
// niri's `focus-workspace <idx>` toggles back to the previous workspace
// when the target is already focused. Skip the dispatch so re-selecting
// the current workspace is a no-op.
if (ws.isFocused) return;
var ref = workspaceRef(ws);
if (ref === null) return;
Quickshell.execDetached(["niri", "msg", "action", "focus-workspace", ref]);
}
IpcHandler {
target: "plugin:niri-workspaces"
// Mirrors the shell's `launcher emoji` toggle: open the launcher in
// workspace mode, close it if already in that mode, or switch modes if
// it's open on a different prefix.
function toggle() {
if (!pluginApi) return;
pluginApi.withCurrentScreen(screen => {
var prefix = root.launcherPrefix;
var searchText = PanelService.getLauncherSearchText(screen);
var isInWsMode = searchText.startsWith(prefix);
if (!PanelService.isLauncherOpen(screen)) {
PanelService.openLauncherWithSearch(screen, prefix + " ");
} else if (isInWsMode) {
PanelService.closeLauncher(screen);
} else {
PanelService.setLauncherSearchText(screen, prefix + " ");
}
}, Settings.data.appLauncher.overviewLayer);
}
function renameCurrent(name: string) {
root.renameCurrent(name);
}
function unsetCurrent() {
root.unsetCurrentName();
}
}
Component.onCompleted: {
if (isNiri) {
Logger.i("NiriWorkspaces", "Using CompositorService for workspace state");
} else {
Logger.w("NiriWorkspaces", "Not running on Niri — plugin inactive");
}
rebuildWorkspaces();
}
}
@@ -0,0 +1,54 @@
# Niri Workspaces
Browse, jump to, rename or reset Niri workspaces from the Noctalia launcher — modelled after the built-in `>win` window switcher.
## Usage
Open the launcher and type the `>ws` prefix.
- `>ws` — lists every workspace (current workspace highlighted). Arrow up/down to pick a row, Enter jumps to it.
- `>ws foo` — filters workspaces whose name, index, or output contains `foo`.
The focused workspace is highlighted by default when the list opens unfiltered, so keyboard rename/reset shortcuts target it right away without any extra navigation.
### Keyboard rename / reset
With `>ws` (unfiltered) open and a workspace highlighted, type:
- `!new name` → `>ws !new name` — renames the highlighted workspace.
- `!!` → `>ws !!` — clears the highlighted workspace's custom name.
After applying, the launcher returns to the workspace list so you can keep editing or jump somewhere else on your own — Enter on a row switches to that workspace.
Entering rename mode with `!` pre-fills the current name (if any), so you can edit it rather than retype. Because rename mode only engages when `!` is the first character after the prefix, clear any filter text before typing `!`.
### Pencil / eraser buttons
Each workspace row shows action buttons on the right when selected:
- **Pencil** — opens rename mode pre-filled with the workspace's current name. Enter applies.
- **Eraser** — clears the name immediately (shown only when the workspace is named).
## Keyboard shortcuts (without opening the launcher)
Bind these to Niri keybindings for direct access:
```sh
# Open/close the launcher in workspace mode (mirrors the shell's `launcher emoji` toggle).
qs ipc call plugin:niri-workspaces toggle
# Rename / reset the focused workspace without opening the launcher.
qs ipc call plugin:niri-workspaces renameCurrent "my name"
qs ipc call plugin:niri-workspaces unsetCurrent
```
`renameCurrent` / `unsetCurrent` always target the focused workspace. `toggle` respects your configured launcher prefix.
## Requirements
- [Niri](https://github.com/YaLTeR/niri) with the `niri msg` CLI (event-stream support).
- On other compositors the plugin loads but stays dormant.
## Why Niri-only?
Niri has first-class `set-workspace-name` / `unset-workspace-name` actions, and the concept of "reset the name to fall back to the index" maps cleanly to `unset-workspace-name`. Hyprland's `renameworkspace` has different semantics, so a Hyprland variant would need to be a separate plugin.
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Niri-Arbeitsflächen filtern, wechseln, umbenennen oder zurücksetzen"
},
"unnamedLabel": "Arbeitsfläche {idx}",
"currentSuffix": " (aktuell)",
"focus": {
"description": "Zu dieser Arbeitsfläche wechseln",
"descriptionCurrent": "Aktuelle Arbeitsfläche"
},
"actions": {
"rename": "Umbenennen",
"reset": "Name zurücksetzen (auf Index)"
},
"renamePrompt": {
"name": "Neuen Namen für Arbeitsfläche {idx} eingeben",
"nameWithCurrent": "Name von „{current}“ bearbeiten",
"description": "Mit Enter übernehmen. {sigil}{sigil} zum Zurücksetzen."
},
"resetPrompt": {
"name": "Namen von {target} zurücksetzen",
"description": "Entfernt den benutzerdefinierten Namen — Enter übernimmt"
},
"applyRename": {
"name": "Name setzen: {name}",
"description": "{target} auf diesen Namen umbenennen",
"unchangedName": "Name behalten: {name}",
"unchangedDescription": "Name ist bereits gesetzt — Enter schließt"
},
"noMatches": {
"name": "Keine Arbeitsflächen passen zu „{filter}“",
"description": "Anderen Filter versuchen oder zurücksetzen"
},
"noHighlighted": {
"name": "Keine Arbeitsfläche zum Bearbeiten",
"description": "Eine Arbeitsfläche in der Liste markieren oder den Launcher auf Niri öffnen"
},
"notNiri": {
"name": "Läuft nicht auf Niri",
"description": "Dieses Plugin funktioniert nur auf dem Niri-Compositor"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filter, jump to, rename or reset Niri workspaces"
},
"unnamedLabel": "Workspace {idx}",
"currentSuffix": " (current)",
"focus": {
"description": "Switch to this workspace",
"descriptionCurrent": "Current workspace"
},
"actions": {
"rename": "Rename",
"reset": "Reset name (back to index)"
},
"renamePrompt": {
"name": "Type a new name for Workspace {idx}",
"nameWithCurrent": "Edit name of \"{current}\"",
"description": "Press Enter to apply. Type {sigil}{sigil} to reset."
},
"resetPrompt": {
"name": "Reset name of {target}",
"description": "Clears the custom name — press Enter to apply"
},
"applyRename": {
"name": "Set name: {name}",
"description": "Rename {target} to this",
"unchangedName": "Keep name: {name}",
"unchangedDescription": "Name is already set — press Enter to close"
},
"noMatches": {
"name": "No workspaces match \"{filter}\"",
"description": "Try a different filter or clear it"
},
"noHighlighted": {
"name": "No workspace to edit",
"description": "Highlight a workspace in the list, or open the launcher on Niri"
},
"notNiri": {
"name": "Not running on Niri",
"description": "This plugin only works on the Niri compositor"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filtrar, cambiar, renombrar o restablecer espacios de trabajo de Niri"
},
"unnamedLabel": "Espacio de trabajo {idx}",
"currentSuffix": " (actual)",
"focus": {
"description": "Cambiar a este espacio de trabajo",
"descriptionCurrent": "Espacio de trabajo actual"
},
"actions": {
"rename": "Renombrar",
"reset": "Restablecer nombre (al índice)"
},
"renamePrompt": {
"name": "Escribe un nuevo nombre para el espacio de trabajo {idx}",
"nameWithCurrent": "Editar nombre de «{current}»",
"description": "Pulsa Enter para aplicar. Escribe {sigil}{sigil} para restablecer."
},
"resetPrompt": {
"name": "Restablecer nombre de {target}",
"description": "Borra el nombre personalizado — pulsa Enter para aplicar"
},
"applyRename": {
"name": "Establecer nombre: {name}",
"description": "Renombrar {target} con este nombre",
"unchangedName": "Mantener nombre: {name}",
"unchangedDescription": "El nombre ya está establecido — pulsa Enter para cerrar"
},
"noMatches": {
"name": "Ningún espacio de trabajo coincide con «{filter}»",
"description": "Prueba con otro filtro o bórralo"
},
"noHighlighted": {
"name": "Ningún espacio de trabajo para editar",
"description": "Selecciona un espacio de trabajo en la lista, o abre el lanzador en Niri"
},
"notNiri": {
"name": "No se está ejecutando en Niri",
"description": "Este plugin solo funciona en el compositor Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filtrer, basculer, renommer ou réinitialiser les espaces de travail Niri"
},
"unnamedLabel": "Espace de travail {idx}",
"currentSuffix": " (actuel)",
"focus": {
"description": "Basculer vers cet espace de travail",
"descriptionCurrent": "Espace de travail actuel"
},
"actions": {
"rename": "Renommer",
"reset": "Réinitialiser le nom (selon l'index)"
},
"renamePrompt": {
"name": "Saisir un nouveau nom pour l'espace de travail {idx}",
"nameWithCurrent": "Modifier le nom de « {current} »",
"description": "Appuyez sur entrée pour appliquer. {sigil}{sigil} pour réinitialiser."
},
"resetPrompt": {
"name": "Réinitialiser le nom de {target}",
"description": "Supprime le nom personnalisé — appuyez sur entrée pour appliquer"
},
"applyRename": {
"name": "Définir le nom : {name}",
"description": "Renommer {target} ainsi",
"unchangedName": "Garder le nom : {name}",
"unchangedDescription": "Le nom est déjà défini — appuyez sur entrée pour fermer"
},
"noMatches": {
"name": "Aucun espace de travail ne correspond à « {filter} »",
"description": "Essayez un autre filtre ou effacez-le"
},
"noHighlighted": {
"name": "Aucun espace de travail à modifier",
"description": "Sélectionnez un espace de travail dans la liste, ou ouvrez le lanceur sur Niri"
},
"notNiri": {
"name": "Ne fonctionne pas sous Niri",
"description": "Ce plugin fonctionne uniquement avec le compositeur Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Niri munkaterületek szűrése, váltás, átnevezés vagy visszaállítás"
},
"unnamedLabel": "{idx}. munkaterület",
"currentSuffix": " (aktuális)",
"focus": {
"description": "Váltás erre a munkaterületre",
"descriptionCurrent": "Aktuális munkaterület"
},
"actions": {
"rename": "Átnevezés",
"reset": "Név visszaállítása (indexre)"
},
"renamePrompt": {
"name": "Adj új nevet a {idx}. munkaterületnek",
"nameWithCurrent": "„{current}” nevének szerkesztése",
"description": "Enter az alkalmazáshoz. {sigil}{sigil} a visszaállításhoz."
},
"resetPrompt": {
"name": "{target} nevének visszaállítása",
"description": "Törli az egyéni nevet — Enter az alkalmazáshoz"
},
"applyRename": {
"name": "Név beállítása: {name}",
"description": "{target} átnevezése erre",
"unchangedName": "Név megtartása: {name}",
"unchangedDescription": "A név már be van állítva — Enter a bezáráshoz"
},
"noMatches": {
"name": "Nincs találat erre: „{filter}”",
"description": "Próbálj másik szűrőt vagy töröld"
},
"noHighlighted": {
"name": "Nincs szerkeszthető munkaterület",
"description": "Jelölj ki egy munkaterületet a listában, vagy nyisd meg a launchert Niri alatt"
},
"notNiri": {
"name": "Nem Niri-n fut",
"description": "Ez a plugin csak a Niri kompozitoron működik"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filtra, cambia, rinomina o reimposta le aree di lavoro Niri"
},
"unnamedLabel": "Area di lavoro {idx}",
"currentSuffix": " (attuale)",
"focus": {
"description": "Passa a quest'area di lavoro",
"descriptionCurrent": "Area di lavoro attuale"
},
"actions": {
"rename": "Rinomina",
"reset": "Reimposta nome (all'indice)"
},
"renamePrompt": {
"name": "Inserisci un nuovo nome per l'area di lavoro {idx}",
"nameWithCurrent": "Modifica il nome di «{current}»",
"description": "Premi Invio per applicare. Digita {sigil}{sigil} per reimpostare."
},
"resetPrompt": {
"name": "Reimposta il nome di {target}",
"description": "Rimuove il nome personalizzato — premi Invio per applicare"
},
"applyRename": {
"name": "Imposta nome: {name}",
"description": "Rinomina {target} in questo",
"unchangedName": "Mantieni nome: {name}",
"unchangedDescription": "Il nome è già impostato — premi Invio per chiudere"
},
"noMatches": {
"name": "Nessuna area di lavoro corrisponde a «{filter}»",
"description": "Prova un altro filtro o cancellalo"
},
"noHighlighted": {
"name": "Nessuna area di lavoro da modificare",
"description": "Seleziona un'area di lavoro nell'elenco, o apri il launcher su Niri"
},
"notNiri": {
"name": "Non in esecuzione su Niri",
"description": "Questo plugin funziona solo sul compositor Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Niri ワークスペースの絞り込み・切り替え・名前変更・リセット"
},
"unnamedLabel": "ワークスペース {idx}",
"currentSuffix": "(現在)",
"focus": {
"description": "このワークスペースに切り替える",
"descriptionCurrent": "現在のワークスペース"
},
"actions": {
"rename": "名前を変更",
"reset": "名前をリセット(インデックスに戻す)"
},
"renamePrompt": {
"name": "ワークスペース {idx} の新しい名前を入力",
"nameWithCurrent": "「{current}」の名前を編集",
"description": "Enter で適用。{sigil}{sigil} でリセット。"
},
"resetPrompt": {
"name": "{target} の名前をリセット",
"description": "カスタム名を削除します — Enter で適用"
},
"applyRename": {
"name": "名前を設定: {name}",
"description": "{target} をこの名前に変更",
"unchangedName": "名前を維持: {name}",
"unchangedDescription": "名前はすでに設定されています — Enter で閉じる"
},
"noMatches": {
"name": "「{filter}」に一致するワークスペースがありません",
"description": "別の条件で絞り込むか、クリアしてください"
},
"noHighlighted": {
"name": "編集対象のワークスペースがありません",
"description": "リストでワークスペースを選択するか、Niri 上でランチャーを開いてください"
},
"notNiri": {
"name": "Niri 上で動作していません",
"description": "このプラグインは Niri コンポジタでのみ動作します"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Qadên xebatê yên Niri parzûn bike, biguhere, nav biguhere an jî vegerîne"
},
"unnamedLabel": "Qada xebatê {idx}",
"currentSuffix": " (niha)",
"focus": {
"description": "Biçe vê qada xebatê",
"descriptionCurrent": "Qada xebatê ya niha"
},
"actions": {
"rename": "Nav biguhere",
"reset": "Navî vegerîne (bo îndeksê)"
},
"renamePrompt": {
"name": "Ji bo qada xebatê {idx} navekî nû binivîse",
"nameWithCurrent": "Navê „{current}“ serast bike",
"description": "Enter bike da ku sepandin. {sigil}{sigil} ji bo vegerandinê."
},
"resetPrompt": {
"name": "Navê {target} vegerîne",
"description": "Navê taybet jê dibe — Enter bike da ku sepandin"
},
"applyRename": {
"name": "Nav saz bike: {name}",
"description": "{target} bi vê binav bike",
"unchangedName": "Navî biparêze: {name}",
"unchangedDescription": "Nav jixwe hatiye sazkirin — Enter bike da ku bigire"
},
"noMatches": {
"name": "Tu qada xebatê bi „{filter}“ re li hev nayê",
"description": "Parzûnekî din biceribîne an jî paqij bike"
},
"noHighlighted": {
"name": "Qada xebatê ji bo sererastkirinê tune",
"description": "Qadekî xebatê di lîsteyê de hilbijêre, an jî destpêkerê li Niri veke"
},
"notNiri": {
"name": "Li ser Niri naxebite",
"description": "Ev pêvek tenê li ser komposîtorê Niri dixebite"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Niri-werkruimtes filteren, wisselen, hernoemen of resetten"
},
"unnamedLabel": "Werkruimte {idx}",
"currentSuffix": " (huidig)",
"focus": {
"description": "Naar deze werkruimte wisselen",
"descriptionCurrent": "Huidige werkruimte"
},
"actions": {
"rename": "Hernoemen",
"reset": "Naam resetten (naar index)"
},
"renamePrompt": {
"name": "Typ een nieuwe naam voor werkruimte {idx}",
"nameWithCurrent": "Naam van „{current}” bewerken",
"description": "Druk op Enter om toe te passen. Typ {sigil}{sigil} om te resetten."
},
"resetPrompt": {
"name": "Naam van {target} resetten",
"description": "Wist de aangepaste naam — druk op Enter om toe te passen"
},
"applyRename": {
"name": "Naam instellen: {name}",
"description": "{target} hiernaar hernoemen",
"unchangedName": "Naam behouden: {name}",
"unchangedDescription": "Naam is al ingesteld — druk op Enter om te sluiten"
},
"noMatches": {
"name": "Geen werkruimtes komen overeen met „{filter}”",
"description": "Probeer een ander filter of wis het"
},
"noHighlighted": {
"name": "Geen werkruimte om te bewerken",
"description": "Selecteer een werkruimte in de lijst, of open de launcher op Niri"
},
"notNiri": {
"name": "Draait niet op Niri",
"description": "Deze plugin werkt alleen op de Niri-compositor"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filtruj, przełączaj, zmieniaj nazwy lub resetuj obszary robocze Niri"
},
"unnamedLabel": "Obszar roboczy {idx}",
"currentSuffix": " (bieżący)",
"focus": {
"description": "Przełącz na ten obszar roboczy",
"descriptionCurrent": "Bieżący obszar roboczy"
},
"actions": {
"rename": "Zmień nazwę",
"reset": "Zresetuj nazwę (do indeksu)"
},
"renamePrompt": {
"name": "Wpisz nową nazwę dla obszaru roboczego {idx}",
"nameWithCurrent": "Edytuj nazwę „{current}”",
"description": "Naciśnij Enter, aby zastosować. Wpisz {sigil}{sigil}, aby zresetować."
},
"resetPrompt": {
"name": "Zresetuj nazwę {target}",
"description": "Usuwa niestandardową nazwę — naciśnij Enter, aby zastosować"
},
"applyRename": {
"name": "Ustaw nazwę: {name}",
"description": "Zmień nazwę {target} na tę",
"unchangedName": "Zachowaj nazwę: {name}",
"unchangedDescription": "Nazwa jest już ustawiona — naciśnij Enter, aby zamknąć"
},
"noMatches": {
"name": "Żaden obszar roboczy nie pasuje do „{filter}”",
"description": "Spróbuj innego filtra lub go wyczyść"
},
"noHighlighted": {
"name": "Brak obszaru roboczego do edycji",
"description": "Zaznacz obszar roboczy na liście lub otwórz launcher w Niri"
},
"notNiri": {
"name": "Nie działa na Niri",
"description": "Ta wtyczka działa tylko na kompozytorze Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Filtrar, alternar, renomear ou redefinir espaços de trabalho do Niri"
},
"unnamedLabel": "Espaço de trabalho {idx}",
"currentSuffix": " (atual)",
"focus": {
"description": "Alternar para este espaço de trabalho",
"descriptionCurrent": "Espaço de trabalho atual"
},
"actions": {
"rename": "Renomear",
"reset": "Redefinir nome (para o índice)"
},
"renamePrompt": {
"name": "Digite um novo nome para o espaço de trabalho {idx}",
"nameWithCurrent": "Editar nome de «{current}»",
"description": "Pressione Enter para aplicar. Digite {sigil}{sigil} para redefinir."
},
"resetPrompt": {
"name": "Redefinir nome de {target}",
"description": "Remove o nome personalizado — pressione Enter para aplicar"
},
"applyRename": {
"name": "Definir nome: {name}",
"description": "Renomear {target} para este",
"unchangedName": "Manter nome: {name}",
"unchangedDescription": "O nome já está definido — pressione Enter para fechar"
},
"noMatches": {
"name": "Nenhum espaço de trabalho corresponde a «{filter}»",
"description": "Tente um filtro diferente ou limpe-o"
},
"noHighlighted": {
"name": "Nenhum espaço de trabalho para editar",
"description": "Destaque um espaço de trabalho na lista, ou abra o launcher no Niri"
},
"notNiri": {
"name": "Não está em execução no Niri",
"description": "Este plugin só funciona no compositor Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Фильтрация, переключение, переименование и сброс рабочих столов Niri"
},
"unnamedLabel": "Рабочий стол {idx}",
"currentSuffix": " (текущий)",
"focus": {
"description": "Переключиться на этот рабочий стол",
"descriptionCurrent": "Текущий рабочий стол"
},
"actions": {
"rename": "Переименовать",
"reset": "Сбросить имя (до индекса)"
},
"renamePrompt": {
"name": "Введите новое имя для рабочего стола {idx}",
"nameWithCurrent": "Изменить имя «{current}»",
"description": "Enter — применить. {sigil}{sigil} — сбросить."
},
"resetPrompt": {
"name": "Сбросить имя {target}",
"description": "Очищает пользовательское имя — Enter применит"
},
"applyRename": {
"name": "Задать имя: {name}",
"description": "Переименовать {target} в это",
"unchangedName": "Оставить имя: {name}",
"unchangedDescription": "Имя уже задано — Enter закроет"
},
"noMatches": {
"name": "Нет рабочих столов по запросу «{filter}»",
"description": "Попробуйте другой фильтр или очистите его"
},
"noHighlighted": {
"name": "Нет рабочего стола для редактирования",
"description": "Выберите рабочий стол в списке или откройте лаунчер на Niri"
},
"notNiri": {
"name": "Не запущено на Niri",
"description": "Этот плагин работает только на композиторе Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Niri çalışma alanlarını filtreleyin, geçiş yapın, yeniden adlandırın veya sıfırlayın"
},
"unnamedLabel": "Çalışma Alanı {idx}",
"currentSuffix": " (geçerli)",
"focus": {
"description": "Bu çalışma alanına geç",
"descriptionCurrent": "Geçerli çalışma alanı"
},
"actions": {
"rename": "Yeniden adlandır",
"reset": "Adı sıfırla (indekse)"
},
"renamePrompt": {
"name": "Çalışma alanı {idx} için yeni bir ad yazın",
"nameWithCurrent": "„{current}” adını düzenle",
"description": "Uygulamak için Enter. Sıfırlamak için {sigil}{sigil} yazın."
},
"resetPrompt": {
"name": "{target} adını sıfırla",
"description": "Özel adı temizler — uygulamak için Enter"
},
"applyRename": {
"name": "Adı belirle: {name}",
"description": "{target} öğesini buna yeniden adlandır",
"unchangedName": "Adı koru: {name}",
"unchangedDescription": "Ad zaten belirlenmiş — kapatmak için Enter"
},
"noMatches": {
"name": "„{filter}” ile eşleşen çalışma alanı yok",
"description": "Farklı bir filtre deneyin veya temizleyin"
},
"noHighlighted": {
"name": "Düzenlenecek çalışma alanı yok",
"description": "Listeden bir çalışma alanı seçin veya başlatıcıyı Niri'de açın"
},
"notNiri": {
"name": "Niri üzerinde çalışmıyor",
"description": "Bu eklenti yalnızca Niri kompozitöründe çalışır"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Фільтрування, перемикання, перейменування та скидання робочих просторів Niri"
},
"unnamedLabel": "Робочий простір {idx}",
"currentSuffix": " (поточний)",
"focus": {
"description": "Перейти до цього робочого простору",
"descriptionCurrent": "Поточний робочий простір"
},
"actions": {
"rename": "Перейменувати",
"reset": "Скинути назву (до індексу)"
},
"renamePrompt": {
"name": "Введіть нову назву для робочого простору {idx}",
"nameWithCurrent": "Редагувати назву «{current}»",
"description": "Enter — застосувати. {sigil}{sigil} — скинути."
},
"resetPrompt": {
"name": "Скинути назву {target}",
"description": "Очищає користувацьку назву — Enter застосує"
},
"applyRename": {
"name": "Встановити назву: {name}",
"description": "Перейменувати {target} на цю назву",
"unchangedName": "Залишити назву: {name}",
"unchangedDescription": "Назву вже встановлено — Enter закриє"
},
"noMatches": {
"name": "Немає робочих просторів за запитом «{filter}»",
"description": "Спробуйте інший фільтр або очистіть його"
},
"noHighlighted": {
"name": "Немає робочого простору для редагування",
"description": "Виберіть робочий простір у списку або відкрийте лаунчер у Niri"
},
"notNiri": {
"name": "Не запущено на Niri",
"description": "Цей плагін працює лише на композиторі Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "Lọc, chuyển, đổi tên hoặc đặt lại không gian làm việc Niri"
},
"unnamedLabel": "Không gian làm việc {idx}",
"currentSuffix": " (hiện tại)",
"focus": {
"description": "Chuyển sang không gian làm việc này",
"descriptionCurrent": "Không gian làm việc hiện tại"
},
"actions": {
"rename": "Đổi tên",
"reset": "Đặt lại tên (về chỉ số)"
},
"renamePrompt": {
"name": "Nhập tên mới cho không gian làm việc {idx}",
"nameWithCurrent": "Chỉnh sửa tên của „{current}”",
"description": "Nhấn Enter để áp dụng. Nhập {sigil}{sigil} để đặt lại."
},
"resetPrompt": {
"name": "Đặt lại tên của {target}",
"description": "Xóa tên tùy chỉnh — nhấn Enter để áp dụng"
},
"applyRename": {
"name": "Đặt tên: {name}",
"description": "Đổi tên {target} thành tên này",
"unchangedName": "Giữ tên: {name}",
"unchangedDescription": "Tên đã được đặt — nhấn Enter để đóng"
},
"noMatches": {
"name": "Không có không gian làm việc nào khớp với „{filter}”",
"description": "Hãy thử bộ lọc khác hoặc xóa nó"
},
"noHighlighted": {
"name": "Không có không gian làm việc để chỉnh sửa",
"description": "Chọn một không gian làm việc trong danh sách, hoặc mở launcher trên Niri"
},
"notNiri": {
"name": "Không chạy trên Niri",
"description": "Plugin này chỉ hoạt động trên compositor Niri"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "筛选、切换、重命名或重置 Niri 工作区"
},
"unnamedLabel": "工作区 {idx}",
"currentSuffix": "(当前)",
"focus": {
"description": "切换到该工作区",
"descriptionCurrent": "当前工作区"
},
"actions": {
"rename": "重命名",
"reset": "重置名称(回到索引)"
},
"renamePrompt": {
"name": "为工作区 {idx} 输入新名称",
"nameWithCurrent": "编辑「{current}」的名称",
"description": "按 Enter 应用。输入 {sigil}{sigil} 重置。"
},
"resetPrompt": {
"name": "重置 {target} 的名称",
"description": "清除自定义名称 — 按 Enter 应用"
},
"applyRename": {
"name": "设置名称:{name}",
"description": "将 {target} 重命名为此",
"unchangedName": "保留名称:{name}",
"unchangedDescription": "名称已设置 — 按 Enter 关闭"
},
"noMatches": {
"name": "没有工作区与「{filter}」匹配",
"description": "尝试其他筛选条件或清除筛选"
},
"noHighlighted": {
"name": "没有可编辑的工作区",
"description": "在列表中选择一个工作区,或在 Niri 上打开启动器"
},
"notNiri": {
"name": "未在 Niri 上运行",
"description": "该插件仅在 Niri 合成器上工作"
}
}
}
@@ -0,0 +1,44 @@
{
"launcher": {
"command": {
"description": "篩選、切換、重新命名或重設 Niri 工作區"
},
"unnamedLabel": "工作區 {idx}",
"currentSuffix": "(目前)",
"focus": {
"description": "切換到這個工作區",
"descriptionCurrent": "目前的工作區"
},
"actions": {
"rename": "重新命名",
"reset": "重設名稱(回到索引)"
},
"renamePrompt": {
"name": "為工作區 {idx} 輸入新名稱",
"nameWithCurrent": "編輯「{current}」的名稱",
"description": "按 Enter 套用。輸入 {sigil}{sigil} 以重設。"
},
"resetPrompt": {
"name": "重設 {target} 的名稱",
"description": "清除自訂名稱 — 按 Enter 套用"
},
"applyRename": {
"name": "設定名稱:{name}",
"description": "將 {target} 重新命名為此",
"unchangedName": "保留名稱:{name}",
"unchangedDescription": "名稱已設定 — 按 Enter 關閉"
},
"noMatches": {
"name": "沒有工作區符合「{filter}」",
"description": "請嘗試其他篩選條件或清除篩選"
},
"noHighlighted": {
"name": "沒有可編輯的工作區",
"description": "在清單中選取一個工作區,或在 Niri 上開啟啟動器"
},
"notNiri": {
"name": "未在 Niri 上執行",
"description": "此外掛僅在 Niri 合成器上運作"
}
}
}
@@ -0,0 +1,28 @@
{
"id": "niri-workspaces",
"name": "Niri Workspaces",
"version": "1.0.0",
"minNoctaliaVersion": "4.4.1",
"author": "Kohányi Róbert",
"license": "MIT",
"repository": "https://github.com/noctalia-dev/noctalia-plugins",
"description": "Filter, jump to, rename or reset Niri workspaces from the launcher.",
"tags": [
"Launcher",
"Utility",
"Niri"
],
"entryPoints": {
"main": "Main.qml",
"launcherProvider": "LauncherProvider.qml"
},
"dependencies": {
"plugins": []
},
"metadata": {
"commandPrefix": ">ws",
"defaultSettings": {
"launcherPrefix": ">ws"
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB