[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,193 @@
import QtQuick
import QtQuick.Effects
import Quickshell
import Quickshell.Io
import qs.Commons
import qs.Modules.Bar.Extras
import qs.Services.UI
import qs.Widgets
import qs.Services.System
Item {
id: root
property var pluginApi: null
property ShellScreen screen
property string widgetId: ""
property string section: ""
property int sectionWidgetIndex: -1
property int sectionWidgetsCount: 0
// Per-screen bar properties
readonly property string screenName: screen?.name ?? ""
readonly property string barPosition: Settings.getBarPositionForScreen(screenName)
readonly property bool barIsVertical: barPosition === "left" || barPosition === "right"
readonly property real capsuleHeight: Style.getCapsuleHeightForScreen(screenName)
property url currentIconSource
property string tooltipText: {
if (!pluginApi) return "";
return root.isRunning ? (pluginApi.tr("tooltip.running") || "Running") : (pluginApi.tr("tooltip.sleeping") || "Sleeping");
}
property string tooltipDirection: BarService.getTooltipDirection()
property bool enabled: true
property bool allowClickWhenDisabled: false
property bool hovering: false
property color colorBg: Color.mSurfaceVariant
property color colorFg: Color.mPrimary
property color colorBgHover: Color.mHover
property color colorFgHover: Color.mOnHover
property color colorBorder: Color.mOutline
property color colorBorderHover: Color.mOutline
property real customRadius: Style.radiusL
signal entered
signal exited
signal clicked
signal rightClicked
signal middleClicked
signal wheel(int angleDelta)
readonly property real contentWidth: barIsVertical ? capsuleHeight : Math.round(capsuleHeight + Style.marginXS * 2)
readonly property real contentHeight: capsuleHeight
implicitWidth: contentWidth
implicitHeight: contentHeight
// --- Catwalk Specific Logic ---
property int frameIndex: 0
property int idleFrameIndex: 0
readonly property bool isRunning: root.pluginApi?.mainInstance?.isRunning ?? false
readonly property var icons: root.pluginApi?.mainInstance?.icons || []
readonly property var idleIcons: root.pluginApi?.mainInstance?.idleIcons || []
readonly property real cpuUsage: root.pluginApi?.mainInstance?.cpuUsage ?? 0
function openPanel() {
if (pluginApi) {
var result = pluginApi.openPanel(root.screen);
Logger.i("Catwalk", "OpenPanel result:", result);
} else {
Logger.e("Catwalk", "PluginAPI is null");
}
}
function openExternalMonitor() {
Quickshell.execDetached(["sh", "-c", Settings.data.systemMonitor.externalMonitor]);
}
Timer {
interval: Math.max(30, 200 - root.cpuUsage * 1.7)
running: root.isRunning
repeat: true
onTriggered: {
root.frameIndex = (root.frameIndex + 1) % root.icons.length
}
}
Timer {
interval: 400
running: !root.isRunning
repeat: true
onTriggered: {
root.idleFrameIndex = (root.idleFrameIndex + 1) % root.idleIcons.length
}
}
currentIconSource: (root.icons && root.icons.length > 0 && root.idleIcons && root.idleIcons.length > 0)
? (root.isRunning
? Qt.resolvedUrl(root.icons[root.frameIndex % root.icons.length])
: Qt.resolvedUrl(root.idleIcons[root.idleFrameIndex % root.idleIcons.length]))
: ""
Rectangle {
id: visualCapsule
x: Style.pixelAlignCenter(parent.width, width)
y: Style.pixelAlignCenter(parent.height, height)
width: root.contentWidth
height: root.contentHeight
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
color: mouseArea.containsMouse ? Color.mHover : Style.capsuleColor
radius: Math.min((customRadius >= 0 ? customRadius : Style.iRadiusL), width / 2)
border.color: Style.capsuleBorderColor
border.width: Style.capsuleBorderWidth
Behavior on color {
ColorAnimation {
duration: Style.animationNormal
easing.type: Easing.InOutQuad
}
}
Image {
id: iconImage
source: root.currentIconSource
x: Style.pixelAlignCenter(parent.width, width)
y: Style.pixelAlignCenter(parent.height, height)
width: Style.toOdd(visualCapsule.width - Style.marginXS * 2)
height: width
// Render SVG at exact target size for crisp output
sourceSize: Qt.size(width, height)
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: false
// This enables the "mask" behavior to recolor the icon
layer.enabled: true
layer.effect: MultiEffect {
colorization: 1.0
colorizationColor: Settings.data.colorSchemes.darkMode ? "white" : "black"
}
}
}
MouseArea {
id: mouseArea
anchors.fill: parent
cursorShape: root.enabled ? Qt.PointingHandCursor : Qt.ArrowCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
hoverEnabled: true
onEntered: {
root.hovering = true;
if (root.tooltipText) {
TooltipService.show(root, root.tooltipText, root.tooltipDirection);
}
root.entered();
}
onExited: {
root.hovering = false;
if (root.tooltipText) {
TooltipService.hide();
}
root.exited();
}
onClicked: function (mouse) {
if (root.tooltipText) {
TooltipService.hide();
}
Logger.i("Catwalk", "Clicked! API:", !!pluginApi, "Screen:", root.screen ? root.screen.name : "null");
if (!root.enabled && !root.allowClickWhenDisabled) {
return;
}
// Open Panel on left/right click
// Open external monitor on middle click
if (mouse.button === Qt.LeftButton) {
root.openPanel();
root.clicked();
} else if (mouse.button === Qt.RightButton) {
root.openPanel();
root.rightClicked();
} else if (mouse.button === Qt.MiddleButton) {
root.openExternalMonitor();
root.middleClicked();
}
}
onWheel: wheel => root.wheel(wheel.angleDelta.y)
}
}
@@ -0,0 +1,85 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Effects
import Quickshell
import qs.Commons
import qs.Modules.DesktopWidgets
import qs.Widgets
import qs.Services.System
DraggableDesktopWidget {
id: root
property var pluginApi: null
implicitWidth: 200
implicitHeight: 80
showBackground: !(root.pluginApi?.mainInstance?.hideBackground ?? false)
property int frameIndex: 0
readonly property var icons: root.pluginApi?.mainInstance?.icons || []
property int idleFrameIndex: 0
readonly property var idleIcons: root.pluginApi?.mainInstance?.idleIcons || []
readonly property bool isRunning: root.pluginApi?.mainInstance?.isRunning ?? false
readonly property real cpuUsage: root.pluginApi?.mainInstance?.cpuUsage ?? 0
Timer {
interval: Math.max(30, 200 - root.cpuUsage * 1.7)
running: root.isRunning
repeat: true
onTriggered: {
root.frameIndex = (root.frameIndex + 1) % root.icons.length
}
}
Timer {
interval: 400
running: !root.isRunning
repeat: true
onTriggered: {
root.idleFrameIndex = (root.idleFrameIndex + 1) % root.idleIcons.length
}
}
property url currentIconSource: (root.icons && root.icons.length > 0 && root.idleIcons && root.idleIcons.length > 0)
? (root.isRunning
? Qt.resolvedUrl(root.icons[root.frameIndex % root.icons.length])
: Qt.resolvedUrl(root.idleIcons[root.idleFrameIndex % root.idleIcons.length]))
: ""
RowLayout {
anchors.fill: parent
spacing: 5
Image {
id: iconImage
source: root.currentIconSource
Layout.fillHeight: true
Layout.preferredWidth: height
sourceSize.height: height
sourceSize.width: width
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: false
layer.enabled: true
layer.effect: MultiEffect {
colorization: 1.0
colorizationColor: Settings.data.colorSchemes.darkMode ? "white" : "black"
}
}
Text {
text: Math.round(root.cpuUsage) + "%"
color: Settings.data.colorSchemes.darkMode ? "white" : "black"
font.bold: true
font.pixelSize: 40
Layout.alignment: Qt.AlignVCenter
}
}
}
@@ -0,0 +1,18 @@
import QtQuick
import Quickshell
import qs.Services.System
Item {
id: root
property var pluginApi: null
readonly property real minimumThreshold: pluginApi?.pluginSettings?.minimumThreshold || 10
readonly property bool hideBackground: pluginApi?.pluginSettings?.hideBackground ?? false
property real cpuUsage: SystemStatService.cpuUsage
readonly property bool isRunning: cpuUsage >= minimumThreshold
readonly property var icons: ["icons/my-active-0-symbolic.svg", "icons/my-active-1-symbolic.svg", "icons/my-active-2-symbolic.svg", "icons/my-active-3-symbolic.svg", "icons/my-active-4-symbolic.svg"]
readonly property var idleIcons: ["icons/my-idle-0-symbolic.svg", "icons/my-idle-1-symbolic.svg", "icons/my-idle-2-symbolic.svg", "icons/my-idle-3-symbolic.svg"]
}
@@ -0,0 +1,102 @@
import QtQuick
import QtQuick.Effects
import QtQuick.Layouts
import qs.Commons
import qs.Services.System
import qs.Widgets
Item {
id: root
property var pluginApi: null
// SmartPanel properties
readonly property var geometryPlaceholder: panelContainer
readonly property bool allowAttach: true
property real contentPreferredWidth: 300 * Style.uiScaleRatio
property real contentPreferredHeight: 300 * Style.uiScaleRatio
anchors.fill: parent
Rectangle {
id: panelContainer
anchors.fill: parent
color: "transparent"
Rectangle {
anchors.fill: parent
anchors.margins: Style.marginL
color: Color.mSurface
radius: Style.radiusL
border.color: Color.mOutline
border.width: Style.borderS
ColumnLayout {
anchors.centerIn: parent
spacing: Style.marginL
// Big Cat
Item {
id: bigCatItem
Layout.preferredWidth: 128 * Style.uiScaleRatio
Layout.preferredHeight: 128 * Style.uiScaleRatio
Layout.alignment: Qt.AlignHCenter
property int frameIndex: 0
readonly property bool isRunning: root.pluginApi?.mainInstance?.isRunning ?? false
readonly property var icons: root.pluginApi?.mainInstance?.icons || []
property int idleFrameIndex: 0
readonly property var idleIcons: root.pluginApi?.mainInstance?.idleIcons || []
readonly property real cpuUsage: root.pluginApi?.mainInstance?.cpuUsage ?? 0
Timer {
interval: Math.max(30, 200 - bigCatItem.cpuUsage * 1.7)
running: bigCatItem.isRunning
repeat: true
onTriggered: bigCatItem.frameIndex = (bigCatItem.frameIndex + 1) % bigCatItem.icons.length
}
Timer {
interval: 400
running: !bigCatItem.isRunning
repeat: true
onTriggered: bigCatItem.idleFrameIndex = (bigCatItem.idleFrameIndex + 1) % bigCatItem.idleIcons.length
}
Image {
id: bigCatImage
anchors.fill: parent
source: (bigCatItem.icons && bigCatItem.icons.length > 0 && bigCatItem.idleIcons && bigCatItem.idleIcons.length > 0)
? (bigCatItem.isRunning
? Qt.resolvedUrl(bigCatItem.icons[bigCatItem.frameIndex % bigCatItem.icons.length])
: Qt.resolvedUrl(bigCatItem.idleIcons[bigCatItem.idleFrameIndex % bigCatItem.idleIcons.length]))
: ""
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: true
// This handles the programmatic coloring
layer.enabled: true
layer.effect: MultiEffect {
colorization: 1.0
colorizationColor: Settings.data.colorSchemes.darkMode ? "white" : "black"
}
}
}
// CPU Stats
Text {
Layout.alignment: Qt.AlignHCenter
text: (pluginApi?.tr("panel.cpuLabel") || "CPU: {usage}%").replace("{usage}", Math.round(root.pluginApi?.mainInstance?.cpuUsage ?? 0))
font.pointSize: Style.fontSizeXL
font.weight: Font.Bold
color: Settings.data.colorSchemes.darkMode ? "white" : "black"
}
}
}
}
}
@@ -0,0 +1,34 @@
# Catwalk Plugin for Noctalia
A cute animated cat for your Noctalia bar that reacts to your system's CPU usage.
## Features
- **Animated Cat**: The cat walks/runs on your bar based on CPU usage
- **CPU-Based Animation**:
- Below minimum threshold: Shows idle animation with "Zz" bubbles
- Above minimum threshold: Walks faster as CPU usage increases
- Speed scales continuously with CPU load
- **Popup Panel**: Click the cat to open a larger animated version with CPU stats
- **Theme Support**: Automatically switches between light/dark mode icons
- **Configurable Settings**: Adjust the minimum CPU threshold for running animation
## Installation
This plugin is part of the `noctalia-plugins` repository.
## Configuration
Access the plugin settings in Noctalia to configure:
- **Minimum CPU Threshold**: Set the CPU usage percentage (5-25%) above which the cat starts running. Below this, it stays idle with "Zz" animation.
## Usage
- The cat icon appears on your bar
- It automatically animates based on your CPU usage
- Click to open the CPU stats panel
## Requirements
- Noctalia 3.6.0 or later
@@ -0,0 +1,75 @@
import QtQuick
import QtQuick.Layouts
import qs.Widgets
import qs.Commons
ColumnLayout {
id: root
// Plugin API (injected by the settings dialog system)
property var pluginApi: null
// Local state - track changes before saving
property real valueMinimumThreshold: pluginApi?.mainInstance?.minimumThreshold ?? (pluginApi?.pluginSettings?.minimumThreshold || 10)
property bool valueHideBackground: pluginApi?.mainInstance?.hideBackground ?? (pluginApi?.pluginSettings?.hideBackground ?? false)
spacing: Style.marginM
Component.onCompleted: {
Logger.i("Catwalk", "Settings UI loaded");
}
ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginS
NLabel {
label: pluginApi?.tr("settings.minimumThreshold.label") || "Minimum CPU Threshold"
description: pluginApi?.tr("settings.minimumThreshold.description") || "CPU usage must be above this percentage for the cat to start running"
}
NSlider {
id: thresholdSlider
from: 5
to: 25
value: root.valueMinimumThreshold
stepSize: 1
onValueChanged: {
root.valueMinimumThreshold = value
}
}
Text {
text: (pluginApi?.tr("settings.currentThreshold") || "Current threshold: {value}%").replace("{value}", thresholdSlider.value)
color: Color.mOnSurfaceVariant
font.pointSize: Style.fontSizeS
}
}
NToggle {
label: pluginApi?.tr("settings.hideBackground.label") || "Hide Background"
description: pluginApi?.tr("settings.hideBackground.description") || "Hide the background of the desktop widget"
checked: root.valueHideBackground
onToggled: function(checked) {
root.valueHideBackground = checked
}
}
// This function is called by the dialog to save settings
function saveSettings() {
if (!pluginApi) {
Logger.e("Catwalk", "Cannot save settings: pluginApi is null");
return;
}
// Update the plugin settings object
pluginApi.pluginSettings.minimumThreshold = root.valueMinimumThreshold;
pluginApi.pluginSettings.hideBackground = root.valueHideBackground;
// Save to disk
pluginApi.saveSettings();
Logger.i("Catwalk", "Settings saved successfully");
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Aktuelle Schwelle: {value}%",
"hideBackground": {
"description": "Verstecke den Hintergrund des Desktop-Widgets",
"label": "Hintergrund ausblenden"
},
"minimumThreshold": {
"description": "Die CPU-Auslastung muss über diesem Prozentsatz liegen, damit die Katze zu laufen beginnt",
"label": "Minimale CPU-Schwelle"
},
"title": "Catwalk-Einstellungen"
},
"tooltip": {
"running": "Katze läuft",
"sleeping": "Katze schläft"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Current threshold: {value}%",
"hideBackground": {
"description": "Hide the background of the desktop widget",
"label": "Hide Background"
},
"minimumThreshold": {
"description": "CPU usage must be above this percentage for the cat to start running",
"label": "Minimum CPU Threshold"
},
"title": "Catwalk Settings"
},
"tooltip": {
"running": "Cat is running",
"sleeping": "Cat is sleeping"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Umbral actual: {value}%",
"hideBackground": {
"description": "Ocultar el fondo del widget de escritorio",
"label": "Ocultar fondo"
},
"minimumThreshold": {
"description": "El uso de CPU debe estar por encima de este porcentaje para que el gato empiece a correr",
"label": "Umbral mínimo de CPU"
},
"title": "Configuración de Catwalk"
},
"tooltip": {
"running": "El gato está corriendo",
"sleeping": "El gato está durmiendo"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU : {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Seuil actuel : {value}%",
"hideBackground": {
"description": "Masquer l'arrière-plan du widget de bureau",
"label": "Masquer l'arrière-plan"
},
"minimumThreshold": {
"description": "L'utilisation du CPU doit être supérieure à ce pourcentage pour que le chat commence à courir",
"label": "Seuil minimum CPU"
},
"title": "Paramètres Catwalk"
},
"tooltip": {
"running": "Le chat court",
"sleeping": "Le chat dort"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Sétasáv"
},
"settings": {
"currentThreshold": "Aktuális küszöbérték: {value}%",
"hideBackground": {
"description": "Asztali widget hátterének elrejtése",
"label": "Háttér elrejtése"
},
"minimumThreshold": {
"description": "A processzorhasználatnak e fölött a százalék felett kell lennie, hogy a macska futni kezdjen",
"label": "Minimum CPU Küszöbérték"
},
"title": "Catwalk beállítások"
},
"tooltip": {
"running": "A Noctalia fut.",
"sleeping": "A macska alszik"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Soglia attuale: {value}%",
"hideBackground": {
"description": "Nascondi lo sfondo del widget desktop",
"label": "Nascondi sfondo"
},
"minimumThreshold": {
"description": "L'utilizzo della CPU deve essere superiore a questa percentuale affinché il gatto inizi a correre",
"label": "Soglia minima CPU"
},
"title": "Impostazioni Catwalk"
},
"tooltip": {
"running": "Il gatto sta correndo",
"sleeping": "Il gatto sta dormendo"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "現在のしきい値: {value}%",
"hideBackground": {
"description": "デスクトップウィジェットの背景を隠す",
"label": "背景を隠す"
},
"minimumThreshold": {
"description": "猫が走り始めるにはCPU使用率がこの割合を超えている必要があります",
"label": "最小CPUしきい値"
},
"title": "Catwalk設定"
},
"tooltip": {
"running": "猫が走っています",
"sleeping": "猫が寝ています"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Rêwînga pisîkan"
},
"settings": {
"currentThreshold": "Astana niha: {value}%",
"hideBackground": {
"description": "Paşxana wîceta sermaseyê veşêre",
"label": "Veşartina Paşxanê"
},
"minimumThreshold": {
"description": "Divê bikaranîna CPU ji vê rêjeyê bilindtir be da ku pisîk dest bi bezê bike",
"label": "Sînorê herî kêm ê CPU"
},
"title": "Mîhenên Catwalkê"
},
"tooltip": {
"running": "Pisîk direve",
"sleeping": "Pisîk radizê."
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Huidige drempelwaarde: {value}%",
"hideBackground": {
"description": "Verberg de achtergrond van de bureaubladwidget",
"label": "Achtergrond verbergen"
},
"minimumThreshold": {
"description": "CPU-gebruik moet boven dit percentage liggen voordat de kat begint te rennen.",
"label": "Minimale CPU-drempel"
},
"title": "Catwalk Instellingen"
},
"tooltip": {
"running": "Kat rent",
"sleeping": "Kat slaapt"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Wybieg"
},
"settings": {
"currentThreshold": "Aktualny próg: {value}%",
"hideBackground": {
"description": "Ukryj tło widżetu pulpitu",
"label": "Ukryj tło"
},
"minimumThreshold": {
"description": "Użycie CPU musi przekraczać ten procent, aby kot zaczął biegać",
"label": "Minimalny próg użycia CPU"
},
"title": "Ustawienia Catwalk"
},
"tooltip": {
"running": "Kot jest uruchomiony",
"sleeping": "Kot śpi"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Limite atual: {value}%",
"hideBackground": {
"description": "Ocultar o fundo do widget da área de trabalho",
"label": "Ocultar fundo"
},
"minimumThreshold": {
"description": "O uso da CPU deve estar acima desta porcentagem para o gato começar a correr",
"label": "Limite mínimo de CPU"
},
"title": "Configurações do Catwalk"
},
"tooltip": {
"running": "O gato está correndo",
"sleeping": "O gato está dormindo"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Catwalk"
},
"settings": {
"currentThreshold": "Текущий порог: {value}%",
"hideBackground": {
"description": "Скрыть фон виджета рабочего стола",
"label": "Скрыть фон"
},
"minimumThreshold": {
"description": "Использование CPU должно быть выше этого процента, чтобы кот начал бежать",
"label": "Минимальный порог CPU"
},
"title": "Настройки Catwalk"
},
"tooltip": {
"running": "Кот бежит",
"sleeping": "Кот спит"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU: {usage}%",
"title": "Podyum"
},
"settings": {
"currentThreshold": "Mevcut eşik: {value}%",
"hideBackground": {
"description": "Masaüstü bileşeninin arka planını gizle",
"label": "Arka planı gizle"
},
"minimumThreshold": {
"description": "CPU kullanımı, kedinin koşmaya başlaması için bu yüzdeden yüksek olmalıdır.",
"label": "Minimum CPU Eşiği"
},
"title": "Podyum Ayarları"
},
"tooltip": {
"running": "Kedi koşuyor.",
"sleeping": "Kedi uyuyor."
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "ЦП: {usage}%",
"title": "Подіум"
},
"settings": {
"currentThreshold": "Поточний поріг: {value}%",
"hideBackground": {
"description": "Приховати фон віджета робочого столу",
"label": "Приховати фон"
},
"minimumThreshold": {
"description": "Використання ЦП має бути вище цього відсотка, щоб кіт почав бігати.",
"label": "Мінімальний поріг ЦП"
},
"title": "Налаштування подіуму"
},
"tooltip": {
"running": "Кіт біжить",
"sleeping": "Кіт спить"
}
}
@@ -0,0 +1,22 @@
{
"panel": {
"cpuLabel": "CPU:{usage}%",
"title": "猫步"
},
"settings": {
"currentThreshold": "当前阈值:{value}%",
"hideBackground": {
"description": "隐藏桌面小部件的背景",
"label": "隐藏背景"
},
"minimumThreshold": {
"description": "CPU 使用率必须高于此百分比,猫才能开始跑动。",
"label": "最低CPU阈值"
},
"title": "时装秀场布置"
},
"tooltip": {
"running": "猫在跑",
"sleeping": "猫在睡觉"
}
}
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388"
>
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title>RunCat: Frame 0</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title>RunCat: Frame 0</title>
<path style="fill:currentColor"
d="m 321.24,116.28019 c -0.01,-13.464 1.661,-33.778997 -8.15,-35.162997 -9.811,-1.384 -25.074,26.578997 -25.074,26.578997 l -4.43,0.554 c 0,0 3.6,-26.025997 -8.86,-23.256997 -12.46,2.769 -27.687,41.810997 -27.687,41.810997 0,0 -5.538,4.429 -9.414,18.3 -3.876,13.871 -18.55,14.09 -42.915,11.045 -24.365,-3.045 -47.345,17.443 -47.345,17.443 -22.15,-0.831 -40.977,2.215 -55.374,7.752 -14.397,5.537 -32.117,23.811 -55.375,22.15 -23.258,-1.661 -34.332,2.492 -32.947,10.521 1.385,8.029 9.413,9.414 22.426,10.8 13.013,1.386 44.853,-7.476 65.342,-19.381 a 78.147,78.147 0 0 1 41.53,-10.143 c -2.768,24.19 6.646,21.218 5.538,45.029 -1.108,23.811 8.583,46.791 24.365,59.527 15.782,12.736 21.6,6.091 22.149,-1.661 0.549,-7.752 -15.781,-27.687 -16.335,-35.44 -0.554,-7.753 9.137,-1.384 10.244,0.554 1.107,1.938 16.889,17.166 29.9,20.489 13.011,3.323 7.2,-15.782 2.492,-27.134 -4.708,-11.352 3.6,-22.15 19.1,-24.641 15.5,-2.491 22.7,5.814 19.658,16.058 -3.042,10.244 -4.153,24.919 8.86,24.088 13.013,-0.831 34.332,-32.117 35.993,-50.668 1.661,-18.551 4.153,-28.794 16.059,-32.67 11.906,-3.876 33.5,-15.782 33.5,-37.932 0,-22.15 -23.25,-34.61 -23.25,-34.61 z m -46.722,1.107 c -1.592,6.091 -16.4,11.144 -16.4,11.144 0,0 1.873,-21.665 17.862,-26.28 a 43.462,43.462 0 0 1 -1.462,15.136 z m 16.182,39.385 c -5.433,0 -9.85,-5.237 -9.85,-11.673 0,-6.436 4.417,-11.671 9.85,-11.671 5.433,0 9.85,5.235 9.85,11.671 0,6.436 -4.418,11.673 -9.85,11.673 z m 21.311,-43.907 c -4.155,-2.006 -6.5,-3.074 -10.883,-3.517 0,0 2.808,-11.618997 11.345,-14.110997 a 36.68,36.68 0 0 1 -0.462,17.627997 z m 11.6,40.931 c -5.433,0 -9.85,-5.223 -9.85,-11.644 0,-6.421 4.419,-11.648 9.852,-11.648 5.433,0 9.847,5.225 9.847,11.646 0,6.421 -4.418,11.646 -9.847,11.646 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388"
viewBox="0 0 388 388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title>RunCat: Frame 1</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title>RunCat: Frame 1</title>
<path style="fill:currentColor"
d="m 327.054,197.34487 1.662,-4.153 c 35.162,-4.43 46.517,-27.359 44.671,-42.219 -1.938,-15.6 -17.815,-29.352 -23.629,-31.705 0,0 4.43,-34.885998 -5.261,-34.885998 -11.365,0 -26.856,26.578998 -26.856,26.578998 h -4.153 c 0,0 -0.277,-24.363998 -7.2,-24.086998 -14.939,0.6 -31.01,42.083998 -31.01,42.083998 -3.6,3.876 -4.43,13.29 -14.951,24.088 -10.521,10.798 -36.244,9.357 -56.733,9.08 -20.489,-0.277 -40.724,16.669 -40.724,16.669 -6.368,0 -24.088,-3.323 -39.316,-4.43 -15.228,-1.107 -47.345,0.831 -55.928,1.938 -8.583,1.107 -60.358,12.459 -57.312,23.811 3.046,11.352 24.364,4.153 50.113,0 25.749,-4.153 65.342,-4.43 74.756,-1.384 9.414,3.046 -1.385,20.488 -18.551,25.2 -17.166,4.712 -32.117,22.421 -39.592,30.452 -7.475,8.031 -14.4,23.257 1.938,24.088 16.338,0.831 32.117,-16.613 39.869,-19.381 7.752,-2.768 2.215,8.306 -0.554,15.227 -2.769,6.921 -6.368,28.518 4.984,29.349 11.352,0.831 28.8,-25.472 32.117,-30.179 3.317,-4.707 18,-11.352 21.319,-14.4 3.319,-3.048 12.183,-12.46 12.183,-12.46 0,0 32.394,-0.83 48.729,-3.876 16.335,-3.046 31.84,-15.5 40.146,-16.612 8.306,-1.112 19.935,7.2 22.981,9.414 3.046,2.214 25.749,15.781 37.1,18.55 11.351,2.769 12.46,-12.182 12.46,-12.182 0,0 9.967,4.983 15.5,-6.368 5.533,-11.351 -38.758,-38.207 -38.758,-38.207 z m -28.425,-72.171 c -2.492,3.415 -12,4.984 -12,4.984 0,0 6.46,-19.2 16.8,-23.35 1.753,9.414 -1.739,14.174 -4.8,18.366 z m 53.251,7.5 c 5.5,0 9.967,5.578 9.967,12.459 0,6.881 -4.462,12.459 -9.967,12.459 -5.505,0 -9.967,-5.578 -9.967,-12.459 0,-6.881 4.462,-12.451 9.967,-12.451 z m -11.014,-32.22 c 0.655,6.977 -2.275,14.593 -2.275,14.593 a 30.833,30.833 0 0 0 -8.971,-1.753 c 4.614,-9.183 7.863,-11.931 11.246,-12.84 z m -22.118,58.868 c -5.5,0 -9.967,-5.579 -9.967,-12.46 0,-6.881 4.462,-12.459 9.967,-12.459 5.505,0 9.968,5.578 9.968,12.459 0,6.881 -4.463,12.46 -9.968,12.46 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388"
viewBox="0 0 388 388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title>RunCat: Frame 2</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title>RunCat: Frame 2</title>
<path style="fill:currentColor"
d="m 382.705,182.19956 c 4.43,-19.381 -18,-37.654 -18,-37.654 0,0 6.645,-31.148 0,-33.779 -11.665,-4.617 -30.733,22.427 -30.733,22.427 l -4.707,-0.831 c 5.123,-32.531999 -5.676,-26.3 -18.965,-14.4 -13.289,11.9 -25.334,36.27 -33.917,44.3 -8.583,8.03 -18.827,5.26 -38.208,-3.887 -19.381,-9.147 -42.085,-6.081 -50.668,-1.374 -8.583,4.707 -15.777,1.941 -15.777,1.941 0,0 -24.642,-17.443 -32.394,-20.765 -7.752,-3.322 -28.518,-12.736 -53.99,-13.29 -25.472,-0.554 -46.792,9.967 -46.792,9.967 -10.521,9.137 1.385,16.889 12.737,14.4 11.352,-2.489 38.208,-6.092 56.758,-1.939 18.55,4.153 46.791,25.2 46.238,31.287 -0.553,6.087 -12.09,16.8 -25.2,19.658 -12.9,2.815 -48.175,29.071 -49.283,42.638 -1.108,13.567 14.4,14.4 29.626,6.645 15.226,-7.755 26.856,-1.384 26.856,-1.384 -14.12,13.843 -15.5,30.732 -3.6,33.224 11.9,2.492 22.149,-9.69 37.1,-23.257 14.951,-13.567 29.9,-19.935 53.437,-17.166 23.537,2.769 60.911,-0.554 60.911,-0.554 9.968,9.691 42.915,30.179 55.1,35.993 12.185,5.814 25.749,2.492 27.41,-3.6 1.661,-6.092 -16.612,-20.765 -14.951,-24.641 1.661,-3.876 19.461,3.225 26.411,-7.1 6.4,-9.509 -26.134,-24.46 -31.4,-25.844 -5.266,-1.384 -2.215,-5.814 -2.215,-5.814 17.451,-1.667 33.787,-5.82 38.216,-25.201 z m -18.39,-23.248 c 5.561,0 10.069,5.279 10.069,11.79 0,6.511 -4.508,11.79 -10.069,11.79 -5.561,0 -10.068,-5.278 -10.068,-11.79 0,-6.512 4.508,-11.79 10.068,-11.79 z m -4.728,-35.033 c 0,0 1.28,6.61 -5.019,15.47 a 48.782,48.782 0 0 0 -9.056,-3.089 c 0,0 8.26,-11.689 14.075,-12.381 z m -47.207,20.627 c -3.2,2.628 -10.936,3.184 -10.936,3.184 0,0 5.587,-16.156 19.084,-21.763 -0.277,8.583 -1.872,13.422 -8.148,18.579 z m 19.566,35.506 c -6.015,0 -10.89,-5.608 -10.89,-12.526 0,-6.918 4.875,-12.526 10.89,-12.526 6.015,0 10.89,5.608 10.89,12.526 0,6.918 -4.876,12.526 -10.89,12.526 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388"
viewBox="0 0 388 388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title>RunCat: Frame 3</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title>RunCat: Frame 3</title>
<path style="fill:currentColor"
d="m 364.709,159.58645 c 0,0 13.013,-29.833 4.983,-32.117 -15.7,-4.465 -32.344,14.823 -32.344,14.823 l -4.018,-0.887 c 0,0 3.415,-14.766 2.861,-21.688 -0.554,-6.922 -18.55,0.83 -28.795,9.413 -10.245,8.583 -29.9,36.271 -41.807,41.531 -11.907,5.26 -25.472,-13.013 -43.746,-26.026 -18.274,-13.013 -44.576,-2.492 -44.576,-2.492 -4.43,-1.384 -11.075,-13.566 -24.088,-26.3 C 140.166,103.10945 126.6,93.137455 96.7,88.153455 c -29.9,-4.984 -44.166,4.789 -42.5,11.157 1.666,6.367995 4.3,6.147995 38.352,9.331995 39.125,3.658 50.114,23.534 59.528,34.886 9.414,11.352 -3.046,22.7 -13.844,38.208 -10.798,15.508 -6.922,26.3 -4.984,39.316 1.938,13.016 13.567,16.335 15.5,35.162 1.933,18.827 6.645,25.2 18.551,21.043 11.636,-4.06 6.876,-43.539 6.655,-45.322 0.112,0.294 1.322,0.967 13,-4.515 13.567,-6.368 26.857,3.322 44.3,7.752 17.443,4.43 30.179,-0.277 34.609,9.691 8.9,20.018 23.257,45.13 40.7,53.99 17.443,8.86 20.765,-8.86 14.674,-16.059 -6.091,-7.199 -7.2,-19.1 -7.2,-19.1 34.885,4.984 43.191,-1.661 44.3,-10.244 1.109,-8.583 -17.72,-13.29 -26.857,-18 -9.137,-4.71 -2.768,-12.182 -2.768,-12.182 29.071,-3.323 45.868,-11.352 48.452,-32.394 2.143,-17.453 -12.459,-31.288 -12.459,-31.288 z m -62.3,-8.029 c 0,0 10.429,-15.874 22.242,-19.012 0,0 -0.554,11.352 -5.907,15.69 -6.296,5.105 -16.331,3.324 -16.331,3.324 z m 26.026,37.008 c -5.811,0 -10.521,-5.33 -10.521,-11.905 0,-6.575 4.71,-11.906 10.521,-11.906 5.811,0 10.521,5.331 10.521,11.906 0,6.575 -4.707,11.905 -10.517,11.905 z m 34.516,-49.744 c 0.018,3.471 -4.4,12.116 -6.959,13.62 a 16.906,16.906 0 0 0 -7.883,-4.3 c 1.756,-2.193 8.571,-9.345 14.846,-9.32 z m -2.857,55.638 c -5.084,0 -9.206,-4.913 -9.206,-10.974 0,-6.061 4.122,-10.973 9.206,-10.973 5.084,0 9.207,4.913 9.207,10.973 0,6.06 -4.122,10.974 -9.207,10.974 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388"
viewBox="0 0 388 388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title>RunCat: Frame 4</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title>RunCat: Frame 4</title>
<path style="fill:currentColor"
d="m 328.854,134.31128 c 0,0 9.967,-30.872 0.692,-34.194 -9.275,-3.322 -29.487,19.1 -29.487,19.1 l -4.983,-1.107 c 2.907,-25.057 0.277,-27.411 -14.536,-16.474 -14.813,10.937 -26.58,30.871 -29.625,34.055 -3.045,3.184 -5.953,14.951 -33.5,1.246 -27.547,-13.705 -44.714,-5.814 -60.635,-1.938 -15.921,3.876 -50.113,22.565 -68.941,29.763 -18.828,7.198 -37.931,4.154 -42.084,3.461 -4.153,-0.693 -23.4,-15.228 -30.594,-7.337 -7.194,7.891 0.692,16.336 8.583,22.7 7.891,6.364 27.272,9 43.745,8.444 16.473,-0.556 65.9,-18.273 65.9,-18.273 2.815,3.922 0.877,2.722 1.984,15.274 1.107,12.552 15.874,24 19.75,28.61 3.876,4.61 0.923,9.783 1.661,21.6 0.738,11.817 12,11.444 21.781,11.444 9.781,0 13.29,5.537 15.136,9.783 1.846,4.246 5.168,10.152 15.5,10.152 10.332,0 12.182,-4.061 14.951,-8.122 2.769,-4.061 12,-8.122 16.243,-7.752 4.243,0.37 7.014,21.042 11.259,28.24 4.245,7.198 19.75,11.26 22.519,9.045 2.769,-2.215 6.091,-3.323 1.292,-19.012 -4.799,-15.689 -1.292,-39.685 0.185,-47.253 1.477,-7.568 3.137,-18.458 30.271,-23.626 27.134,-5.168 40.608,-18.458 40.608,-36.178 0,-17.72 -17.675,-31.651 -17.675,-31.651 z m -49.468,-5.584 a 15.8,15.8 0 0 1 -11.905,3.921 c 0,0 7.752,-15.827 18.92,-18.412 -0.001,0.001 0.83,7.523 -7.015,14.491 z m 15.644,37.847 c -5.709,0 -10.337,-5.131 -10.337,-11.46 0,-6.329 4.628,-11.46 10.337,-11.46 5.709,0 10.336,5.131 10.336,11.46 0,6.329 -4.628,11.46 -10.336,11.46 z m 16.7,-41.908 c 0,0 7.16,-9.46 11.52,-10.429 0.277,5.446 -0.807,10.106 -4.453,13.8 a 26.262,26.262 0 0 0 -7.07,-3.371 z m 16.9,47.077 c -5.1,0 -9.229,-4.787 -9.229,-10.693 0,-5.906 4.132,-10.693 9.229,-10.693 5.097,0 9.229,4.788 9.229,10.693 0,5.905 -4.139,10.698 -9.236,10.698 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<path style="fill:currentColor"
d="M 365.652,223.08199 c 0,0 11.752,-20.337 9.131,-34.046 -1.842,-9.637 -31.391,18.589 -31.391,18.589 l -6.092,-1.557 c 0,0 8.033,-29.068 0.383,-30.981 -7.65,-1.913 -29.451,15.3 -41.308,30.981 0,0 -20.654,5.119 -29.068,31.437 -8.414,26.318 -45.515,-29.142 -58.52,-37.939 -13.005,-8.797 -28.685,-26.773 -70.376,-13.769 -41.690997,13.004 -54.688997,34.988 -54.693997,53.549 0,15.3 2.677,22.184 -1.53,28.686 0,0 -47.427,-4.972 -43.6,-43.6 3.827,-38.628 32.129,-32.511 36.718,-32.893 4.589,-0.382 14.152,-4.972 12.24,-16.447 -1.912,-11.475 -19.51,-16.832 -33.279,-11.477 -13.769,5.355 -43.6,19.124 -43.6,61.579 0,42.455 25.626,61.937 69.229,74.966 43.602997,13.029 104.413997,13.025 123.533997,13.025 19.12,0 125.453,2.27 132.72,-5.762 0,0 41.251,-12.68 41.251,-44.347 0.004,-25.239 -3.591,-31.012 -11.748,-39.991 z M 326.829,202.74698999999998 c 0,0 -5.915,-2.07 -14.787,0 0,0 10.942,-11.534 14.787,-11.534 3.845,0 0,11.534 0,11.534 z M 358.53700000000003,217.33299 c -1.774,-2.366 -6.323,-4.549 -6.323,-4.549 0,0 8.775,-7.195 9.366,-5.124 0.591,2.071 -3.042,9.673 -3.042,9.673 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<path style="fill:currentColor"
d="M 365.652,223.08199 c 0,0 11.752,-20.337 9.131,-34.046 -1.842,-9.637 -31.391,18.589 -31.391,18.589 l -6.092,-1.557 c 0,0 8.033,-29.068 0.383,-30.981 -7.65,-1.913 -29.451,15.3 -41.308,30.981 0,0 -20.654,5.119 -29.068,31.437 -8.414,26.318 -45.515,-29.142 -58.52,-37.939 -13.005,-8.797 -28.685,-26.773 -70.376,-13.769 -41.690997,13.004 -54.688997,34.988 -54.693997,53.549 0,15.3 2.677,22.184 -1.53,28.686 0,0 -47.427,-4.972 -43.6,-43.6 3.827,-38.628 32.129,-32.511 36.718,-32.893 4.589,-0.382 14.152,-4.972 12.24,-16.447 -1.912,-11.475 -19.51,-16.832 -33.279,-11.477 -13.769,5.355 -43.6,19.124 -43.6,61.579 0,42.455 25.626,61.937 69.229,74.966 43.602997,13.029 104.413997,13.025 123.533997,13.025 19.12,0 125.453,2.27 132.72,-5.762 0,0 41.251,-12.68 41.251,-44.347 0.004,-25.239 -3.591,-31.012 -11.748,-39.991 z M 326.829,202.74698999999998 c 0,0 -5.915,-2.07 -14.787,0 0,0 10.942,-11.534 14.787,-11.534 3.845,0 0,11.534 0,11.534 z M 358.53700000000003,217.33299 c -1.774,-2.366 -6.323,-4.549 -6.323,-4.549 0,0 8.775,-7.195 9.366,-5.124 0.591,2.071 -3.042,9.673 -3.042,9.673 z M 269.042,141.19398999999999 v -7.225 h 30.575 v 7.383 l -18.971,19.281 h 19.645 v 7.289 h -32.6 v -6.915 l 19.168,-19.811 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<path style="fill:currentColor"
d="M 365.652,223.08199 c 0,0 11.752,-20.337 9.131,-34.046 -1.842,-9.637 -31.391,18.589 -31.391,18.589 l -6.092,-1.557 c 0,0 8.033,-29.068 0.383,-30.981 -7.65,-1.913 -29.451,15.3 -41.308,30.981 0,0 -20.654,5.119 -29.068,31.437 -8.414,26.318 -45.515,-29.142 -58.52,-37.939 -13.005,-8.797 -28.685,-26.773 -70.376,-13.769 -41.690997,13.004 -54.688997,34.988 -54.693997,53.549 0,15.3 2.677,22.184 -1.53,28.686 0,0 -47.427,-4.972 -43.6,-43.6 3.827,-38.628 32.129,-32.511 36.718,-32.893 4.589,-0.382 14.152,-4.972 12.24,-16.447 -1.912,-11.475 -19.51,-16.832 -33.279,-11.477 -13.769,5.355 -43.6,19.124 -43.6,61.579 0,42.455 25.626,61.937 69.229,74.966 43.602997,13.029 104.413997,13.025 123.533997,13.025 19.12,0 125.453,2.27 132.72,-5.762 0,0 41.251,-12.68 41.251,-44.347 0.004,-25.239 -3.591,-31.012 -11.748,-39.991 z M 326.829,202.74698999999998 c 0,0 -5.915,-2.07 -14.787,0 0,0 10.942,-11.534 14.787,-11.534 3.845,0 0,11.534 0,11.534 z M 358.53700000000003,217.33299 c -1.774,-2.366 -6.323,-4.549 -6.323,-4.549 0,0 8.775,-7.195 9.366,-5.124 0.591,2.071 -3.042,9.673 -3.042,9.673 z M 269.042,141.19398999999999 v -7.225 h 30.575 v 7.383 l -18.971,19.281 h 19.645 v 7.289 h -32.6 v -6.915 l 19.168,-19.811 z M 218.504,85.393992 v -10.809 h 40.16 v 11.042 l -24.918,28.837998 h 25.8 v 10.9 h -42.812 v -10.341 l 25.172,-29.629998 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
height="388"
width="388">
<defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff
}
</style>
</defs>
<path style="fill:currentColor"
d="M 365.652,223.08199 c 0,0 11.752,-20.337 9.131,-34.046 -1.842,-9.637 -31.391,18.589 -31.391,18.589 l -6.092,-1.557 c 0,0 8.033,-29.068 0.383,-30.981 -7.65,-1.913 -29.451,15.3 -41.308,30.981 0,0 -20.654,5.119 -29.068,31.437 -8.414,26.318 -45.515,-29.142 -58.52,-37.939 -13.005,-8.797 -28.685,-26.773 -70.376,-13.769 -41.690997,13.004 -54.688997,34.988 -54.693997,53.549 0,15.3 2.677,22.184 -1.53,28.686 0,0 -47.427,-4.972 -43.6,-43.6 3.827,-38.628 32.129,-32.511 36.718,-32.893 4.589,-0.382 14.152,-4.972 12.24,-16.447 -1.912,-11.475 -19.51,-16.832 -33.279,-11.477 -13.769,5.355 -43.6,19.124 -43.6,61.579 0,42.455 25.626,61.937 69.229,74.966 43.602997,13.029 104.413997,13.025 123.533997,13.025 19.12,0 125.453,2.27 132.72,-5.762 0,0 41.251,-12.68 41.251,-44.347 0.004,-25.239 -3.591,-31.012 -11.748,-39.991 z M 326.829,202.74698999999998 c 0,0 -5.915,-2.07 -14.787,0 0,0 10.942,-11.534 14.787,-11.534 3.845,0 0,11.534 0,11.534 z M 358.53700000000003,217.33299 c -1.774,-2.366 -6.323,-4.549 -6.323,-4.549 0,0 8.775,-7.195 9.366,-5.124 0.591,2.071 -3.042,9.673 -3.042,9.673 z M 218.504,85.393992 v -10.809 h 40.16 v 11.042 l -24.918,28.837998 h 25.8 v 10.9 h -42.812 v -10.341 l 25.172,-29.629998 z"
class="ColorScheme-Text"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,32 @@
{
"id": "catwalk",
"name": "Catwalk",
"version": "1.1.7",
"minNoctaliaVersion": "3.6.0",
"author": "MannuVilasara",
"license": "MIT",
"repository": "https://github.com/noctalia-dev/noctalia-plugins",
"description": "A cute animated cat for your bar.",
"tags": [
"Bar",
"Desktop",
"Panel",
"Fun"
],
"entryPoints": {
"main": "Main.qml",
"barWidget": "BarWidget.qml",
"desktopWidget": "DesktopWidget.qml",
"panel": "Panel.qml",
"settings": "Settings.qml"
},
"dependencies": {
"plugins": []
},
"metadata": {
"defaultSettings": {
"minimumThreshold": 10,
"hideBackground": false
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

@@ -0,0 +1,4 @@
{
"minimumThreshold": 10,
"hideBackground": false
}
@@ -0,0 +1,75 @@
import QtQuick
import Quickshell
import qs.Commons
import qs.Services.UI
import qs.Widgets
NIconButton {
id: root
property var pluginApi: null
property ShellScreen screen
property string widgetId: ""
property string section: ""
property int sectionWidgetIndex: -1
property int sectionWidgetsCount: 0
baseSize: Style.getCapsuleHeightForScreen(screen?.name)
applyUiScale: false
icon: "keyboard"
tooltipText: pluginApi?.tr("barwidget.tooltip")
tooltipDirection: BarService.getTooltipDirection(screen?.name)
customRadius: Style.radiusL
colorBg: Style.capsuleColor
colorFg: Color.mOnSurface
colorBgHover: Color.mHover
colorFgHover: Color.mOnHover
colorBorder: "transparent"
colorBorderHover: "transparent"
border.color: Style.capsuleBorderColor
border.width: Style.capsuleBorderWidth
NPopupContextMenu {
id: contextMenu
model: [
{
"label": pluginApi?.tr("barwidget.open"),
"action": "open-panel",
"icon": "keyboard"
},
{
"label": pluginApi?.tr("barwidget.settings"),
"action": "plugin-settings",
"icon": "settings"
},
]
onTriggered: action => {
contextMenu.close();
PanelService.closeContextMenu(screen);
if (action === "open-panel") {
if (pluginApi) {
pluginApi.openPanel(screen);
}
} else if (action === "plugin-settings") {
if (pluginApi) {
BarService.openPluginSettings(screen, pluginApi.manifest);
}
}
}
}
onClicked: {
if (pluginApi) {
pluginApi.openPanel(screen);
}
}
onRightClicked: {
PanelService.showContextMenu(contextMenu, root, screen);
}
}
@@ -0,0 +1,284 @@
# Changelog
## [3.7.3] - 2026-05-25
### Fixes
- **Niri: descriptions invisible on light/transparent backgrounds.** Since v3.5.0 the description text color defaulted to a hardcoded `#E0E0E0` (light gray), which is unreadable on light wallpapers shining through a transparent panel. Default is now empty → falls back to `Color.mOnSurface` (theme-aware, always readable). Existing users with a baked-in `#E0E0E0` in their `settings.json` should hit **Reset** on the Description color in Settings → Appearance to pick up the theme-aware default. Reported by @porcaror (#884)
- **MangoWC: `binds=` / `axisbinds=` / `mousebinds=` (plural) directives now parsed.** MangoWC has two directive families: singular (keycode, QWERTY-mapped) and plural (keysym, layout-aware — used by AZERTY and other non-QWERTY layouts). The parser previously only matched the singular form, so AZERTY configs showed no binds. Both forms are now recognised. Reported by @Pintjebier (#881)
## [3.7.2] - 2026-05-21
### Fixes
- **Settings panel was rendering empty**: `Settings.qml` and `ColorPairRow.qml` reference sibling files (`ColorPairRow`, `ColorPill`) but Quickshell's `NPluginSettingsPopup` loads Settings via `Loader.setSource(file://...)` without adding the plugin directory to the implicit import list. The QML engine threw `ColorPairRow is not a type`, aborting the load. Added `import "."` to both files so the sibling components resolve. Reported by @ajgringo619 (#862)
- **Hyprland Lua: split configs lost their category headers** (`require("modules.keybinds")` resolved as `modules.keybinds.lua` instead of `modules/keybinds.lua`). Lua's `require` treats dots as path separators; the parser now converts them before resolving, so configs that split binds into submodules — e.g. `hyprland.lua` -> `require("modules.keybinds")` -> `modules/keybinds.lua` — pick up their `-- N. CATEGORY` headers and binds land in the correct categories instead of all falling into "Other". Reported by @ajgringo619 (#862)
## [3.7.1] - 2026-05-20
### Fixes
- Settings: fix `ReferenceError: rootItem is not defined` in the bind-override management section — the override counter, **Restore hidden**, and **Clear all overrides** buttons were broken because of stale `rootItem` references after the `id` rename
- Settings: use the native `tr(key, interpolations)` API for the overrides summary line instead of chained `.replace()` calls (review feedback from @spiros132)
## [3.7.0] - 2026-05-17
### Features
**Hyprland Lua config support (`hyprland.lua`)**
- Hyprland 0.55+ replaces hyprlang `.conf` with a Lua config. Added a second Hyprland parsing tor that queries `hyprctl binds -j` for the authoritative, already-evaluated bind list — correctly handling `require()`, `for` loops, and multi-key chords that cannot be recovered by static text parsing
- Categories are recovered by lightly scanning `hyprland.lua` (and its `require()` modules) for `-- N. NAME` headers and `description = "..."` literals, with a prefix heuristic for loop-generated binds (e.g. `"Workspace " .. i`)
- Parser mode setting `auto` / `lua` / `conf`: `auto` uses the Lua tor when `hyprland.lua` exists, otherwise the existing `.conf` parser
- The legacy hyprlang `.conf` parser is **kept unchanged as a fallback** for users still on hyprlang configs
**Add description / hide binds without a description**
- Binds with no description are surfaced in a dedicated "Without Description" section instead of being dropped
- Each undescribed bind can be given a custom description inline, or hidden, directly from the panel
- Overrides are keyed by a stable bind identity (`submap|modmask|key|flags|dispatcher`) that excludes the unstable `__lua` registry ref, so they survive Hyprland restarts
- New settings: `showUndescribedBinds`, an override summary, "Restore hidden" and "Clear all overrides" actions
**`refresh` IPC**
- Added `refresh` to the plugin IPC handler so the cheatsheet can be re-parsed from a keybind, e.g. `qs ipc call plugin:keybind-cheatsheet refresh`
### Bug Fixes
- Fixed a `text` binding loop on the window-height settings input (now seeded once via `Component.onCompleted`)
- Replaced hardcoded `font.pointSize` in bind rows with `Style.fontSizeXS`
### Notes
- This release bundles the color-customization, MangoWC-support and Niri parser work previously tracked separately (see the 3.5.0–3.6.2 entries below) together with the Hyprland Lua support, shipped as a single 3.7.0 release.
---
## [3.6.2] - 2026-04-29
### i18n
- Translate "no description" fallback label for undescribed MangoWC binds — was hardcoded `"(no description)"`, now uses `panel.no-description` translation key across all 20 locale files (addresses review feedback from @spiros132 on PR #725).
---
## [3.6.1] - 2026-04-26
### MangoWC Parser Regression Fixes
Addresses review feedback on PR #725 from @countgitmick.
- **XF86 media keys now formatted:** `formatMangoKeyCombo` calls `formatSpecialKey`, so `XF86AudioRaiseVolume` renders as "Vol Up", `XF86AudioMute` as "Mute", brightness keys as "Bright Up/Down", etc.
- **Stray `#` comments no longer become categories:** `extractMangoCategory` restored filters — length cap of 100 chars, horizontal-rule strip (`────`, `====`, `----`), numbered-list extraction (`1. Foo` → `Foo`), paren/bracket continuation reject, flow-arrow reject (`→`, `->`, `=>`), keyword-prefixed notes reject (TODO/FIXME/NOTE/HACK/XXX/BUG/WIP).
- **Per-bind `#"description"` suffix preserved:** `findMangoUnquotedComment` skips past `#"`, and `parseMangoConfig` extracts the trailing quoted description so `bind=SUPER,T,exec,foo #"Open terminal"` keeps "Open terminal" as the rendered description.
- **Modifier aliases:** `LOGO` (= SUPER) and `MOD1` (= ALT) are now recognized as valid Mango modifier tokens.
- **Default category localized:** the fallback category for `bind=`/`axisbind=`/`mousebind=` lines without a preceding `# Category` now uses `pluginApi.tr("default-category")` instead of hardcoded "General"/"Mouse".
- **Category detection actually runs now:** moved category extraction into the pure-comment branch so `# Title` lines actually update `currentCategory` (previously dead code path).
---
## [3.5.0] - 2026-04-21
### New Features
**Full Per-Category Color Customization**
- Added background and text color pickers for every key category: `Super`, `Ctrl`, `Shift`, `Alt`, `XF86`, `Print`, numeric, mouse, and default letter keys — plus the description text color
- 9 new `keyText*` settings (`keyTextSuper`, `keyTextCtrl`, …) let the label text of every category be themed independently of the background
- `keyColorSuper`, `keyColorCtrl`, `keyColorShift` use an empty-string sentinel to mean "use Material theme accent" (`mPrimary` / `mSecondary` / `mTertiary`), so themed setups remain untouched unless the user deliberately overrides
**Redesigned Color Picker UI**
- Two-pill layout per category: left pill previews the background, right pill previews the label text on that background
- Single click anywhere on a pill opens `NColorPickerDialog`
- Pencil-icon edit affordance removed — the entire pill is the control
- Per-row reset button clears the override and restores the theme default
- New "Reset all colors" button zeroes out all 20+ color overrides in one action
**Clipboard Quick-Paste**
- When a valid `#RRGGBB` or `#RRGGBBAA` hex is detected in the clipboard (via `wl-paste`, polled every 1500 ms), a paste icon appears inside each pill
- Clicking the icon applies the clipboard hex to that pill immediately, no picker dialog required
- A new hint row above the color pickers tells the user about this behavior
**Live Preview + Revert on Cancel**
- Color changes are reflected in the preview row immediately via `_applyPreview(key, value)` instead of only after Save
- A snapshot is taken on `Component.onCompleted`; closing the Settings panel without clicking Save restores the snapshot in `Component.onDestruction`, so cancelled edits are truly reverted
### Bug Fixes
**Ctrl / Shift now actually customizable**
- Previously `keyColorCtrl` / `keyColorShift` could not be overridden; the panel always fell back to `Color.mPrimaryContainer` (which does not exist on this shell build). Fixed by consistently honoring the empty-string override sentinel and falling back to `mPrimary` / `mSecondary` / `mTertiary`
- Removed stray references to `Color.mPrimaryContainer` that produced undefined colors at runtime
**Panel opacity now matches other plugins**
- Switched the Panel from painting its own opaque background to the standard plugin panel-in-panel pattern used by `tailscale` and `hello-world`, so the keybind panel now inherits the user's shell opacity/blur settings correctly
### Code Quality
**Component extraction**
- Extracted `ColorPill.qml` (single background/text pill with clipboard paste + picker dialog) and `ColorPairRow.qml` (label + bg pill + text pill + reset) from the Settings surface. Settings.qml is now noticeably smaller and each pill row is a single declarative `ColorPairRow { ... }`
**Edit-copy discipline + i18n**
- Extended the edit-copy pattern to all 20+ color/text settings — `valueKeyColor*` / `valueKeyText*` properties are the source of truth during edit, `saveSettings()` writes them into `pluginSettings` and calls `pluginApi.saveSettings()`
- The hardcoded `qs … ipc call …` example now lives in `settings.keybind-ipc-command` so it is translation-system-backed like every other string
- Removed the last `|| "auto"` fallback strings in `ColorPairRow.qml`; the translation system handles missing keys
- New i18n keys `panel.search-placeholder`, `settings.color-auto`, `settings.color-paste-hint`, `settings.keybind-ipc-command` localized across all 20 supported languages
**Cleanup**
- Timer and Process objects (clipboard poll + `wl-paste` Process) are stopped/terminated in `Component.onDestruction`
- Unified empty-string-or-hex property types for overrides (`string` for overrides, `color` for non-optional defaults), preventing QML's implicit `color` coercion from turning `""` into `#000000`
### Manifest
- Version bumped to `3.5.0`
- `metadata.defaultSettings` gains 20+ new color defaults covering every per-category override plus `keyLabelColor` and `descriptionTextColor`
- `windowHeight` default corrected from `0` to `850` so the manual-height branch has a sensible initial value
- Tags extended with `Hyprland` and `Niri` for plugin-catalog search filtering
---
## [3.4.0] - 2026-04-07
### Bug Fixes
**Settings unreachable from panel button**
- Fixed critical bug where clicking the settings button (top-right of the keybind panel) blocked all input in the settings window
- The panel now closes before opening settings, preventing the open panel from intercepting mouse events
- Reported by Discord users: editing width/height was impossible when settings were opened this way
**Settings not saved when opened from panel**
- Fixed settings changes being silently discarded when the settings window was opened via the panel button
- `saveSettings()` was declared on an inner `ColumnLayout` instead of the root `Item`, making it invisible to the Noctalia shell
- With the previous direct-mutation approach this went unnoticed; after switching to the edit-copy pattern saves now work correctly from all entry points
### Code Quality
**Settings: edit-copy pattern**
- Replaced direct `pluginSettings` mutation in `onTextChanged` handlers with proper edit-copy properties (`editWindowWidth`, `editWindowHeight`, `editAutoHeight`, `editColumnCount`, `editModKeyVariable`, `editHyprlandConfigPath`, `editNiriConfigPath`)
- Changes are committed to `pluginSettings` only when the user clicks Save, matching Noctalia plugin conventions
**i18n: corrected structure**
- Removed `"keybind-cheatsheet"` top-level wrapper from all 20 language JSON files
- Removed `"keybind-cheatsheet."` prefix from all 50 `tr()` calls across all QML files
- Structure now matches the Noctalia plugin i18n specification
**Removed dead code**
- Deleted unused `parseNiriConfig()` function (118 lines) superseded by `parseNiriFileContent()` in v3.1.0
**Shell injection hardening**
- Glob expansion in config path resolution now passes user-provided patterns as positional shell arguments (`$1`) instead of string-concatenating them into the shell command, preventing potential injection via crafted config path values
**resizeTimer: semantic popup detection**
- Replaced fragile `toString()` string matching (`"Popup_QMLTYPE"`, `"NPluginSettingsPopup"`) with a semantic check (`typeof obj.modal === "boolean"`) that works with any QML `Popup` subclass
**Named key badge colors**
- Extracted hardcoded hex colors in `getKeyColor()` into named `readonly property color` constants (`keyColorAlt`, `keyColorXF86`, `keyColorPrint`, `keyColorNumeric`, `keyColorMouse`)
### Manifest
- Added missing `repository` field
- Added tags: `System`, `Indicator` (alongside existing `Bar`, `Panel`)
---
## [3.2.2] - 2026-02-08
### Bug Fixes
**Hyprland Parser - No Category Handling**
- Fixed parser crash when Hyprland config has no category headers (`# 1. Category Name`)
- Parser now creates default "Keybinds" category for configs without categories
- Default category name is fully translatable via i18n system
- Prevents keybind loss for users who don't organize their configs with categories
### Translations
**Complete i18n Coverage**
- Added `default-category` translations for all 19 supported languages
- Added missing `error` section translations to all language files (includes German from 3.1.2)
- All language files now have identical structure (61-62 lines each)
- Improved translation consistency across all locales
**Supported Languages:**
- English (en), Polish (pl), German (de), French (fr), Spanish (es)
- Italian (it), Portuguese (pt), Dutch (nl), Russian (ru), Japanese (ja)
- Chinese Simplified (zh-CN), Chinese Traditional (zh-TW), Korean (ko-KR)
- Turkish (tr), Ukrainian (uk-UA), Swedish (sv), Hungarian (hu)
- Kurdish (ku), Norwegian Nynorsk (nn-NO), Hindi/Nepali (hn)
### Code Quality
**Memory Leak Prevention**
- Added recursion limit tracking for parser (`hasCategories` flag)
- Improved parser robustness and error handling
- Better fallback behavior for edge cases
---
## [3.1.2] - 2026-02-08
### Translations
- Added german translations for the `error` keys
## [3.1.1] - 2026-02-03
### Smart Caching
**Compositor Change Detection**
- Plugin now detects when compositor changes (e.g., switching from Hyprland to Niri)
- Automatically re-parses config only when compositor differs from cached data
- Instant panel opening when using same compositor (uses cache)
- Saves detected compositor in settings for comparison
### Bug Fixes
**Improved Niri Parser**
- Fixed multiline bind parsing - handles binds that span multiple lines
- Added `spawn-sh` action support for shell command spawning
- Added `move-column-to-workspace` and `move-window-to-workspace` action categories
- Better handling of complex Niri config structures
**Better Error Messages**
- User-friendly messages for unsupported compositors (Sway, LabWC, MangoWC)
- Each compositor shows specific explanation why it's not supported
- All error messages are translatable via i18n
### Documentation
**README Updates**
- Fixed IPC command syntax in examples
- Updated keybind format examples to use `$mainMod` instead of `$mod`
- Clarified configuration file paths and formats
---
## [3.1.0] - 2026-02-03
### New Features
**Niri Support**
- Full Niri compositor support with KDL config parsing
- Recursive file parsing with `source` directive support
- Automatic action categorization
- Multiline bind support
**Recursive Config Parsing**
- Both Hyprland and Niri now support recursive file includes
- Memory leak prevention with recursion limits
- Glob pattern support for bulk file imports
### Improvements
**Better Error Handling**
- Graceful fallback for unsupported compositors
- User-friendly error messages
- Translation support for all error states
---
## [3.0.0] - 2026-01-30
### Initial Release
**Core Features**
- Hyprland keybind parsing
- Category organization
- Multi-language support
- Bar widget integration
- Settings UI
@@ -0,0 +1,77 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
import "." as Local
// Label + background pill + text pill + reset. Used by Settings.qml for per-category
// color customization. Empty bgValue/textValue means "use fallback".
RowLayout {
id: row
property var pluginApi
property var screen
property string labelText: ""
property string bgValue: ""
property string textValue: ""
property color bgFallback: "#888888"
property color textFallback: "#FFFFFF"
property string letter: "A"
property string clipboardHex: ""
property bool showBg: true
property bool showText: true
signal bgPicked(color value)
signal textPicked(color value)
signal bgPasted(string hex)
signal textPasted(string hex)
signal resetRequested()
Layout.fillWidth: true
spacing: Style.marginM
NText {
text: row.labelText
color: Color.mOnSurface
pointSize: Style.fontSizeM
Layout.preferredWidth: 180 * Style.uiScaleRatio
elide: Text.ElideRight
}
Local.ColorPill {
Layout.preferredWidth: 130 * Style.uiScaleRatio
visible: row.showBg
screen: row.screen
hexValue: row.bgValue
displayColor: row.bgValue.length > 0 ? row.bgValue : row.bgFallback
textMode: false
clipboardHex: row.clipboardHex
placeholderText: row.bgValue.length === 0 ? row.pluginApi?.tr("settings.color-auto") : ""
onColorPicked: c => row.bgPicked(c)
onPasteRequested: hex => row.bgPasted(hex)
}
Local.ColorPill {
Layout.preferredWidth: 130 * Style.uiScaleRatio
visible: row.showText
screen: row.screen
hexValue: row.textValue
displayColor: row.textValue.length > 0 ? row.textValue : row.textFallback
textMode: true
letter: row.letter
textModeBg: row.bgValue.length > 0 ? row.bgValue : row.bgFallback
clipboardHex: row.clipboardHex
placeholderText: row.textValue.length === 0 ? row.pluginApi?.tr("settings.color-auto") : ""
onColorPicked: c => row.textPicked(c)
onPasteRequested: hex => row.textPasted(hex)
}
Item { Layout.fillWidth: true }
NIconButton {
icon: "rotate"
tooltipText: row.pluginApi?.tr("settings.reset-color")
onClicked: row.resetRequested()
}
}
@@ -0,0 +1,124 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
// Compact color pill: circle + hex code + optional paste icon.
// Opens NColorPickerDialog on click. Used in pairs (bg + text) per keybind category.
Rectangle {
id: pill
property var screen
property string hexValue: ""
property color displayColor: "#888888"
property bool textMode: false
property string letter: "A"
property color textModeBg: "#444444"
property string clipboardHex: ""
property string placeholderText: ""
signal colorPicked(color value)
signal pasteRequested(string hex)
readonly property bool hasClipboardColor: clipboardHex.length > 0 &&
clipboardHex.toLowerCase() !== hexValue.toLowerCase()
implicitWidth: 150
implicitHeight: Math.round(Style.baseWidgetSize * 1.1)
radius: Style.iRadiusM
color: Color.mSurface
border.color: mouseArea.containsMouse ? Color.mPrimary : Color.mOutline
border.width: Style.borderS
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
var startColor = pill.hexValue.length > 0 ? pill.hexValue : pill.displayColor;
var dialog = dialogFactory.createObject(Overlay.overlay, {
"selectedColor": startColor,
"screen": pill.screen
});
if (!dialog) return;
dialog.colorSelected.connect(function(c) {
pill.colorPicked(c);
});
dialog.open();
}
}
Component {
id: dialogFactory
NColorPickerDialog {}
}
RowLayout {
anchors.fill: parent
anchors.leftMargin: Style.marginS
anchors.rightMargin: Style.marginS
spacing: Style.marginS
Rectangle {
Layout.preferredWidth: pill.height * 0.62
Layout.preferredHeight: pill.height * 0.62
radius: width / 2
color: pill.textMode ? pill.textModeBg : pill.displayColor
border.color: Color.mOutline
border.width: Style.borderS
NText {
anchors.centerIn: parent
visible: pill.textMode
text: pill.letter
color: pill.displayColor
font.weight: Style.fontWeightBold
pointSize: Style.fontSizeS
}
}
NText {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
text: pill.hexValue.length > 0
? pill.hexValue.toUpperCase()
: (pill.placeholderText.length > 0 ? pill.placeholderText : "auto")
family: Settings.data.ui.fontFixed
color: pill.hexValue.length > 0 ? Color.mOnSurface : Color.mOnSurfaceVariant
pointSize: Style.fontSizeXS
elide: Text.ElideRight
}
Rectangle {
Layout.preferredWidth: pill.height * 0.62
Layout.preferredHeight: pill.height * 0.62
visible: pill.hasClipboardColor
radius: width / 2
color: pasteArea.containsMouse ? Color.mPrimary : Color.mSurfaceVariant
border.color: Color.mOutline
border.width: Style.borderS
NIcon {
anchors.centerIn: parent
icon: "clipboard"
color: pasteArea.containsMouse ? Color.mOnPrimary : Color.mOnSurfaceVariant
pointSize: Style.fontSizeS
}
MouseArea {
id: pasteArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: pill.pasteRequested(pill.clipboardHex)
}
ToolTip.visible: pasteArea.containsMouse && pill.clipboardHex.length > 0
ToolTip.text: pill.clipboardHex.toUpperCase()
ToolTip.delay: 400
}
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,657 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import Quickshell.Io
import qs.Commons
import qs.Services.UI
import qs.Services.Compositor
import qs.Widgets
Item {
id: root
property var pluginApi: null
// Settings
property var cfg: pluginApi?.pluginSettings || ({})
property var defaults: pluginApi?.manifest?.metadata?.defaultSettings || ({})
// Settings values
property int settingsWidth: cfg.windowWidth ?? defaults.windowWidth ?? 1400
property int settingsHeight: cfg.windowHeight ?? defaults.windowHeight ?? 0
property bool autoHeight: cfg.autoHeight ?? defaults.autoHeight ?? true
property int columnCount: cfg.columnCount ?? defaults.columnCount ?? 3
// Bug 4 fix: re-evaluate rawCategories whenever Main.qml increments cheatsheetDataVersion
property int _dataVersion: pluginApi?.mainInstance?.cheatsheetDataVersion ?? 0
property var rawCategories: {
var _v = _dataVersion; // force QML dependency on version counter
return pluginApi?.pluginSettings?.cheatsheetData || [];
}
property var categories: []
// Bug 5 fix: timeout if parsing never completes
property bool loadingTimedOut: false
Timer {
id: loadingTimeoutTimer
interval: 4000
repeat: false
running: false
onTriggered: {
if (root.isLoading) {
root.loadingTimedOut = true;
}
}
}
Component.onCompleted: {
categories = processCategories(rawCategories);
// Start timeout timer if we have no data yet
if (root.isLoading) {
loadingTimeoutTimer.start();
}
}
// Dynamic column items (up to 4 columns)
property var columnItems: []
// Memory leak prevention: debounce column updates
Timer {
id: columnUpdateDebounce
interval: 100
repeat: false
onTriggered: updateColumnItemsNow()
}
Component.onDestruction: {
// Stop timer to prevent firing after destruction
columnUpdateDebounce.stop();
loadingTimeoutTimer.stop();
// Clear column items
columnItems = [];
}
onRawCategoriesChanged: {
categories = processCategories(rawCategories);
updateColumnItems();
}
onCategoriesChanged: {
updateColumnItems();
contentPreferredHeight = calculateDynamicHeight();
}
onColumnCountChanged: {
updateColumnItems();
contentPreferredHeight = calculateDynamicHeight();
}
onPanelOpenScreenChanged: {
// Recalculate height when screen becomes available (important for bar widget opening)
contentPreferredHeight = calculateDynamicHeight();
root.searchText = "";
if (searchInput) searchInput.inputItem.forceActiveFocus();
}
onMaxScreenHeightChanged: {
contentPreferredHeight = calculateDynamicHeight();
}
function updateColumnItems() {
columnUpdateDebounce.restart();
}
function updateColumnItemsNow() {
columnItems = []; // Clear old items explicitly
var assignments = distributeCategories();
var items = [];
for (var i = 0; i < columnCount; i++) {
items.push(buildColumnItems(assignments[i] || []));
}
columnItems = items;
}
// Screen height limit (90% of screen)
property var panelOpenScreen: pluginApi?.panelOpenScreen
property real maxScreenHeight: panelOpenScreen ? panelOpenScreen.height * 0.9 : 800
property string searchText: ""
property real contentPreferredWidth: settingsWidth
property real contentPreferredHeight: calculateDynamicHeight()
readonly property var geometryPlaceholder: panelContainer
readonly property bool allowAttach: false
readonly property bool panelAnchorHorizontalCenter: true
readonly property bool panelAnchorVerticalCenter: true
anchors.fill: parent
// Key badge colors — read from settings with manifest defaults as fallback
readonly property color keyColorAlt: cfg.keyColorAlt || defaults.keyColorAlt || "#FF6B6B"
readonly property color keyColorXF86: cfg.keyColorXF86 || defaults.keyColorXF86 || "#4ECDC4"
readonly property color keyColorPrint: cfg.keyColorPrint || defaults.keyColorPrint || "#95E1D3"
readonly property color keyColorNumeric: cfg.keyColorNumeric || defaults.keyColorNumeric || "#A8DADC"
readonly property color keyColorMouse: cfg.keyColorMouse || defaults.keyColorMouse || "#F38181"
// Empty string = use theme color (mPrimary/mSecondary/mTertiary)
readonly property string keyColorSuperOverride: cfg.keyColorSuper ?? defaults.keyColorSuper ?? ""
readonly property string keyColorCtrlOverride: cfg.keyColorCtrl ?? defaults.keyColorCtrl ?? ""
readonly property string keyColorShiftOverride: cfg.keyColorShift ?? defaults.keyColorShift ?? ""
readonly property color keyColorDefault: cfg.keyColorDefault || defaults.keyColorDefault || "#6C757D"
readonly property color keyLabelColor: cfg.keyLabelColor || defaults.keyLabelColor || "#FFFFFF"
// Empty string = theme-aware fallback (Color.mOnSurface). Any non-empty
// value is treated as an explicit user override.
readonly property string descriptionColorOverride: cfg.descriptionTextColor || defaults.descriptionTextColor || ""
readonly property color descriptionTextColor: descriptionColorOverride !== "" ? descriptionColorOverride : Color.mOnSurface
// Per-category text color overrides (empty = fall back to keyLabelColor)
readonly property string keyTextSuperOverride: cfg.keyTextSuper ?? defaults.keyTextSuper ?? ""
readonly property string keyTextCtrlOverride: cfg.keyTextCtrl ?? defaults.keyTextCtrl ?? ""
readonly property string keyTextShiftOverride: cfg.keyTextShift ?? defaults.keyTextShift ?? ""
readonly property string keyTextAltOverride: cfg.keyTextAlt ?? defaults.keyTextAlt ?? ""
readonly property string keyTextXF86Override: cfg.keyTextXF86 ?? defaults.keyTextXF86 ?? ""
readonly property string keyTextPrintOverride: cfg.keyTextPrint ?? defaults.keyTextPrint ?? ""
readonly property string keyTextNumericOverride: cfg.keyTextNumeric ?? defaults.keyTextNumeric ?? ""
readonly property string keyTextMouseOverride: cfg.keyTextMouse ?? defaults.keyTextMouse ?? ""
readonly property string keyTextDefaultOverride: cfg.keyTextDefault ?? defaults.keyTextDefault ?? ""
// Workspace category split tuning
readonly property bool splitWorkspaces: cfg.splitLargeWorkspaceCategory ?? defaults.splitLargeWorkspaceCategory ?? true
readonly property int workspaceSplitThreshold: cfg.workspaceSplitThreshold ?? defaults.workspaceSplitThreshold ?? 12
// Data is loaded by Main.qml, we just display it
property bool isLoading: rawCategories.length === 0
function calculateDynamicHeight() {
// If auto height is disabled, use manual height (but still respect screen limit)
if (!autoHeight && settingsHeight > 0) {
return Math.min(settingsHeight, maxScreenHeight);
}
if (categories.length === 0) return Math.min(400, maxScreenHeight);
var assignments = distributeCategories();
var maxColumnHeight = 0;
for (var col = 0; col < columnCount; col++) {
var colHeight = 0;
var catIndices = assignments[col] || [];
for (var i = 0; i < catIndices.length; i++) {
var catIndex = catIndices[i];
if (catIndex >= categories.length) continue;
var cat = categories[catIndex];
colHeight += 26; // Header
colHeight += cat.binds.length * 20; // Binds
if (i < catIndices.length - 1) {
colHeight += 6; // Spacer
}
}
if (colHeight > maxColumnHeight) {
maxColumnHeight = colHeight;
}
}
// header (45) + content + margins (16)
var totalHeight = 45 + maxColumnHeight + 16 + 15 + 15;
// Limit to 80% of screen height
return Math.max(300, Math.min(totalHeight, maxScreenHeight));
}
// ========== UI ==========
Rectangle {
id: panelContainer
anchors.fill: parent
color: "transparent"
radius: Style.radiusL
clip: true
Rectangle {
id: header
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: 45
color: Color.mSurfaceVariant
radius: Style.radiusL
RowLayout {
anchors.fill: parent
anchors.leftMargin: Style.marginM
anchors.rightMargin: Style.marginM
spacing: Style.marginS
// Title section (centered)
Item { Layout.fillWidth: true }
NIcon {
icon: "keyboard"
pointSize: Style.fontSizeM
color: Color.mPrimary
}
NText {
text: CompositorService.isHyprland ? pluginApi?.tr("panel.title-hyprland") :
CompositorService.isNiri ? pluginApi?.tr("panel.title-niri") :
CompositorService.isMango ? pluginApi?.tr("panel.title-mango") :
pluginApi?.tr("panel.title")
font.pointSize: Style.fontSizeM
font.weight: Font.Bold
color: Color.mPrimary
}
NTextInput {
id: searchInput
placeholderText: pluginApi?.tr("panel.search-placeholder")
text: root.searchText
onTextChanged: {
root.searchText = text;
root.updateColumnItems();
}
}
Item { Layout.fillWidth: true }
// Refresh button
NIconButton {
icon: "refresh"
onClicked: {
pluginApi?.mainInstance?.refresh();
}
}
// Settings button
NIconButton {
icon: "settings"
onClicked: {
var screen = pluginApi?.panelOpenScreen;
if (screen && pluginApi?.manifest) {
pluginApi.closePanel(screen);
BarService.openPluginSettings(screen, pluginApi.manifest);
}
}
}
}
}
NText {
id: loadingText
anchors.centerIn: parent
text: root.loadingTimedOut ? pluginApi?.tr("panel.loading-timeout") : pluginApi?.tr("panel.loading")
visible: root.isLoading
font.pointSize: Style.fontSizeL
color: Color.mOnSurface
}
NScrollView {
id: scrollView
visible: root.categories.length > 0 && !root.isLoading
anchors.top: header.bottom
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
clip: true
leftPadding: 35
rightPadding: -10
topPadding: 15
bottomPadding: 15
RowLayout {
id: mainLayout
width: scrollView.availableWidth - Style.marginS
spacing: Style.marginS
Repeater {
model: root.columnItems.length
ColumnLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignTop
spacing: 2
property var colItems: root.columnItems[index] || []
Repeater {
model: colItems
Loader {
Layout.fillWidth: true
sourceComponent: modelData.type === "header" ? headerComponent :
(modelData.type === "spacer" ? spacerComponent : bindComponent)
property var itemData: modelData
// Memory leak prevention: explicit cleanup
Component.onDestruction: {
active = false;
sourceComponent = undefined;
}
}
}
}
}
}
}
}
Component {
id: headerComponent
ColumnLayout {
Layout.preferredWidth: 300
Layout.topMargin: Style.marginM
Layout.bottomMargin: 4
spacing: 0
Item { Layout.fillWidth: true; height: 1 }
NText {
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
x: parent.width - implicitWidth
text: itemData.title
font.pointSize: Style.fontSizeM
font.weight: Font.Bold
color: Color.mPrimary
}
Item { Layout.fillWidth: true; height: 1 }
}
}
Component {
id: spacerComponent
Item {
height: 10
Layout.fillWidth: true
}
}
Component {
id: bindComponent
RowLayout {
id: bindRow
spacing: Style.marginS
height: 22
Layout.bottomMargin: 1
property bool editing: false
Flow {
Layout.preferredWidth: 220
Layout.alignment: Qt.AlignVCenter
spacing: 3
Repeater {
model: itemData.keys.split(" + ")
Rectangle {
width: keyText.implicitWidth + 10
height: 18
color: getKeyColor(modelData)
radius: 3
NText {
id: keyText
anchors.centerIn: parent
text: modelData
font.pointSize: modelData.length > 12 ? 7 : 8
font.weight: Font.Bold
color: getKeyTextColor(modelData)
}
}
}
}
// Described bind: plain text (unchanged behaviour)
NText {
visible: !itemData.undescribed
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
text: itemData.desc
font.pointSize: Style.fontSizeXS
color: root.descriptionTextColor
elide: Text.ElideRight
}
// Undescribed bind: placeholder + add-description / hide actions
NText {
visible: itemData.undescribed && !bindRow.editing
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
text: pluginApi?.tr("panel.no-description")
font.pointSize: Style.fontSizeXS
font.italic: true
color: Color.mOnSurfaceVariant
elide: Text.ElideRight
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: { bindRow.editing = true; descInput.text = ""; descInput.inputItem.forceActiveFocus(); }
}
}
NTextInput {
id: descInput
visible: itemData.undescribed && bindRow.editing
Layout.fillWidth: true
Layout.preferredHeight: Style.baseWidgetSize
placeholderText: pluginApi?.tr("panel.add-description-placeholder")
}
NIconButton {
visible: itemData.undescribed && bindRow.editing
Layout.preferredHeight: 18
icon: "check"
tooltipText: pluginApi?.tr("panel.save-description")
onClicked: {
root.saveBindDescription(itemData.bindId, descInput.text);
bindRow.editing = false;
}
}
NIconButton {
visible: itemData.undescribed && bindRow.editing
Layout.preferredHeight: 18
icon: "close"
tooltipText: pluginApi?.tr("panel.cancel")
onClicked: { bindRow.editing = false; }
}
NIconButton {
visible: itemData.undescribed && !bindRow.editing
Layout.preferredHeight: 18
icon: "edit"
tooltipText: pluginApi?.tr("panel.add-description")
onClicked: { bindRow.editing = true; descInput.text = ""; descInput.inputItem.forceActiveFocus(); }
}
NIconButton {
visible: itemData.undescribed && !bindRow.editing
Layout.preferredHeight: 18
icon: "eye-off"
tooltipText: pluginApi?.tr("panel.hide-bind")
onClicked: { root.hideBind(itemData.bindId); }
}
}
}
function getKeyColor(keyName) {
if (keyName === "Super") return root.keyColorSuperOverride || Color.mPrimary;
if (keyName === "Ctrl") return root.keyColorCtrlOverride || Color.mSecondary;
if (keyName === "Shift") return root.keyColorShiftOverride || Color.mTertiary;
if (keyName === "Alt") return root.keyColorAlt;
if (keyName.startsWith("XF86")) return root.keyColorXF86;
if (keyName === "PRINT" || keyName === "Print") return root.keyColorPrint;
if (keyName.match(/^[0-9]$/)) return root.keyColorNumeric;
if (keyName.includes("MOUSE") || keyName.includes("Wheel")) return root.keyColorMouse;
return root.keyColorDefault;
}
function getKeyTextColor(keyName) {
if (keyName === "Super") return root.keyTextSuperOverride || root.keyLabelColor;
if (keyName === "Ctrl") return root.keyTextCtrlOverride || root.keyLabelColor;
if (keyName === "Shift") return root.keyTextShiftOverride || root.keyLabelColor;
if (keyName === "Alt") return root.keyTextAltOverride || root.keyLabelColor;
if (keyName.startsWith("XF86")) return root.keyTextXF86Override || root.keyLabelColor;
if (keyName === "PRINT" || keyName === "Print") return root.keyTextPrintOverride || root.keyLabelColor;
if (keyName.match(/^[0-9]$/)) return root.keyTextNumericOverride || root.keyLabelColor;
if (keyName.includes("MOUSE") || keyName.includes("Wheel")) return root.keyTextMouseOverride || root.keyLabelColor;
return root.keyTextDefaultOverride || root.keyLabelColor;
}
// ===== Bind override helpers (shared keyed map in plugin settings) =====
function _cloneOverrides() {
if (!pluginApi || !pluginApi.pluginSettings) return ({});
var src = pluginApi.pluginSettings.bindOverrides || ({});
try { return JSON.parse(JSON.stringify(src)); } catch (e) { return ({}); }
}
function saveBindDescription(bindId, desc) {
if (!pluginApi || !bindId) return;
var o = _cloneOverrides();
if (!o[bindId]) o[bindId] = ({});
var trimmed = (desc || "").trim();
if (trimmed.length === 0) {
delete o[bindId].desc;
if (Object.keys(o[bindId]).length === 0) delete o[bindId];
} else {
o[bindId].desc = trimmed;
}
pluginApi.pluginSettings.bindOverrides = o;
pluginApi.saveSettings();
pluginApi.mainInstance?.refresh();
}
function hideBind(bindId) {
if (!pluginApi || !bindId) return;
var o = _cloneOverrides();
if (!o[bindId]) o[bindId] = ({});
o[bindId].hidden = true;
pluginApi.pluginSettings.bindOverrides = o;
pluginApi.saveSettings();
pluginApi.mainInstance?.refresh();
}
function buildColumnItems(categoryIndices) {
var result = [];
if (!categoryIndices) return result;
for (var i = 0; i < categoryIndices.length; i++) {
var catIndex = categoryIndices[i];
if (catIndex >= categories.length) continue;
var cat = categories[catIndex];
result.push({ type: "header", title: cat.title });
var term = root.searchText.toLowerCase();
for (var j = 0; j < cat.binds.length; j++) {
var bnd = cat.binds[j];
var isUndesc = bnd.undescribed === true;
if (!term || (bnd.desc && bnd.desc.toLowerCase().indexOf(term) !== -1) || (isUndesc && bnd.keys.toLowerCase().indexOf(term) !== -1)) {
result.push({
type: "bind",
keys: bnd.keys,
desc: bnd.desc,
bindId: bnd.bindId || "",
undescribed: isUndesc
});
}
}
if (i < categoryIndices.length - 1) {
result.push({ type: "spacer" });
}
}
return result;
}
function processCategories(cats) {
if (!cats || cats.length === 0) return [];
if (!root.splitWorkspaces) return cats;
var result = [];
for (var i = 0; i < cats.length; i++) {
var cat = cats[i];
if (!cat.binds || cat.binds.length <= root.workspaceSplitThreshold) {
result.push(cat);
continue;
}
// Detect a category dominated by workspace verbs.
// Hyprland verbs: workspace, movetoworkspace, movetoworkspacesilent, movecurrentworkspacetomonitor
// Niri verbs: focus-workspace, move-window-to-workspace, move-column-to-workspace
var workspaceCount = 0;
for (var k = 0; k < cat.binds.length; k++) {
var v = cat.binds[k]._verb || "";
if (v.indexOf("workspace") !== -1) workspaceCount++;
}
var workspaceDominated = workspaceCount >= Math.ceil(cat.binds.length * 0.6);
if (!workspaceDominated) {
result.push(cat);
continue;
}
var switching = [], moving = [], mouse = [];
for (var j = 0; j < cat.binds.length; j++) {
var bind = cat.binds[j];
var verb = bind._verb || "";
var isMouse = (bind._mainKey || "").indexOf("MOUSE") !== -1 ||
(bind.keys || "").indexOf("MOUSE") !== -1 ||
(bind.keys || "").indexOf("Wheel") !== -1;
if (isMouse) {
mouse.push(bind);
} else if (verb.indexOf("move") !== -1 || verb.indexOf("send") !== -1) {
// Hyprland: movetoworkspace*, Niri: move-window-to-workspace, move-column-to-workspace
moving.push(bind);
} else {
// Hyprland: workspace, Niri: focus-workspace
switching.push(bind);
}
}
if (switching.length > 0) result.push({ title: pluginApi?.tr("panel.workspace-switching"), binds: switching });
if (moving.length > 0) result.push({ title: pluginApi?.tr("panel.workspace-moving"), binds: moving });
if (mouse.length > 0) result.push({ title: pluginApi?.tr("panel.workspace-mouse"), binds: mouse });
}
return result;
}
function distributeCategories() {
var numCols = root.columnCount;
// Calculate weights for each category
var catData = [];
for (var i = 0; i < categories.length; i++) {
var weight = 1 + categories[i].binds.length + 1; // header + binds + spacer
catData.push({ index: i, weight: weight });
}
// Sort by weight descending (largest categories first for better distribution)
catData.sort(function(a, b) { return b.weight - a.weight; });
var columns = [];
var columnWeights = [];
for (var c = 0; c < numCols; c++) {
columns.push([]);
columnWeights.push(0);
}
// Assign each category to the column with smallest current weight
for (var i = 0; i < catData.length; i++) {
var minCol = 0;
for (var c = 1; c < numCols; c++) {
if (columnWeights[c] < columnWeights[minCol]) {
minCol = c;
}
}
columns[minCol].push(catData[i].index);
columnWeights[minCol] += catData[i].weight;
}
// Sort categories within each column by original order for consistent display
for (var c = 0; c < numCols; c++) {
columns[c].sort(function(a, b) { return a - b; });
}
return columns;
}
}
@@ -0,0 +1,272 @@
# Keybind Cheatsheet for Noctalia
Universal keyboard shortcuts cheatsheet plugin for Noctalia that **automatically detects** your compositor (Hyprland, Niri or MangoWC) and displays your keybindings with **recursive config parsing**. Supports the classic Hyprland `.conf` format, the new **Hyprland 0.55+ Lua config**, Niri KDL and MangoWC.
![Preview](preview.png)
## Features
- **Automatic compositor detection** (Hyprland, Niri, MangoWC)
- **Hyprland Lua config support** (Hyprland 0.55+) via `hyprctl binds -j`
- **Recursive config parsing** - follows `source` (Hyprland `.conf`), `require()` (Hyprland Lua) and `include` (Niri) directives
- **Glob pattern support** - parses `~/.config/hypr/*.conf` style includes
- **Without Description section** - binds with no description are surfaced, not dropped; add a custom description or hide them inline
- **Full per-category color customization** - background + text color for every key category, with live preview and clipboard quick-paste
- **Search filter** - type to filter keybindings in the panel
- **Configurable paths & parser mode** - custom config locations and forced Lua/conf parser in settings
- **Smart key formatting** - XF86 keys display as readable names (Vol Up, Bright Down, etc.)
- **Flexible column layout** (1-4 columns) with auto-height
- **IPC support** - `toggle` and `refresh` for global hotkeys
## Supported Compositors
| Compositor | Default Config | How it's read |
|------------|----------------|----------------|
| **Hyprland 0.55+** | `~/.config/hypr/hyprland.lua` | `hyprctl binds -j` (live, already-evaluated binds) |
| **Hyprland (classic)** | `~/.config/hypr/hyprland.conf` | hyprlang `.conf` text parser (recursive) |
| **Niri** | `~/.config/niri/config.kdl` | KDL parser (recursive `include`) |
| **MangoWC** | `~/.config/mango/config.conf` | `bind=` / `axisbind=` / `mousebind=` parser |
## Installation
```bash
cp -r keybind-cheatsheet ~/.config/noctalia/plugins/
```
## Usage
### Bar Widget
Add the plugin to your bar configuration in Noctalia settings. Click the keyboard icon to open the cheatsheet.
### Global Hotkey
**Hyprland:**
```bash
bind = $mod, F1, exec, qs -c noctalia-shell ipc call plugin:keybind-cheatsheet toggle
```
You can set your custom Super key variable (e.g. `$mainMod`) in the plugin settings.
**Niri:**
```kdl
binds {
Mod+F1 { spawn-sh "qs -c noctalia-shell ipc call plugin:keybind-cheatsheet toggle"; }
}
```
**MangoWC:**
```bash
bind=SUPER,F1,spawn,qs -c noctalia-shell ipc call plugin:keybind-cheatsheet toggle
```
### IPC Commands
| Command | Effect |
|---------|--------|
| `qs -c noctalia-shell ipc call plugin:keybind-cheatsheet toggle` | Open / close the cheatsheet panel |
| `qs -c noctalia-shell ipc call plugin:keybind-cheatsheet refresh` | Force a re-parse of your keybindings |
`refresh` is useful after editing your config — bind it to a key to reload without restarting the shell.
## Hyprland Lua Config (0.55+)
Hyprland 0.55 replaced the static hyprlang `.conf` with a **Lua config** (`hyprland.lua`). Binds can now be generated with `require()`, `for` loops and runtime logic, so they **cannot be recovered by reading the file as text**.
### How it works
Instead of parsing the Lua file, the plugin asks Hyprland directly:
1. **Authoritative bind list** — runs `hyprctl binds -j` and reads the already-evaluated JSON bind list. This correctly handles `require()` modules, `for` loops and multi-key chords — whatever Hyprland *actually* has bound at runtime.
2. **Category & description recovery** — the plugin then *lightly scans* `hyprland.lua` and every file it pulls in via `require()` to recover human-readable structure:
- **Category headers**: a comment in the form `-- N. NAME` (e.g. `-- 1. Applications`)
- **Static descriptions**: a `description = "..."` (or `desc = '...'`) literal maps that exact description to the current category
- **Loop-generated descriptions**: a concatenated literal such as `description = "Workspace " .. i` is treated as a *prefix* — any bind whose description starts with `Workspace ` is filed under that category
3. Binds whose description can't be matched fall into a generic **Other** category; binds with no description at all go to the **Without Description** section (see below).
You don't need to change your Lua config — just keep using `-- N. NAME` comment headers and `description = "..."` fields where you want grouping.
**Example Lua structure the scanner understands:**
```lua
-- 1. Applications
Hyprland.config.bind("$mod, T", function() ... end, { description = "Terminal" })
Hyprland.config.bind("$mod, B", function() ... end, { description = "Browser" })
-- 2. Workspaces
for i = 1, 9 do
Hyprland.config.bind("$mod, " .. i, function() ... end,
{ description = "Workspace " .. i }) -- prefix "Workspace " -> category "Workspaces"
end
require("keybinds") -- followed and scanned recursively
```
### Parser mode
A **Parser Mode** setting controls which Hyprland parser is used:
| Mode | Behavior |
|------|----------|
| `auto` *(default)* | Use the Lua parser if `hyprland.lua` exists, otherwise fall back to the `.conf` parser |
| `lua` | Always use `hyprctl binds -j` (Lua parser) |
| `conf` | Always use the classic `.conf` text parser |
The legacy hyprlang `.conf` parser is **kept unchanged** as a fallback for users still on hyprlang configs.
## Without Description Section
Binds with no description are no longer silently dropped. They appear in a dedicated **Without Description** section where you can:
- **Add a custom description** inline — it is remembered and displayed like any other bind
- **Hide** a bind you don't care about
Overrides are keyed by a **stable bind identity** (`submap | modmask | key | flags | dispatcher`) that deliberately excludes Hyprland's unstable internal Lua registry reference, so your custom descriptions and hidden binds **survive Hyprland restarts**.
Settings provide a **"Show binds without a description"** toggle, plus **"Restore hidden"** and **"Clear all overrides"** actions.
## Config Format
### Hyprland (classic `.conf`)
Recursively parses your main config and all `source` includes.
```bash
# 1. APPLICATIONS
bind = $mainMod, T, exec, alacritty #"Terminal"
bind = $mainMod, B, exec, firefox #"Browser"
# 2. WINDOW MANAGEMENT
bind = $mainMod, Q, killactive, #"Close window"
bind = $mainMod, F, fullscreen, #"Toggle fullscreen"
```
- Categories: `# N. CATEGORY NAME` (N is a number)
- Descriptions: `#"description"` at end of the bind line
- `source = ~/.config/hypr/keybinds.conf` and globs like `source = ~/.config/hypr/apps/*.conf` are followed automatically
### Niri
Parses the `binds { }` block and follows all `include` directives.
```kdl
binds {
// #"Applications"
Mod+T hotkey-overlay-title="Terminal" { spawn "alacritty"; }
// #"Window Management"
Mod+Q hotkey-overlay-title="Close window" { close-window; }
// #"Workspaces"
Mod+1 { focus-workspace 1; }
}
```
- Categories: `// #"Category Name"` (exact format)
- Descriptions: `hotkey-overlay-title="description"` attribute
- Without descriptions, actions are auto-categorized by type (see table below)
- `include "~/.config/niri/binds.kdl"` is followed automatically
### MangoWC
Parses `bind=`, `axisbind=` and `mousebind=` directives from `~/.config/mango/config.conf`.
```bash
# Applications
bind=SUPER,T,spawn,alacritty #"Terminal"
bind=SUPER,B,spawn,firefox #"Browser"
# Window Management
bind=SUPER,Q,killclient, #"Close window"
```
- Categories: standalone `# Category Name` comment lines
- Descriptions: trailing `#"description"` on a bind line
- Modifier aliases recognized: `LOGO` = `SUPER`, `MOD1` = `ALT`
- XF86 media keys are formatted (Vol Up, Mute, Bright Up/Down, …)
- Lines without a preceding `# Category` use the localized default category
## Auto-Categorization (Niri)
When no category comment is provided, keybindings are grouped by action:
| Action prefix | Category |
|---------------|----------|
| `spawn` | Applications |
| `focus-column-*` | Column Navigation |
| `focus-window-*` | Window Focus |
| `focus-workspace-*` | Workspace Navigation |
| `move-column-*` | Move Columns |
| `move-window-*` | Move Windows |
| `close-window`, `fullscreen-window` | Window Management |
| `maximize-column` | Column Management |
| `set-column-width` | Column Width |
| `screenshot*` | Screenshots |
| `power-off-monitors` | Power |
| `quit` | System |
## Special Key Formatting
| Raw Key | Display |
|---------|---------|
| `XF86AudioRaiseVolume` | Vol Up |
| `XF86AudioLowerVolume` | Vol Down |
| `XF86AudioMute` | Mute |
| `XF86MonBrightnessUp` | Bright Up |
| `XF86MonBrightnessDown` | Bright Down |
| `Print` | PrtSc |
| `Prior` / `Next` | PgUp / PgDn |
## Color Customization
Every key category has independently themeable **background** and **text** colors:
`Super`, `Ctrl`, `Shift`, `Alt`, `XF86`, `Print`, numeric, mouse and default letter keys — plus the description text color.
- **Two-pill rows** per category: left pill = background, right pill = label text on that background. Click a pill to open the color picker.
- **Theme-aware defaults**: `Super` / `Ctrl` / `Shift` use an empty sentinel meaning "use the Material theme accent" (`mPrimary` / `mSecondary` / `mTertiary`), so themed setups stay untouched unless you deliberately override.
- **Clipboard quick-paste**: copy a `#RRGGBB` / `#RRGGBBAA` hex and a paste icon appears in each pill — one click applies it (clipboard polled via `wl-paste`).
- **Live preview + revert**: changes preview immediately; closing Settings without Save restores the snapshot taken when the panel opened.
- **Per-row reset** and a **"Reset all colors"** action restore theme defaults.
## Settings
Access settings via the gear icon in the panel header:
- **Window width / height** (auto or manual) and **column count** (1-4)
- **Hyprland config path** — classic `.conf` location
- **Hyprland Lua path** — `hyprland.lua` location (0.55+)
- **Parser mode** — `auto` / `lua` / `conf`
- **Niri config path** / **MangoWC config path**
- **Show binds without a description** toggle + **Restore hidden** / **Clear all overrides**
- **Merge sequential binds** and **split large workspace category** (threshold configurable)
- **Per-category colors** — background + text for every category, with clipboard paste and reset
- **Refresh** — force reload keybindings
## Troubleshooting
### "Loading..." stays forever
1. Check the compositor is detected: look for logs tagged `[KeybindCheatsheet]`
2. Verify the config file exists at the configured path
3. On Hyprland 0.55+, confirm `hyprctl binds -j` works in your terminal
### `hyprctl` error shown in the panel
The Lua parser depends on `hyprctl binds -j`. Ensure Hyprland is running and `hyprctl` is on your `PATH`, or force the classic parser by setting **Parser mode** to `conf`.
### No categories found
- **Hyprland `.conf` / MangoWC:** categories must be `# 1.` / `# Category Name` comment lines
- **Hyprland Lua:** add `-- N. NAME` headers and `description = "..."` fields in `hyprland.lua` (and `require()`d modules)
- **Niri:** use `// #"Category Name"` format
### Binds missing or under "Without Description"
On Lua configs, descriptions are matched from `description = "..."` literals against the live `hyprctl` binds. Loop-generated binds need a concatenated prefix literal (e.g. `"Workspace " .. i`). Anything unmatched lands in **Without Description**, where you can add a description or hide it.
### Keybinds from included files not showing
The plugin follows `source` (Hyprland `.conf`), `require()` (Hyprland Lua) and `include` (Niri) directives automatically. Check logs to see which files are parsed.
## Requirements
- Noctalia Shell 3.6.0+
- Hyprland (classic `.conf` or 0.55+ Lua), Niri, or MangoWC
- `hyprctl` on `PATH` for Hyprland Lua configs
- `wl-paste` (wl-clipboard) for the color clipboard quick-paste feature
## License
MIT
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,113 @@
{
"default-category": "Tastenkürzel",
"error": {
"unsupported-compositor": "Nicht unterstützter Compositor",
"sway-not-supported": "Sway wird noch nicht unterstützt",
"sway-detail": "Sway-Unterstützung wird möglicherweise in einem zukünftigen Update hinzugefügt (ähnliches Format wie Hyprland)",
"labwc-not-supported": "LabWC wird nicht unterstützt.",
"labwc-detail": "LabWC verwendet das XML-Konfigurationsformat, das mit diesem Plugin nicht kompatibel ist.",
"unknown-compositor": "Unbekannter Compositor erkannt",
"unknown-detail": "Dieses Plugin unterstützt nur Niri und Hyprland als Compositor",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Laden...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Tastenbelegung",
"title-hyprland": "Hyprland Tastenbelegung",
"title-niri": "Niri Tastenbelegung",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ARBEITSBEREICHE - WECHSELN",
"workspace-moving": "ARBEITSBEREICHE - VERSCHIEBEN",
"workspace-mouse": "ARBEITSBEREICHE - MAUS",
"search-placeholder": "Tastenkombinationen suchen...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Tastenkürzel-Ubersicht Einstellungen",
"description": "Konfigurieren Sie das Aussehen und die Quellen der Tastenkürzel fur das Panel.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Fenstergröße",
"width": "Breite:",
"height": "Höhe:",
"auto-height": "Auto",
"auto-height-hint": "Wenn 'Auto' aktiviert ist, passt sich die Höhe automatisch an den Inhalt an.",
"layout": "Layout",
"columns": "Anzahl der Spalten:",
"columns-hint": "Mehr Spalten funktionieren besser mit breiteren Fenstern.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Konfigurationsdateien",
"config-paths-description": "Geben Sie benutzerdefinierte Pfade zu Ihren Tastenkürzel-Konfigurationsdateien an. Das Plugin folgt automatisch allen include/source Direktiven.",
"hyprland-format-hint": "Erwartetes Format: bind = $mod, KEY, action #\"beschreibung\"\nKategorien: # 1. KATEGORIENAME",
"niri-format-hint": "Kategorien werden erstellt mit: // #\"Kategoriename\"\nBeschreibungen: hotkey-overlay-title=\"beschreibung\"",
"actions": "Aktionen",
"refresh-keybinds": "Tastenkürzel aktualisieren",
"refresh-message": "Tastenkürzel werden beim Öffnen des Panels neu geladen.",
"reset-defaults": "Auf Standard zurücksetzen",
"reset-message": "Einstellungen wurden auf Standard zurückgesetzt.",
"saved": "Einstellungen erfolgreich gespeichert.",
"keybind-setup": "Tastenkürzel-Einrichtung",
"keybind-setup-description": "Um die Übersicht mit einer Tastenkombination zu öffnen, fuge diese Bindung zu deiner Compositor-Konfiguration hinzu:",
"keybind-example-hyprland": "Hyprland Beispiel: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri Beispiel: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod-Tasten-Variable",
"mod-var-hint": "Der Variablenname für Ihre Super-Taste (z.B. $mod oder $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland Pfad",
"niri-path": "Niri Pfad",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Tipp: Kopiere eine Hex-Farbe (z. B. #FF6B6B) in die Zwischenablage – in der Pille erscheint ein Einfügen-Symbol für schnelles Einfügen.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Tastenkürzel-Spickzettel",
"open": "Spickzettel öffnen",
"settings": "Plugin-Einstellungen"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Keybinds",
"error": {
"unsupported-compositor": "Unsupported Compositor",
"sway-not-supported": "Sway is not yet supported",
"sway-detail": "Sway support may be added in a future update (similar format to Hyprland)",
"labwc-not-supported": "LabWC is not supported",
"labwc-detail": "LabWC uses XML config format which is incompatible with this plugin",
"unknown-compositor": "Unknown compositor detected",
"unknown-detail": "This plugin only supports Hyprland and Niri compositors",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Loading...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Keymap",
"title-hyprland": "Hyprland Keymap",
"title-niri": "Niri Keymap",
"title-mango": "MangoWC Keymap",
"workspace-switching": "WORKSPACES - SWITCHING",
"workspace-moving": "WORKSPACES - MOVING",
"workspace-mouse": "WORKSPACES - MOUSE",
"search-placeholder": "Search keybinds...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Keybind Cheatsheet Settings",
"description": "Configure the appearance and keybind sources for the keybind cheatsheet panel.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Window Size",
"width": "Width:",
"height": "Height:",
"auto-height": "Auto",
"auto-height-hint": "When 'Auto' is enabled, height adjusts automatically based on content.",
"layout": "Layout",
"columns": "Number of columns:",
"columns-hint": "More columns work better with wider windows.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Configuration Files",
"config-paths-description": "Specify custom paths to your keybind configuration files. The plugin will automatically parse the appropriate file based on your compositor and follow all include/source directives.",
"hyprland-format-hint": "Expected format: bind = $mod, KEY, action #\"description\"\nCategories: # 1. CATEGORY NAME",
"niri-format-hint": "Categories are created with: // #\"Category Name\"\nDescriptions: hotkey-overlay-title=\"description\"",
"actions": "Actions",
"refresh-keybinds": "Refresh Keybinds",
"refresh-message": "Keybinds will be reloaded when you open the panel.",
"reset-defaults": "Reset to Defaults",
"reset-message": "Settings have been reset to defaults.",
"saved": "Settings saved successfully.",
"keybind-setup": "Keybind Setup",
"keybind-setup-description": "To open the keybind cheatsheet with a keyboard shortcut, add this bind to your compositor config:",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-hyprland": "Hyprland example: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri example: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod Key Variable",
"mod-var-hint": "The variable name used for your Super key (e.g., $mod or $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland Path",
"niri-path": "Niri Path",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"color-paste-hint": "Tip: copy any hex color (e.g. #FF6B6B) to your clipboard and a paste icon will appear inside the pill for quick paste.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Keybind Cheatsheet",
"open": "Open Cheatsheet",
"settings": "Plugin Settings"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Atajos de teclado",
"error": {
"unsupported-compositor": "Compositor no compatible",
"sway-not-supported": "Sway aún no es compatible",
"sway-detail": "El soporte de Sway podría agregarse en una actualización futura (formato similar a Hyprland)",
"labwc-not-supported": "LabWC no es compatible",
"labwc-detail": "LabWC usa formato de configuración XML que es incompatible con este plugin",
"unknown-compositor": "Compositor desconocido detectado",
"unknown-detail": "Este plugin solo admite los compositores Hyprland y Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Cargando...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Mapa de teclas",
"title-hyprland": "Mapa de teclas Hyprland",
"title-niri": "Mapa de teclas Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ESPACIOS DE TRABAJO - CAMBIAR",
"workspace-moving": "ESPACIOS DE TRABAJO - MOVER",
"workspace-mouse": "ESPACIOS DE TRABAJO - RATÓN",
"search-placeholder": "Buscar atajos...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Configuracion de Atajos de Teclado",
"description": "Configure la apariencia y las fuentes de atajos de teclado para el panel.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Tamano de Ventana",
"width": "Ancho:",
"height": "Alto:",
"auto-height": "Auto",
"auto-height-hint": "Cuando 'Auto' esta activado, la altura se ajusta automaticamente al contenido.",
"layout": "Diseno",
"columns": "Numero de columnas:",
"columns-hint": "Mas columnas funcionan mejor con ventanas mas anchas.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Archivos de Configuracion",
"config-paths-description": "Especifique rutas personalizadas a sus archivos de configuracion de atajos. El plugin seguira automaticamente todas las directivas include/source.",
"hyprland-format-hint": "Formato esperado: bind = $mod, KEY, action #\"descripcion\"\nCategorias: # 1. NOMBRE DE CATEGORIA",
"niri-format-hint": "Las categorias se crean con: // #\"Nombre de categoria\"\nDescripciones: hotkey-overlay-title=\"descripcion\"",
"actions": "Acciones",
"refresh-keybinds": "Actualizar Atajos",
"refresh-message": "Los atajos se recargaran al abrir el panel.",
"reset-defaults": "Restablecer Predeterminados",
"reset-message": "La configuracion se ha restablecido a los valores predeterminados.",
"saved": "Configuracion guardada correctamente.",
"keybind-setup": "Configuracion de Atajo",
"keybind-setup-description": "Para abrir el cheatsheet con un atajo de teclado, agrega este bind a la configuracion de tu compositor:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Variable de Tecla Mod",
"mod-var-hint": "El nombre de la variable usada para su tecla Super (ej. $mod o $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Ruta Hyprland",
"niri-path": "Ruta Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Consejo: copia un color hex (p. ej. #FF6B6B) al portapapeles y aparecerá un icono de pegar dentro de la pastilla.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Hoja de trucos de atajos",
"open": "Abrir hoja de trucos",
"settings": "Configuración del plugin"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Raccourcis clavier",
"error": {
"unsupported-compositor": "Compositeur non pris en charge",
"sway-not-supported": "Sway n'est pas encore pris en charge",
"sway-detail": "La prise en charge de Sway pourrait être ajoutée dans une future mise à jour (format similaire à Hyprland)",
"labwc-not-supported": "LabWC n'est pas pris en charge",
"labwc-detail": "LabWC utilise un format de configuration XML incompatible avec ce plugin",
"unknown-compositor": "Compositeur inconnu détecté",
"unknown-detail": "Ce plugin ne prend en charge que les compositeurs Hyprland et Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Chargement...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Carte des touches",
"title-hyprland": "Carte des touches Hyprland",
"title-niri": "Carte des touches Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ESPACES DE TRAVAIL - BASCULER",
"workspace-moving": "ESPACES DE TRAVAIL - DÉPLACER",
"workspace-mouse": "ESPACES DE TRAVAIL - SOURIS",
"search-placeholder": "Rechercher des raccourcis...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Parametres des Raccourcis Clavier",
"description": "Configurez l'apparence et les sources des raccourcis clavier pour le panneau.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Taille de la Fenetre",
"width": "Largeur:",
"height": "Hauteur:",
"auto-height": "Auto",
"auto-height-hint": "Lorsque 'Auto' est active, la hauteur s'ajuste automatiquement au contenu.",
"layout": "Disposition",
"columns": "Nombre de colonnes:",
"columns-hint": "Plus de colonnes fonctionnent mieux avec des fenetres plus larges.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Fichiers de Configuration",
"config-paths-description": "Specifiez des chemins personnalises vers vos fichiers de configuration de raccourcis. Le plugin suivra automatiquement toutes les directives include/source.",
"hyprland-format-hint": "Format attendu: bind = $mod, KEY, action #\"description\"\nCategories: # 1. NOM DE CATEGORIE",
"niri-format-hint": "Les categories sont creees avec: // #\"Nom de categorie\"\nDescriptions: hotkey-overlay-title=\"description\"",
"actions": "Actions",
"refresh-keybinds": "Actualiser les Raccourcis",
"refresh-message": "Les raccourcis seront recharges a l'ouverture du panneau.",
"reset-defaults": "Reinitialiser par Defaut",
"reset-message": "Les parametres ont ete reinitialises par defaut.",
"saved": "Parametres enregistres avec succes.",
"keybind-setup": "Configuration du Raccourci",
"keybind-setup-description": "Pour ouvrir le cheatsheet avec un raccourci clavier, ajoutez ce bind a la configuration de votre compositeur:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Variable de Touche Mod",
"mod-var-hint": "Le nom de la variable utilisée pour votre touche Super (ex. $mod ou $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Chemin Hyprland",
"niri-path": "Chemin Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Astuce : copiez une couleur hex (ex. #FF6B6B) dans le presse-papiers et une icône de collage apparaîtra dans la pastille.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Aide-mémoire des raccourcis",
"open": "Ouvrir l'aide-mémoire",
"settings": "Paramètres du plugin"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "कुञ्जी बाइन्डहरू",
"error": {
"unsupported-compositor": "असमर्थित कम्पोजिटर",
"sway-not-supported": "Sway अझै समर्थित छैन",
"sway-detail": "Sway समर्थन भविष्यको अपडेटमा थप्न सकिन्छ (Hyprland जस्तै ढाँचा)",
"labwc-not-supported": "LabWC समर्थित छैन",
"labwc-detail": "LabWC ले XML कन्फिगरेसन ढाँचा प्रयोग गर्दछ जुन यो प्लगइनसँग मिल्दैन",
"unknown-compositor": "अज्ञात कम्पोजिटर पत्ता लाग्यो",
"unknown-detail": "यो प्लगइनले Hyprland र Niri कम्पोजिटरहरू मात्र समर्थन गर्दछ",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "लोड हो रहा है...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "कीमैप",
"title-hyprland": "Hyprland कीमैप",
"title-niri": "Niri कीमैप",
"title-mango": "MangoWC Keymap",
"workspace-switching": "कार्यक्षेत्र - स्विच करना",
"workspace-moving": "कार्यक्षेत्र - स्थानांतरण",
"workspace-mouse": "कार्यक्षेत्र - माउस",
"search-placeholder": "कीबाइंड खोजें...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "कीबाइंड चीटशीट सेटिंग्स",
"description": "कीबाइंड चीटशीट पैनल के लिए उपस्थिति और कीबाइंड स्रोतों को कॉन्फ़िगर करें।",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "विंडो आकार",
"width": "चौड़ाई:",
"height": "ऊंचाई:",
"auto-height": "स्वचालित",
"auto-height-hint": "जब 'स्वचालित' सक्षम है, ऊंचाई सामग्री के आधार पर स्वचालित रूप से समायोजित होती है।",
"layout": "लेआउट",
"columns": "कॉलम की संख्या:",
"columns-hint": "अधिक कॉलम चौड़ी विंडो के साथ बेहतर काम करते हैं।",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "कॉन्फ़िगरेशन फ़ाइलें",
"config-paths-description": "अपनी कीबाइंड कॉन्फ़िगरेशन फ़ाइलों के लिए कस्टम पथ निर्दिष्ट करें। प्लगइन स्वचालित रूप से आपके कंपोजिटर के आधार पर उपयुक्त फ़ाइल को पार्स करेगा।",
"hyprland-format-hint": "अपेक्षित प्रारूप: bind = $mod, KEY, action #\"description\"\nश्रेणियाँ: # 1. CATEGORY NAME",
"niri-format-hint": "श्रेणियाँ: // #\"Category Name\"\nविवरण: hotkey-overlay-title=\"description\"",
"actions": "क्रियाएं",
"refresh-keybinds": "कीबाइंड रीफ्रेश करें",
"refresh-message": "जब आप पैनल खोलेंगे तो कीबाइंड पुनः लोड होंगे।",
"reset-defaults": "डिफ़ॉल्ट पर रीसेट करें",
"reset-message": "सेटिंग्स डिफ़ॉल्ट पर रीसेट कर दी गई हैं।",
"saved": "सेटिंग्स सफलतापूर्वक सहेजी गईं।",
"keybind-setup": "कीबाइंड सेटअप",
"keybind-setup-description": "कीबोर्ड शॉर्टकट के साथ कीबाइंड चीटशीट खोलने के लिए, अपने कंपोजिटर कॉन्फ़िग में यह बाइंड जोड़ें:",
"keybind-example-hyprland": "Hyprland उदाहरण: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin togglePanel keybind-cheatsheet",
"keybind-example-niri": "Niri उदाहरण: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "मॉड कुंजी वेरिएबल",
"mod-var-hint": "आपकी Super कुंजी के लिए उपयोग किया जाने वाला वेरिएबल नाम (जैसे, $mod या $mainMod)।",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland पथ",
"niri-path": "Niri पथ",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "सुझाव: क्लिपबोर्ड में कोई हेक्स रंग (जैसे #FF6B6B) कॉपी करें, पिल में पेस्ट आइकन दिखेगा।",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "कीबाइंड चीटशीट",
"open": "चीटशीट खोलें",
"settings": "प्लगइन सेटिंग्स"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Billentyűparancsok",
"error": {
"unsupported-compositor": "Nem támogatott kompozitor",
"sway-not-supported": "A Sway még nem támogatott",
"sway-detail": "A Sway támogatás egy jövőbeli frissítésben hozzáadható (hasonló formátum, mint a Hyprland)",
"labwc-not-supported": "A LabWC nem támogatott",
"labwc-detail": "A LabWC XML konfigurációs formátumot használ, amely nem kompatibilis ezzel a bővítménnyel",
"unknown-compositor": "Ismeretlen kompozitor észlelve",
"unknown-detail": "Ez a bővítmény csak a Hyprland és Niri kompozitorokat támogatja",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Betoltes...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Billentyűzetkiosztás",
"title-hyprland": "Hyprland billentyűzetkiosztás",
"title-niri": "Niri billentyűzetkiosztás",
"title-mango": "MangoWC Keymap",
"workspace-switching": "MUNKATERÜLETEK - VÁLTÁS",
"workspace-moving": "MUNKATERÜLETEK - ÁTHELYEZÉS",
"workspace-mouse": "MUNKATERÜLETEK - EGÉR",
"search-placeholder": "Billentyűparancsok keresése...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Billentyuparancsok Beallitasai",
"description": "Allitsa be a billentyuparancsok megjeleniteset es forrасait a panelhez.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Ablak Merete",
"width": "Szelesseg:",
"height": "Magassag:",
"auto-height": "Auto",
"auto-height-hint": "Ha az 'Automatikus' be van kapcsolva, a magassag automatikusan igazodik a tartalomhoz.",
"layout": "Elrendezes",
"columns": "Oszlopok szama:",
"columns-hint": "Tobb oszlop jobban mukodik szelessebb ablakokkal.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Konfiguracios Fajlok",
"config-paths-description": "Adjon meg egyedi utvonalakat a billentyuparancs-konfiguracios fajlokhoz. A beepulo automatikusan koveti az osszes include/source direktívat.",
"hyprland-format-hint": "Elvart formatum: bind = $mod, KEY, action #\"leiras\"\nKategoriak: # 1. KATEGORIA NEV",
"niri-format-hint": "A kategoriakat így hozzuk letre: // #\"Kategoria nev\"\nLeirasok: hotkey-overlay-title=\"leiras\"",
"actions": "Muveletek",
"refresh-keybinds": "Billentyuparancsok Frissitese",
"refresh-message": "A billentyuparancsok ujratoltodnek a panel megnyitasakor.",
"reset-defaults": "Alapertelmezettek Visszaallitasa",
"reset-message": "A beallitasok visszaallitva az alapertelmezettre.",
"saved": "Beallitasok sikeresen mentve.",
"keybind-setup": "Billentyuparancs Beallitasa",
"keybind-setup-description": "A cheatsheet billentyuparancsal valo megnyitasahoz adja hozzá ezt a bind-ot a kompozitor konfiguraciojához:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod Billentyuvaltozo",
"mod-var-hint": "A Super billentyuhoz hasznalt valtozó neve (pl. $mod vagy $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland útvonal",
"niri-path": "Niri útvonal",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Tipp: másolj egy hex színt (pl. #FF6B6B) a vágólapra, és a pirulában megjelenik egy beillesztés ikon.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Billentyűparancs súgó",
"open": "Súgó megnyitása",
"settings": "Plugin beállítások"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Scorciatoie da tastiera",
"error": {
"unsupported-compositor": "Compositor non supportato",
"sway-not-supported": "Sway non è ancora supportato",
"sway-detail": "Il supporto per Sway potrebbe essere aggiunto in un aggiornamento futuro (formato simile a Hyprland)",
"labwc-not-supported": "LabWC non è supportato",
"labwc-detail": "LabWC utilizza un formato di configurazione XML incompatibile con questo plugin",
"unknown-compositor": "Rilevato compositor sconosciuto",
"unknown-detail": "Questo plugin supporta solo i compositor Hyprland e Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Caricamento...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Mappa tasti",
"title-hyprland": "Mappa tasti Hyprland",
"title-niri": "Mappa tasti Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "SPAZI DI LAVORO - CAMBIO",
"workspace-moving": "SPAZI DI LAVORO - SPOSTAMENTO",
"workspace-mouse": "SPAZI DI LAVORO - MOUSE",
"search-placeholder": "Cerca scorciatoie...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Impostazioni Scorciatoie da Tastiera",
"description": "Configura l'aspetto e le fonti delle scorciatoie per il pannello.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Dimensione Finestra",
"width": "Larghezza:",
"height": "Altezza:",
"auto-height": "Auto",
"auto-height-hint": "Quando 'Auto' e attivo, l'altezza si adatta automaticamente al contenuto.",
"layout": "Layout",
"columns": "Numero di colonne:",
"columns-hint": "Piu colonne funzionano meglio con finestre piu larghe.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "File di Configurazione",
"config-paths-description": "Specifica percorsi personalizzati per i file di configurazione delle scorciatoie. Il plugin seguira automaticamente tutte le direttive include/source.",
"hyprland-format-hint": "Formato previsto: bind = $mod, KEY, action #\"descrizione\"\nCategorie: # 1. NOME CATEGORIA",
"niri-format-hint": "Le categorie vengono create con: // #\"Nome categoria\"\nDescrizioni: hotkey-overlay-title=\"descrizione\"",
"actions": "Azioni",
"refresh-keybinds": "Aggiorna Scorciatoie",
"refresh-message": "Le scorciatoie verranno ricaricate all'apertura del pannello.",
"reset-defaults": "Ripristina Predefiniti",
"reset-message": "Le impostazioni sono state ripristinate ai valori predefiniti.",
"saved": "Impostazioni salvate con successo.",
"keybind-setup": "Configurazione Scorciatoia",
"keybind-setup-description": "Per aprire il cheatsheet con una scorciatoia, aggiungi questo bind alla configurazione del tuo compositor:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Variabile Tasto Mod",
"mod-var-hint": "Il nome della variabile usata per il tasto Super (es. $mod o $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Percorso Hyprland",
"niri-path": "Percorso Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Suggerimento: copia un colore hex (es. #FF6B6B) negli appunti e apparirà un'icona di incolla dentro la pillola.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Scheda scorciatoie",
"open": "Apri scheda",
"settings": "Impostazioni plugin"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "キーバインド",
"error": {
"unsupported-compositor": "サポートされていないコンポジター",
"sway-not-supported": "Swayはまだサポートされていません",
"sway-detail": "Swayのサポートは将来のアップデートで追加される可能性があります(Hyprlandと同様の形式)",
"labwc-not-supported": "LabWCはサポートされていません",
"labwc-detail": "LabWCはこのプラグインと互換性のないXML設定形式を使用しています",
"unknown-compositor": "不明なコンポジターが検出されました",
"unknown-detail": "このプラグインはHyprlandとNiriコンポジターのみをサポートしています",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "読み込み中...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "キーマップ",
"title-hyprland": "Hyprland キーマップ",
"title-niri": "Niri キーマップ",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ワークスペース - 切り替え",
"workspace-moving": "ワークスペース - 移動",
"workspace-mouse": "ワークスペース - マウス",
"search-placeholder": "キーバインドを検索...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "キーバインド一覧の設定",
"description": "パネルの外観とキーバインドソースを設定します。",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "ウィンドウサイズ",
"width": "幅:",
"height": "高さ:",
"auto-height": "自動",
"auto-height-hint": "「自動」が有効な場合、高さはコンテンツに合わせて自動調整されます。",
"layout": "レイアウト",
"columns": "列数:",
"columns-hint": "列が多いほど、幅の広いウィンドウで効果的です。",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "設定ファイル",
"config-paths-description": "キーバインド設定ファイルへのカスタムパスを指定します。プラグインは自動的にすべてのinclude/sourceディレクティブに従います。",
"hyprland-format-hint": "期待される形式: bind = $mod, KEY, action #\"説明\"\nカテゴリ: # 1. カテゴリ名",
"niri-format-hint": "カテゴリは次の形式で作成: // #\"カテゴリ名\"\n説明: hotkey-overlay-title=\"説明\"",
"actions": "アクション",
"refresh-keybinds": "キーバインドを更新",
"refresh-message": "パネルを開くとキーバインドが再読み込みされます。",
"reset-defaults": "デフォルトにリセット",
"reset-message": "設定がデフォルトにリセットされました。",
"saved": "設定が正常に保存されました。",
"keybind-setup": "キーバインド設定",
"keybind-setup-description": "キーボードショートカットでチートシートを開くには、このバインドをコンポジター設定に追加してください:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Modキー変数",
"mod-var-hint": "Superキーに使用される変数名(例: $mod または $mainMod)。",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland パス",
"niri-path": "Niri パス",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "自動",
"color-paste-hint": "ヒント: 16 進カラー (例: #FF6B6B) をクリップボードにコピーすると、ピル内に貼り付けアイコンが表示されます。",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "キーバインドチートシート",
"open": "チートシートを開く",
"settings": "プラグイン設定"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "키바인드",
"error": {
"unsupported-compositor": "지원되지 않는 컴포지터",
"sway-not-supported": "Sway는 아직 지원되지 않습니다",
"sway-detail": "Sway 지원은 향후 업데이트에서 추가될 수 있습니다 (Hyprland와 유사한 형식)",
"labwc-not-supported": "LabWC는 지원되지 않습니다",
"labwc-detail": "LabWC는 이 플러그인과 호환되지 않는 XML 구성 형식을 사용합니다",
"unknown-compositor": "알 수 없는 컴포지터가 감지되었습니다",
"unknown-detail": "이 플러그인은 Hyprland 및 Niri 컴포지터만 지원합니다",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "로딩 중...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "키맵",
"title-hyprland": "Hyprland 키맵",
"title-niri": "Niri 키맵",
"title-mango": "MangoWC Keymap",
"workspace-switching": "작업공간 - 전환",
"workspace-moving": "작업공간 - 이동",
"workspace-mouse": "작업공간 - 마우스",
"search-placeholder": "단축키 검색...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "키바인드 치트시트 설정",
"description": "키바인드 치트시트 패널의 모양과 키바인드 소스를 구성합니다.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "창 크기",
"width": "너비:",
"height": "높이:",
"auto-height": "자동",
"auto-height-hint": "'자동'이 활성화되면 높이가 콘텐츠에 따라 자동으로 조정됩니다.",
"layout": "레이아웃",
"columns": "열 수:",
"columns-hint": "더 많은 열은 넓은 창에서 더 잘 작동합니다.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "구성 파일",
"config-paths-description": "키바인드 구성 파일의 사용자 정의 경로를 지정하세요. 플러그인은 컴포지터에 따라 적절한 파일을 자동으로 파싱합니다.",
"hyprland-format-hint": "예상 형식: bind = $mod, KEY, action #\"description\"\n카테고리: # 1. CATEGORY NAME",
"niri-format-hint": "카테고리: // #\"Category Name\"\n설명: hotkey-overlay-title=\"description\"",
"actions": "작업",
"refresh-keybinds": "키바인드 새로고침",
"refresh-message": "패널을 열면 키바인드가 다시 로드됩니다.",
"reset-defaults": "기본값으로 재설정",
"reset-message": "설정이 기본값으로 재설정되었습니다.",
"saved": "설정이 성공적으로 저장되었습니다.",
"keybind-setup": "키바인드 설정",
"keybind-setup-description": "키보드 단축키로 키바인드 치트시트를 열려면 컴포지터 구성에 이 바인드를 추가하세요:",
"keybind-example-hyprland": "Hyprland 예시: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin togglePanel keybind-cheatsheet",
"keybind-example-niri": "Niri 예시: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod 키 변수",
"mod-var-hint": "Super 키에 사용되는 변수 이름 (예: $mod 또는 $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland 경로",
"niri-path": "Niri 경로",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "자동",
"color-paste-hint": "팁: 16진수 색상(예: #FF6B6B)을 클립보드에 복사하면 알약 내부에 붙여넣기 아이콘이 나타납니다.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "키바인드 치트시트",
"open": "치트시트 열기",
"settings": "플러그인 설정"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "بەستنەوەی کلیلەکان",
"error": {
"unsupported-compositor": "کۆمپۆزیتەرێکی پشتگیری نەکراو",
"sway-not-supported": "Sway هێشتا پشتگیری ناکرێت",
"sway-detail": "پشتگیری Sway دەکرێت لە نوێکردنەوەیەکی داهاتوودا زیاد بکرێت (فۆرماتێکی هاوشێوەی Hyprland)",
"labwc-not-supported": "LabWC پشتگیری ناکرێت",
"labwc-detail": "LabWC فۆرماتی ڕێکخستنی XML بەکاردەهێنێت کە لەگەڵ ئەم پێوەکراوەدا گونجاو نییە",
"unknown-compositor": "کۆمپۆزیتەرێکی نەناسراو دۆزرایەوە",
"unknown-detail": "ئەم پێوەکراوە تەنها کۆمپۆزیتەرەکانی Hyprland و Niri پشتگیری دەکات",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Barkirin...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Nexşeya Bişkokan",
"title-hyprland": "Nexşeya Bişkokan a Hyprland",
"title-niri": "Nexşeya Bişkokan a Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "QADÊN XEBATÊ - GUHEZTIN",
"workspace-moving": "QADÊN XEBATÊ - VEGUHESTIN",
"workspace-mouse": "QADÊN XEBATÊ - MIŞK",
"search-placeholder": "Lêgerîna kurteyan...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Mîhengên Kurterêyên Klavyeyê",
"description": "Xuyanî û çavkaniyên kurterêyên klavyeyê ji bo panelê veavakin.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Mezinahiya Paceyê",
"width": "Firehî:",
"height": "Bilindî:",
"auto-height": "Xweber",
"auto-height-hint": "Dema 'Xweber' çalak be, bilindî li gorî naverokê xweber tê guhartin.",
"layout": "Rêzkirin",
"columns": "Hejmara stûnan:",
"columns-hint": "Stûnên zêdetir bi paceyên berfirehtir baştir dixebitin.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Pelên Veavakirinê",
"config-paths-description": "Rêyên taybet bo pelên veavakirina kurterêyên klavyeyê diyar bikin. Pêvek bi xweber hemû rêbernameyên include/source dişopîne.",
"hyprland-format-hint": "Formata hêvîdar: bind = $mod, KEY, action #\"rave\"\nBeşan: # 1. NAVÊ BEŞÊ",
"niri-format-hint": "Beş bi vî awayî têne afirandin: // #\"Navê beşê\"\nRave: hotkey-overlay-title=\"rave\"",
"actions": "Çalakî",
"refresh-keybinds": "Kurterêyan Nûve Bike",
"refresh-message": "Kurterêyên klavyeyê dema panelê vebûyî nû dibin.",
"reset-defaults": "Vegerîne Bingehîn",
"reset-message": "Mîhengan vegeriyan nirxên bingehîn.",
"saved": "Mîhengan bi serfirazî hate tomarkirin.",
"keybind-setup": "Mîhengkirina Kurterêyê",
"keybind-setup-description": "Ji bo vekirana cheatsheet bi kurterêyek, ev bind li veavakirina compositor xwe zêde bikin:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Guhêrbarê Bişkoja Mod",
"mod-var-hint": "Navê guhêrbarê ku ji bo bişkoja Super tê bikaranîn (mînak $mod an $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Rêça Hyprland",
"niri-path": "Rêça Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Şîret: rengekî hex (mînak #FF6B6B) kopî bike li clipboard, îkona paste di pill de xuya dibe.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Çavkaniya Kurterêyan",
"open": "Çavkaniyê veke",
"settings": "Mîhengên Pêvek"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Sneltoetsen",
"error": {
"unsupported-compositor": "Niet-ondersteunde compositor",
"sway-not-supported": "Sway wordt nog niet ondersteund",
"sway-detail": "Sway-ondersteuning kan worden toegevoegd in een toekomstige update (vergelijkbaar formaat met Hyprland)",
"labwc-not-supported": "LabWC wordt niet ondersteund",
"labwc-detail": "LabWC gebruikt XML-configuratieformaat dat incompatibel is met deze plugin",
"unknown-compositor": "Onbekende compositor gedetecteerd",
"unknown-detail": "Deze plugin ondersteunt alleen Hyprland- en Niri-compositors",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Laden...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Toetsenbordindeling",
"title-hyprland": "Hyprland toetsenbordindeling",
"title-niri": "Niri toetsenbordindeling",
"title-mango": "MangoWC Keymap",
"workspace-switching": "WERKRUIMTEN - WISSELEN",
"workspace-moving": "WERKRUIMTEN - VERPLAATSEN",
"workspace-mouse": "WERKRUIMTEN - MUIS",
"search-placeholder": "Zoek sneltoetsen...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Sneltoetsen Overzicht Instellingen",
"description": "Configureer het uiterlijk en de bronnen van sneltoetsen voor het paneel.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Venstergrootte",
"width": "Breedte:",
"height": "Hoogte:",
"auto-height": "Auto",
"auto-height-hint": "Wanneer 'Auto' is ingeschakeld, past de hoogte zich automatisch aan de inhoud aan.",
"layout": "Indeling",
"columns": "Aantal kolommen:",
"columns-hint": "Meer kolommen werken beter met bredere vensters.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Configuratiebestanden",
"config-paths-description": "Geef aangepaste paden op naar uw sneltoetsen configuratiebestanden. De plugin volgt automatisch alle include/source richtlijnen.",
"hyprland-format-hint": "Verwacht formaat: bind = $mod, KEY, action #\"beschrijving\"\nCategorieen: # 1. CATEGORIENAAM",
"niri-format-hint": "Categorieen worden aangemaakt met: // #\"Categorienaam\"\nBeschrijvingen: hotkey-overlay-title=\"beschrijving\"",
"actions": "Acties",
"refresh-keybinds": "Sneltoetsen Vernieuwen",
"refresh-message": "Sneltoetsen worden opnieuw geladen wanneer u het paneel opent.",
"reset-defaults": "Standaardwaarden Herstellen",
"reset-message": "Instellingen zijn teruggezet naar standaardwaarden.",
"saved": "Instellingen succesvol opgeslagen.",
"keybind-setup": "Sneltoets Instelling",
"keybind-setup-description": "Om het cheatsheet met een sneltoets te openen, voeg deze binding toe aan je compositor configuratie:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod-toets Variabele",
"mod-var-hint": "De variabelenaam die wordt gebruikt voor uw Super-toets (bijv. $mod of $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland pad",
"niri-path": "Niri pad",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Tip: kopieer een hex-kleur (bijv. #FF6B6B) naar het klembord en er verschijnt een plak-icoon in de pil.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Sneltoetsen Spiekbriefje",
"open": "Spiekbriefje openen",
"settings": "Plugin instellingen"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Tastebindingar",
"error": {
"unsupported-compositor": "Ikkje støtta compositor",
"sway-not-supported": "Sway er ikkje støtta enno",
"sway-detail": "Sway-støtte kan leggast til i ei framtidig oppdatering (liknande format som Hyprland)",
"labwc-not-supported": "LabWC er ikkje støtta",
"labwc-detail": "LabWC brukar XML-konfigurasjonsformat som er inkompatibelt med denne plugin-en",
"unknown-compositor": "Ukjend compositor oppdaga",
"unknown-detail": "Denne plugin-en støttar berre Hyprland- og Niri-compositorar",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Lastar...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Tastatur-kart",
"title-hyprland": "Hyprland tastatur-kart",
"title-niri": "Niri tastatur-kart",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ARBEIDSOMRÅDE - BYTTE",
"workspace-moving": "ARBEIDSOMRÅDE - FLYTTE",
"workspace-mouse": "ARBEIDSOMRÅDE - MUS",
"search-placeholder": "Søk snarvegar...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Tastesnarveg-jukselapp Innstillingar",
"description": "Konfigurer utsjånad og tastesnarveg-kjelder for jukselapp-panelet.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Vindaugsstorleik",
"width": "Breidde:",
"height": "Høgde:",
"auto-height": "Auto",
"auto-height-hint": "Når 'Auto' er aktivert, justerer høgda seg automatisk basert på innhald.",
"layout": "Oppsett",
"columns": "Tal på kolonnar:",
"columns-hint": "Fleire kolonnar fungerer betre med breiare vindauge.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Konfigurasjonsfiler",
"config-paths-description": "Spesifiser eigne stiar til tastesnarveg-konfigurasjonsfilene dine. Programtillegget vil automatisk parse rett fil basert på kompositoren din.",
"hyprland-format-hint": "Forventa format: bind = $mod, KEY, action #\"description\"\nKategoriar: # 1. CATEGORY NAME",
"niri-format-hint": "Kategoriar: // #\"Category Name\"\nSkildringar: hotkey-overlay-title=\"description\"",
"actions": "Handlingar",
"refresh-keybinds": "Oppdater tastesnarvegar",
"refresh-message": "Tastesnarvegar vil bli lasta på nytt når du opnar panelet.",
"reset-defaults": "Tilbakestill til standard",
"reset-message": "Innstillingar er tilbakestilt til standard.",
"saved": "Innstillingar lagra.",
"keybind-setup": "Tastesnarveg-oppsett",
"keybind-setup-description": "For å opne tastesnarveg-jukselappen med ein hurtigtast, legg til denne bindinga i kompositor-konfigurasjonen din:",
"keybind-example-hyprland": "Hyprland eksempel: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin togglePanel keybind-cheatsheet",
"keybind-example-niri": "Niri eksempel: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod-tast variabel",
"mod-var-hint": "Variabelnamnet brukt for Super-tasten din (t.d. $mod eller $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland-sti",
"niri-path": "Niri-sti",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Tips: kopier ein hex-farge (t.d. #FF6B6B) til utklippstavla, så kjem eit lim-inn-ikon i pilla.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Tastesnarveg-jukselapp",
"open": "Opne jukselapp",
"settings": "Programtillegg-innstillingar"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Skróty klawiszowe",
"error": {
"unsupported-compositor": "Nieobsługiwany kompozytor",
"sway-not-supported": "Sway nie jest jeszcze obsługiwany",
"sway-detail": "Obsługa Sway może zostać dodana w przyszłej aktualizacji (podobny format do Hyprland)",
"labwc-not-supported": "LabWC nie jest obsługiwany",
"labwc-detail": "LabWC używa formatu konfiguracji XML, który jest niekompatybilny z tą wtyczką",
"unknown-compositor": "Wykryto nieznany kompozytor",
"unknown-detail": "Ta wtyczka obsługuje tylko kompozytory Hyprland i Niri",
"hyprctl-failed": "hyprctl binds nie powiodło się - czy Hyprland działa?"
},
"panel": {
"loading": "Ladowanie...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Mapa klawiszy",
"title-hyprland": "Mapa klawiszy Hyprland",
"title-niri": "Mapa klawiszy Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "OBSZARY ROBOCZE - PRZEŁĄCZANIE",
"workspace-moving": "OBSZARY ROBOCZE - PRZENOSZENIE",
"workspace-mouse": "OBSZARY ROBOCZE - MYSZ",
"search-placeholder": "Szukaj skrótów...",
"no-description": "(brak opisu)",
"other": "Inne",
"undescribed": "Bez opisu",
"add-description": "Dodaj opis",
"add-description-placeholder": "Opis...",
"save-description": "Zapisz",
"cancel": "Anuluj",
"hide-bind": "Ukryj ten skrót"
},
"settings": {
"title": "Ustawienia Skrotow Klawiszowych",
"description": "Skonfiguruj wyglad i zrodla skrotow klawiszowych dla panelu.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Rozmiar Okna",
"width": "Szerokosc:",
"height": "Wysokosc:",
"auto-height": "Auto",
"auto-height-hint": "Gdy 'Auto' jest wlaczone, wysokosc dostosowuje sie automatycznie do zawartosci.",
"layout": "Uklad",
"columns": "Liczba kolumn:",
"columns-hint": "Wiecej kolumn dziala lepiej z szerszymi oknami.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Pliki Konfiguracyjne",
"config-paths-description": "Okresl wlasne sciezki do plikow konfiguracyjnych skrotow klawiszowych. Plugin automatycznie przetworzy odpowiedni plik na podstawie Twojego kompozytora i podazy za dyrektywami include/source.",
"hyprland-format-hint": "Oczekiwany format: bind = $mod, KEY, action #\"opis\"\nKategorie: # 1. NAZWA KATEGORII",
"niri-format-hint": "Kategorie tworzy sie przez: // #\"Nazwa kategorii\"\nOpisy: hotkey-overlay-title=\"opis\"",
"actions": "Akcje",
"refresh-keybinds": "Odswiez Skroty",
"refresh-message": "Skroty zostana przeladowane po otwarciu panelu.",
"reset-defaults": "Przywroc Domyslne",
"reset-message": "Ustawienia zostaly przywrocone do domyslnych.",
"saved": "Ustawienia zapisane pomyslnie.",
"keybind-setup": "Konfiguracja Skrotu",
"keybind-setup-description": "Aby otworzyc cheatsheet skrotem klawiszowym, dodaj ten bind do konfiguracji kompozytora:",
"keybind-example-hyprland": "Przyklad Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Przyklad Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Zmienna klawisza Mod",
"mod-var-hint": "Nazwa zmiennej używanej dla klawisza Super (np. $mod lub $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Ścieżka Hyprland",
"niri-path": "Ścieżka Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Wskazówka: skopiuj kod koloru hex (np. #FF6B6B) do schowka, a w pastylce pojawi się ikona wklejania.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Ścieżka Hyprland Lua",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: używa hyprland.lua przez `hyprctl binds` jeśli istnieje, w innym wypadku starego parsera .conf.",
"undescribed-title": "Skróty bez opisu",
"overrides-summary": "Ukryte: {hidden} - Własne opisy: {custom}",
"restore-hidden": "Przywróć ukryte",
"restore-hidden-message": "Ukryte skróty przywrócone.",
"clear-overrides": "Wyczyść wszystkie nadpisania",
"clear-overrides-message": "Wszystkie nadpisania skrótów wyczyszczone."
},
"barwidget": {
"tooltip": "Ściągawka skrótów klawiszowych",
"open": "Otwórz ściągawkę",
"settings": "Ustawienia wtyczki"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Atalhos de teclado",
"error": {
"unsupported-compositor": "Compositor não suportado",
"sway-not-supported": "Sway ainda não é suportado",
"sway-detail": "O suporte ao Sway pode ser adicionado em uma atualização futura (formato semelhante ao Hyprland)",
"labwc-not-supported": "LabWC não é suportado",
"labwc-detail": "LabWC usa formato de configuração XML que é incompatível com este plugin",
"unknown-compositor": "Compositor desconhecido detectado",
"unknown-detail": "Este plugin suporta apenas os compositores Hyprland e Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Carregando...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Mapa de teclas",
"title-hyprland": "Mapa de teclas Hyprland",
"title-niri": "Mapa de teclas Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ESPAÇOS DE TRABALHO - ALTERNAR",
"workspace-moving": "ESPAÇOS DE TRABALHO - MOVER",
"workspace-mouse": "ESPAÇOS DE TRABALHO - MOUSE",
"search-placeholder": "Buscar atalhos...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Configuracoes de Atalhos de Teclado",
"description": "Configure a aparencia e as fontes de atalhos de teclado para o painel.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Tamanho da Janela",
"width": "Largura:",
"height": "Altura:",
"auto-height": "Auto",
"auto-height-hint": "Quando 'Auto' esta ativado, a altura se ajusta automaticamente ao conteudo.",
"layout": "Layout",
"columns": "Numero de colunas:",
"columns-hint": "Mais colunas funcionam melhor com janelas mais largas.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Arquivos de Configuracao",
"config-paths-description": "Especifique caminhos personalizados para seus arquivos de configuracao de atalhos. O plugin seguira automaticamente todas as diretivas include/source.",
"hyprland-format-hint": "Formato esperado: bind = $mod, KEY, action #\"descricao\"\nCategorias: # 1. NOME DA CATEGORIA",
"niri-format-hint": "Categorias sao criadas com: // #\"Nome da categoria\"\nDescricoes: hotkey-overlay-title=\"descricao\"",
"actions": "Acoes",
"refresh-keybinds": "Atualizar Atalhos",
"refresh-message": "Os atalhos serao recarregados ao abrir o painel.",
"reset-defaults": "Restaurar Padroes",
"reset-message": "As configuracoes foram restauradas para os valores padrao.",
"saved": "Configuracoes salvas com sucesso.",
"keybind-setup": "Configuracao de Atalho",
"keybind-setup-description": "Para abrir o cheatsheet com um atalho de teclado, adicione este bind a configuracao do seu compositor:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Variável da Tecla Mod",
"mod-var-hint": "O nome da variável usada para sua tecla Super (ex. $mod ou $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Caminho Hyprland",
"niri-path": "Caminho Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Dica: copie uma cor hex (ex. #FF6B6B) para a área de transferência e um ícone de colar aparecerá dentro da pílula.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Folha de dicas de atalhos",
"open": "Abrir folha de dicas",
"settings": "Configurações do plugin"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Горячие клавиши",
"error": {
"unsupported-compositor": "Неподдерживаемый композитор",
"sway-not-supported": "Sway пока не поддерживается",
"sway-detail": "Поддержка Sway может быть добавлена в будущем обновлении (формат похож на Hyprland)",
"labwc-not-supported": "LabWC не поддерживается",
"labwc-detail": "LabWC использует формат конфигурации XML, несовместимый с этим плагином",
"unknown-compositor": "Обнаружен неизвестный композитор",
"unknown-detail": "Этот плагин поддерживает только композиторы Hyprland и Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Загрузка...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Раскладка клавиш",
"title-hyprland": "Раскладка клавиш Hyprland",
"title-niri": "Раскладка клавиш Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "РАБОЧИЕ ОБЛАСТИ - ПЕРЕКЛЮЧЕНИЕ",
"workspace-moving": "РАБОЧИЕ ОБЛАСТИ - ПЕРЕМЕЩЕНИЕ",
"workspace-mouse": "РАБОЧИЕ ОБЛАСТИ - МЫШЬ",
"search-placeholder": "Поиск сочетаний...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Настройки горячих клавиш",
"description": "Настройте внешний вид и источники горячих клавиш для панели.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Размер окна",
"width": "Ширина:",
"height": "Высота:",
"auto-height": "Авто",
"auto-height-hint": "Когда включено 'Авто', высота автоматически подстраивается под содержимое.",
"layout": "Макет",
"columns": "Количество колонок:",
"columns-hint": "Больше колонок лучше работает с более широкими окнами.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Файлы конфигурации",
"config-paths-description": "Укажите пользовательские пути к файлам конфигурации горячих клавиш. Плагин автоматически следует всем директивам include/source.",
"hyprland-format-hint": "Ожидаемый формат: bind = $mod, KEY, action #\"описание\"\nКатегории: # 1. НАЗВАНИЕ КАТЕГОРИИ",
"niri-format-hint": "Категории создаются с помощью: // #\"Название категории\"\nОписания: hotkey-overlay-title=\"описание\"",
"actions": "Действия",
"refresh-keybinds": "Обновить клавиши",
"refresh-message": "Горячие клавиши будут перезагружены при открытии панели.",
"reset-defaults": "Сбросить настройки",
"reset-message": "Настройки сброшены до значений по умолчанию.",
"saved": "Настройки успешно сохранены.",
"keybind-setup": "Настройка клавиши",
"keybind-setup-description": "Чтобы открыть шпаргалку с помощью клавиши, добавьте этот bind в конфигурацию композитора:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Переменная клавиши Mod",
"mod-var-hint": "Имя переменной, используемой для клавиши Super (например, $mod или $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Путь Hyprland",
"niri-path": "Путь Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "авто",
"color-paste-hint": "Совет: скопируйте hex-цвет (например #FF6B6B) в буфер обмена — в пилюле появится иконка вставки.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Шпаргалка горячих клавиш",
"open": "Открыть шпаргалку",
"settings": "Настройки плагина"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Tangentbindningar",
"error": {
"unsupported-compositor": "Compositor stöds inte",
"sway-not-supported": "Sway stöds ännu inte",
"sway-detail": "Sway-stöd kan läggas till i en framtida uppdatering (liknande format som Hyprland)",
"labwc-not-supported": "LabWC stöds inte",
"labwc-detail": "LabWC använder XML-konfigurationsformat som är inkompatibelt med detta plugin",
"unknown-compositor": "Okänd compositor upptäckt",
"unknown-detail": "Detta plugin stöder endast Hyprland- och Niri-compositors",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Laddar...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Tangentkarta",
"title-hyprland": "Hyprland tangentkarta",
"title-niri": "Niri tangentkarta",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ARBETSYTOR - BYTA",
"workspace-moving": "ARBETSYTOR - FLYTTA",
"workspace-mouse": "ARBETSYTOR - MUS",
"search-placeholder": "Sök genvägar...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Tangentbordsgenvägar Inställningar",
"description": "Konfigurera utseende och tangentbordsgenvägskällor för fuskbladspanelen.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Fönsterstorlek",
"width": "Bredd:",
"height": "Höjd:",
"auto-height": "Auto",
"auto-height-hint": "När 'Auto' är aktiverat justeras höjden automatiskt baserat på innehåll.",
"layout": "Layout",
"columns": "Antal kolumner:",
"columns-hint": "Fler kolumner fungerar bättre med bredare fönster.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Konfigurationsfiler",
"config-paths-description": "Ange anpassade sökvägar till dina tangentbordsgenvägskonfigurationsfiler. Tillägget kommer automatiskt att tolka rätt fil baserat på din compositor.",
"hyprland-format-hint": "Förväntat format: bind = $mod, KEY, action #\"description\"\nKategorier: # 1. CATEGORY NAME",
"niri-format-hint": "Kategorier: // #\"Category Name\"\nBeskrivningar: hotkey-overlay-title=\"description\"",
"actions": "Åtgärder",
"refresh-keybinds": "Uppdatera tangentbordsgenvägar",
"refresh-message": "Tangentbordsgenvägar laddas om när du öppnar panelen.",
"reset-defaults": "Återställ till standard",
"reset-message": "Inställningarna har återställts till standard.",
"saved": "Inställningar sparade.",
"keybind-setup": "Tangentbordsgenväg inställning",
"keybind-setup-description": "För att öppna tangentbordsgenvägsfuskbladet med en kortkommando, lägg till denna bindning i din compositor-konfiguration:",
"keybind-example-hyprland": "Hyprland exempel: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin togglePanel keybind-cheatsheet",
"keybind-example-niri": "Niri exempel: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod-tangent variabel",
"mod-var-hint": "Variabelnamnet som används för din Super-tangent (t.ex. $mod eller $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland-sökväg",
"niri-path": "Niri-sökväg",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "Tips: kopiera en hex-färg (t.ex. #FF6B6B) till urklipp och en klistra in-ikon visas i pillret.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Tangentbordsgenvägar",
"open": "Öppna fuskblad",
"settings": "Plugin-inställningar"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Kısayol tuşları",
"error": {
"unsupported-compositor": "Desteklenmeyen kompozitör",
"sway-not-supported": "Sway henüz desteklenmiyor",
"sway-detail": "Sway desteği gelecekteki bir güncellemede eklenebilir (Hyprland'a benzer format)",
"labwc-not-supported": "LabWC desteklenmiyor",
"labwc-detail": "LabWC bu eklentiyle uyumlu olmayan XML yapılandırma formatı kullanıyor",
"unknown-compositor": "Bilinmeyen kompozitör algılandı",
"unknown-detail": "Bu eklenti yalnızca Hyprland ve Niri kompozitörlerini destekler",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Yukleniyor...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Tuş haritası",
"title-hyprland": "Hyprland tuş haritası",
"title-niri": "Niri tuş haritası",
"title-mango": "MangoWC Keymap",
"workspace-switching": "ÇALIŞMA ALANLARI - GEÇİŞ",
"workspace-moving": "ÇALIŞMA ALANLARI - TAŞIMA",
"workspace-mouse": "ÇALIŞMA ALANLARI - FARE",
"search-placeholder": "Kısayol ara...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Klavye Kisayollari Ayarlari",
"description": "Panel icin klavye kisayollarinin gorunumunu ve kaynaklarini yapilandirin.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Pencere Boyutu",
"width": "Genislik:",
"height": "Yukseklik:",
"auto-height": "Otomatik",
"auto-height-hint": "'Otomatik' etkinlestirildiginde, yukseklik icerge gore otomatik olarak ayarlanir.",
"layout": "Duzen",
"columns": "Sutun sayisi:",
"columns-hint": "Daha fazla sutun daha genis pencerelerle daha iyi calisir.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Yapilandirma Dosyalari",
"config-paths-description": "Klavye kisayolu yapilandirma dosyalariniza ozel yollar belirtin. Eklenti otomatik olarak tum include/source yonergelerini takip eder.",
"hyprland-format-hint": "Beklenen format: bind = $mod, KEY, action #\"aciklama\"\nKategoriler: # 1. KATEGORI ADI",
"niri-format-hint": "Kategoriler su sekilde olusturulur: // #\"Kategori adi\"\nAciklamalar: hotkey-overlay-title=\"aciklama\"",
"actions": "Islemler",
"refresh-keybinds": "Kisayollari Yenile",
"refresh-message": "Paneli actinizda kisayollar yeniden yuklenecektir.",
"reset-defaults": "Varsayilanlara Sifirla",
"reset-message": "Ayarlar varsayilan degerlere sifirlandi.",
"saved": "Ayarlar basariyla kaydedildi.",
"keybind-setup": "Kisayol Ayari",
"keybind-setup-description": "Cheatsheet'i bir klavye kisayoluyla acmak icin, bu bind'i compositor yapilandirmaniza ekleyin:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod Tusu Degiskeni",
"mod-var-hint": "Super tusunuz icin kullanilan degisken adi (orn. $mod veya $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland yolu",
"niri-path": "Niri yolu",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "auto",
"color-paste-hint": "İpucu: bir hex rengi (ör. #FF6B6B) panoya kopyalayın; hapın içinde hızlı yapıştırma simgesi görünecek.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Kısayol Kopya Kağıdı",
"open": "Kopya kağıdını aç",
"settings": "Eklenti ayarları"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "Гарячі клавіші",
"error": {
"unsupported-compositor": "Непідтримуваний композитор",
"sway-not-supported": "Sway поки не підтримується",
"sway-detail": "Підтримку Sway може бути додано в майбутньому оновленні (формат схожий на Hyprland)",
"labwc-not-supported": "LabWC не підтримується",
"labwc-detail": "LabWC використовує формат конфігурації XML, несумісний з цим плагіном",
"unknown-compositor": "Виявлено невідомий композитор",
"unknown-detail": "Цей плагін підтримує лише композитори Hyprland та Niri",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "Завантаження...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "Карта клавіш",
"title-hyprland": "Карта клавіш Hyprland",
"title-niri": "Карта клавіш Niri",
"title-mango": "MangoWC Keymap",
"workspace-switching": "РОБОЧІ ОБЛАСТІ - ПЕРЕМИКАННЯ",
"workspace-moving": "РОБОЧІ ОБЛАСТІ - ПЕРЕМІЩЕННЯ",
"workspace-mouse": "РОБОЧІ ОБЛАСТІ - МИША",
"search-placeholder": "Пошук скорочень...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "Налаштування гарячих клавіш",
"description": "Налаштуйте зовнішній вигляд та джерела гарячих клавіш для панелі.",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "Розмір вікна",
"width": "Ширина:",
"height": "Висота:",
"auto-height": "Авто",
"auto-height-hint": "Коли увімкнено 'Авто', висота автоматично підлаштовується під вміст.",
"layout": "Макет",
"columns": "Кількість колонок:",
"columns-hint": "Більше колонок краще працює з ширшими вікнами.",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "Файли конфігурації",
"config-paths-description": "Вкажіть власні шляхи до файлів конфігурації гарячих клавіш. Плагін автоматично слідує всім директивам include/source.",
"hyprland-format-hint": "Очікуваний формат: bind = $mod, KEY, action #\"опис\"\nКатегорії: # 1. НАЗВА КАТЕГОРІЇ",
"niri-format-hint": "Категорії створюються за допомогою: // #\"Назва категорії\"\nОписи: hotkey-overlay-title=\"опис\"",
"actions": "Дії",
"refresh-keybinds": "Оновити клавіші",
"refresh-message": "Гарячі клавіші будуть перезавантажені при відкритті панелі.",
"reset-defaults": "Скинути налаштування",
"reset-message": "Налаштування скинуто до значень за замовчуванням.",
"saved": "Налаштування успішно збережено.",
"keybind-setup": "Налаштування клавіші",
"keybind-setup-description": "Щоб відкрити шпаргалку за допомогою клавіші, додайте цей bind до конфігурації композитора:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Змінна клавіші Mod",
"mod-var-hint": "Ім'я змінної, що використовується для клавіші Super (наприклад, $mod або $mainMod).",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Шлях Hyprland",
"niri-path": "Шлях Niri",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "авто",
"color-paste-hint": "Порада: скопіюйте hex-колір (напр. #FF6B6B) у буфер обміну — у пілюлі з'явиться іконка вставки.",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "Шпаргалка гарячих клавіш",
"open": "Відкрити шпаргалку",
"settings": "Налаштування плагіна"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "快捷键",
"error": {
"unsupported-compositor": "不支持的合成器",
"sway-not-supported": "尚不支持 Sway",
"sway-detail": "Sway 支持可能会在未来更新中添加(与 Hyprland 格式类似)",
"labwc-not-supported": "不支持 LabWC",
"labwc-detail": "LabWC 使用与此插件不兼容的 XML 配置格式",
"unknown-compositor": "检测到未知的合成器",
"unknown-detail": "此插件仅支持 Hyprland 和 Niri 合成器",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "加载中...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "按键映射",
"title-hyprland": "Hyprland 按键映射",
"title-niri": "Niri 按键映射",
"title-mango": "MangoWC Keymap",
"workspace-switching": "工作区 - 切换",
"workspace-moving": "工作区 - 移动",
"workspace-mouse": "工作区 - 鼠标",
"search-placeholder": "搜索快捷键...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "快捷键速查表设置",
"description": "配置面板的外观和快捷键来源。",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "窗口大小",
"width": "宽度:",
"height": "高度:",
"auto-height": "自动",
"auto-height-hint": "启用\"自动\"时,高度会根据内容自动调整。",
"layout": "布局",
"columns": "列数:",
"columns-hint": "更多列在较宽的窗口中效果更好。",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "配置文件",
"config-paths-description": "指定快捷键配置文件的自定义路径。插件会自动跟随所有include/source指令。",
"hyprland-format-hint": "预期格式: bind = $mod, KEY, action #\"描述\"\n类别: # 1. 类别名称",
"niri-format-hint": "类别使用以下格式创建: // #\"类别名称\"\n描述: hotkey-overlay-title=\"描述\"",
"actions": "操作",
"refresh-keybinds": "刷新快捷键",
"refresh-message": "打开面板时将重新加载快捷键。",
"reset-defaults": "恢复默认",
"reset-message": "设置已恢复为默认值。",
"saved": "设置保存成功。",
"keybind-setup": "快捷键设置",
"keybind-setup-description": "要使用键盘快捷键打开速查表,请将此绑定添加到合成器配置中:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod 键变量",
"mod-var-hint": "用于 Super 键的变量名称(例如 $mod 或 $mainMod)。",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland 路径",
"niri-path": "Niri 路径",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "自动",
"color-paste-hint": "提示:将十六进制颜色 (如 #FF6B6B) 复制到剪贴板,胶囊内会出现粘贴图标以便快速粘贴。",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "快捷键速查表",
"open": "打开速查表",
"settings": "插件设置"
}
}
@@ -0,0 +1,113 @@
{
"default-category": "快捷鍵",
"error": {
"unsupported-compositor": "不支援的合成器",
"sway-not-supported": "尚未支援 Sway",
"sway-detail": "Sway 支援可能會在未來更新中新增(與 Hyprland 格式類似)",
"labwc-not-supported": "不支援 LabWC",
"labwc-detail": "LabWC 使用與此外掛程式不相容的 XML 設定格式",
"unknown-compositor": "偵測到未知的合成器",
"unknown-detail": "此外掛程式僅支援 Hyprland 和 Niri 合成器",
"hyprctl-failed": "hyprctl binds failed - is Hyprland running?"
},
"panel": {
"loading": "載入中...",
"loading-timeout": "Loading timed out. Click Refresh to retry.",
"title": "按鍵映射",
"title-hyprland": "Hyprland 按鍵映射",
"title-niri": "Niri 按鍵映射",
"title-mango": "MangoWC Keymap",
"workspace-switching": "工作區 - 切換",
"workspace-moving": "工作區 - 移動",
"workspace-mouse": "工作區 - 滑鼠",
"search-placeholder": "搜尋快捷鍵...",
"no-description": "(no description)",
"other": "Other",
"undescribed": "Without Description",
"add-description": "Add description",
"add-description-placeholder": "Description...",
"save-description": "Save",
"cancel": "Cancel",
"hide-bind": "Hide this bind"
},
"settings": {
"title": "快捷鍵速查表設定",
"description": "設定面板的外觀和快捷鍵來源。",
"tab-general": "General",
"tab-appearance": "Appearance",
"window-size": "視窗大小",
"width": "寬度:",
"height": "高度:",
"auto-height": "自動",
"auto-height-hint": "啟用「自動」時,高度會根據內容自動調整。",
"layout": "佈局",
"columns": "欄位數:",
"columns-hint": "更多欄位在較寬的視窗中效果更好。",
"parsing-options": "Parsing Options",
"merge-sequential": "Merge sequential keybinds",
"merge-sequential-hint": "Combine consecutive numeric keybinds (e.g. Super+1..5 -> Workspace 1..5) into a single ranged entry.",
"show-undescribed": "Show undescribed binds",
"show-undescribed-hint": "Include keybinds that have no comment description. They will be auto-labeled with the action.",
"split-workspaces": "Split large workspace category",
"split-workspaces-hint": "When a workspace category exceeds the threshold, split it into Switching, Moving, and Mouse subcategories.",
"split-threshold": "Split threshold (binds):",
"config-paths": "設定檔",
"config-paths-description": "指定快捷鍵設定檔的自訂路徑。外掛程式會自動跟隨所有 include/source 指令。",
"hyprland-format-hint": "預期格式: bind = $mod, KEY, action #\"描述\"\n類別: # 1. 類別名稱",
"niri-format-hint": "類別使用以下格式建立: // #\"類別名稱\"\n描述: hotkey-overlay-title=\"描述\"",
"actions": "操作",
"refresh-keybinds": "重新整理快捷鍵",
"refresh-message": "開啟面板時將重新載入快捷鍵。",
"reset-defaults": "恢復預設值",
"reset-message": "設定已恢復為預設值。",
"saved": "設定儲存成功。",
"keybind-setup": "快捷鍵設定",
"keybind-setup-description": "要使用鍵盤快捷鍵開啟速查表,請將此繫結新增至合成器設定中:",
"keybind-example-hyprland": "Hyprland: bind = $mod, F1, exec, qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"keybind-example-niri": "Niri: Super+F1 { spawn \"qs\" \"-c\" \"noctalia-shell\" \"ipc\" \"call\" \"plugin\" \"togglePanel\" \"keybind-cheatsheet\"; }",
"mod-var": "Mod 鍵變數",
"mod-var-hint": "用於 Super 鍵的變數名稱(例如 $mod 或 $mainMod)。",
"width-range": "px (400-3000)",
"height-range": "px (300-2000)",
"hyprland-path": "Hyprland 路徑",
"niri-path": "Niri 路徑",
"mango-path": "Mango Path",
"mango-format-hint": "Expected format: bind=MODS,KEY,ACTION,ARGS\nCategories: # Category Name (horizontal rules stripped)\nOptional per-bind description: trailing #\"description\"",
"keybind-example-mango": "Mango example: bind=SUPER,F1,spawn_shell,noctalia-shell ipc call plugin:keybind-cheatsheet toggle",
"appearance-section": "Appearance",
"appearance-description": "Customize the colors used for special key categories. Changes apply immediately and persist when you click Apply.",
"preview-section": "Live Preview",
"color-pickers": "Key Colors",
"color-super": "Super / Mod key",
"color-ctrl": "Ctrl key",
"color-shift": "Shift key",
"color-alt": "Alt-modifier keys",
"color-xf86": "XF86 multimedia keys",
"color-print": "Print / Screenshot keys",
"color-numeric": "Numeric keys (workspaces)",
"color-mouse": "Mouse buttons",
"color-default": "Default letter keys",
"color-label": "Key label text",
"color-description": "Description text",
"color-theme-hint": "Leave empty to use theme accent color.",
"reset-color": "Reset to default",
"reset-all-colors": "Reset all colors",
"color-auto": "自動",
"color-paste-hint": "提示:將十六進位顏色 (如 #FF6B6B) 複製到剪貼簿,膠囊內會出現貼上圖示以便快速貼上。",
"keybind-ipc-command": "qs -c \"noctalia-shell\" ipc call plugin:keybind-cheatsheet toggle",
"hyprland-lua-path": "Hyprland Lua Path",
"hyprland-parser-mode": "Parser:",
"hyprland-lua-hint": "Auto: uses hyprland.lua via `hyprctl binds` when it exists, otherwise the legacy .conf parser.",
"undescribed-title": "Undescribed Binds",
"overrides-summary": "Hidden: {hidden} - Custom descriptions: {custom}",
"restore-hidden": "Restore hidden",
"restore-hidden-message": "Hidden binds restored.",
"clear-overrides": "Clear all overrides",
"clear-overrides-message": "All bind overrides cleared."
},
"barwidget": {
"tooltip": "快捷鍵速查表",
"open": "開啟速查表",
"settings": "外掛設定"
}
}
@@ -0,0 +1,69 @@
{
"id": "keybind-cheatsheet",
"name": "Keybind Cheatsheet",
"version": "3.7.3",
"minNoctaliaVersion": "3.6.0",
"author": "blacku",
"license": "MIT",
"repository": "https://github.com/noctalia-dev/noctalia-plugins",
"description": "Universal keyboard shortcuts keymap that automatically detects and displays keybindings for Hyprland, Niri, or MangoWC compositors.",
"tags": [
"Bar",
"Panel",
"System",
"Indicator",
"Hyprland",
"Niri",
"MangoWC"
],
"entryPoints": {
"main": "Main.qml",
"barWidget": "BarWidget.qml",
"panel": "Panel.qml",
"settings": "Settings.qml"
},
"dependencies": {
"plugins": []
},
"metadata": {
"defaultSettings": {
"cheatsheetData": [],
"detectedCompositor": "",
"windowWidth": 1400,
"windowHeight": 850,
"autoHeight": true,
"columnCount": 3,
"modKeyVariable": "$mod",
"hyprlandConfigPath": "~/.config/hypr/hyprland.conf",
"hyprlandLuaConfigPath": "~/.config/hypr/hyprland.lua",
"hyprlandParserMode": "auto",
"niriConfigPath": "~/.config/niri/config.kdl",
"mangoConfigPath": "~/.config/mango/config.conf",
"mergeSequentialBinds": true,
"showUndescribedBinds": true,
"splitLargeWorkspaceCategory": true,
"workspaceSplitThreshold": 12,
"keyColorAlt": "#FF6B6B",
"keyColorXF86": "#4ECDC4",
"keyColorPrint": "#95E1D3",
"keyColorNumeric": "#A8DADC",
"keyColorMouse": "#F38181",
"keyColorSuper": "",
"keyColorCtrl": "",
"keyColorShift": "",
"keyColorDefault": "#6C757D",
"keyLabelColor": "#FFFFFF",
"keyTextSuper": "",
"keyTextCtrl": "",
"keyTextShift": "",
"keyTextAlt": "",
"keyTextXF86": "",
"keyTextPrint": "",
"keyTextNumeric": "",
"keyTextMouse": "",
"keyTextDefault": "",
"descriptionTextColor": "",
"bindOverrides": {}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

@@ -0,0 +1,508 @@
{
"cheatsheetData": [
{
"title": "Noctalia",
"binds": [
{
"keys": "Super + Comma",
"desc": "Noctalia Settings",
"_verb": "spawn-sh",
"_mods": "Super",
"_mainKey": "Comma"
},
{
"keys": "Super + Shift + Comma",
"desc": "Noctalia Cheatsheet",
"_verb": "spawn-sh",
"_mods": "Super+Shift",
"_mainKey": "Comma"
},
{
"keys": "Super + R",
"desc": "Open App Launcher: noctalia launcher",
"_verb": "spawn-sh",
"_mods": "Super",
"_mainKey": "R"
},
{
"keys": "Super + Shift + E",
"desc": "Session Menu: noctalia sessionMenu",
"_verb": "spawn-sh",
"_mods": "Super+Shift",
"_mainKey": "E"
},
{
"keys": "Vol Up",
"desc": "Volume Up",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioRaiseVolume"
},
{
"keys": "Vol Down",
"desc": "Volume Down",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioLowerVolume"
},
{
"keys": "Mute",
"desc": "Mute Output",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioMute"
},
{
"keys": "Mic Mute",
"desc": "Mute Input",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioMicMute"
},
{
"keys": "Next",
"desc": "Next Track",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioNext"
},
{
"keys": "Prev",
"desc": "Previous Track",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioPrev"
},
{
"keys": "Play",
"desc": "Play / Pause",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioPlay"
},
{
"keys": "Pause",
"desc": "Play / Pause",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86AudioPause"
},
{
"keys": "Bright Up",
"desc": "Brightness Up",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86MonBrightnessUp"
},
{
"keys": "Bright Down",
"desc": "Brightness Down",
"_verb": "spawn-sh",
"_mods": "",
"_mainKey": "XF86MonBrightnessDown"
}
]
},
{
"title": "Applications",
"binds": [
{
"keys": "Super + Return",
"desc": "Open Terminal: kitty",
"_verb": "spawn",
"_mods": "Super",
"_mainKey": "Return"
},
{
"keys": "Super + B",
"desc": "Open Browser: Librewolf",
"_verb": "spawn",
"_mods": "Super",
"_mainKey": "B"
},
{
"keys": "Super + E",
"desc": "File Manager: Dolphin",
"_verb": "spawn",
"_mods": "Super",
"_mainKey": "E"
}
]
},
{
"title": "Window Management",
"binds": [
{
"keys": "Super + Shift + Q",
"desc": "Close Window",
"_verb": "close-window",
"_mods": "Super+Shift",
"_mainKey": "Q"
},
{
"keys": "Super + F",
"desc": "Fullscreen Window",
"_verb": "fullscreen-window",
"_mods": "Super",
"_mainKey": "F"
}
]
},
{
"title": "Column Navigation",
"binds": [
{
"keys": "Super + Home",
"desc": "Focus Column First",
"_verb": "focus-column-first",
"_mods": "Super",
"_mainKey": "Home"
},
{
"keys": "Super + End",
"desc": "Focus Column Last",
"_verb": "focus-column-last",
"_mods": "Super",
"_mainKey": "End"
},
{
"keys": "Super + H",
"desc": "Focus Column Left",
"_verb": "focus-column-left",
"_mods": "Super",
"_mainKey": "H"
},
{
"keys": "Super + L",
"desc": "Focus Column Right",
"_verb": "focus-column-right",
"_mods": "Super",
"_mainKey": "L"
}
]
},
{
"title": "Workspace Navigation",
"binds": [
{
"keys": "Super + K",
"desc": "Focus Workspace Up",
"_verb": "focus-workspace-up",
"_mods": "Super",
"_mainKey": "K"
},
{
"keys": "Super + J",
"desc": "Focus Workspace Down",
"_verb": "focus-workspace-down",
"_mods": "Super",
"_mainKey": "J"
},
{
"keys": "Super + 1-9",
"desc": "Focus Workspace 1-9",
"_verb": "focus-workspace",
"_mods": "Super",
"_mainKey": "1-9",
"_merged": true
},
{
"keys": "Super + TAB",
"desc": "Focus Workspace Previous",
"_verb": "focus-workspace-previous",
"_mods": "Super",
"_mainKey": "TAB"
}
]
},
{
"title": "Move Columns",
"binds": [
{
"keys": "Super + Shift + H",
"desc": "Move Column Left",
"_verb": "move-column-left",
"_mods": "Super+Shift",
"_mainKey": "H"
},
{
"keys": "Super + Shift + L",
"desc": "Move Column Right",
"_verb": "move-column-right",
"_mods": "Super+Shift",
"_mainKey": "L"
},
{
"keys": "Super + CTRL + Home",
"desc": "Move Column To First",
"_verb": "move-column-to-first",
"_mods": "Super",
"_mainKey": "Home"
},
{
"keys": "Super + CTRL + End",
"desc": "Move Column To Last",
"_verb": "move-column-to-last",
"_mods": "Super",
"_mainKey": "End"
},
{
"keys": "Super + Shift + CTRL + H",
"desc": "Move Column To Monitor Left",
"_verb": "move-column-to-monitor-left",
"_mods": "Super+Shift",
"_mainKey": "H"
},
{
"keys": "Super + Shift + CTRL + L",
"desc": "Move Column To Monitor Right",
"_verb": "move-column-to-monitor-right",
"_mods": "Super+Shift",
"_mainKey": "L"
},
{
"keys": "Super + Shift + CTRL + J",
"desc": "Move Column To Workspace Down",
"_verb": "move-column-to-workspace-down",
"_mods": "Super+Shift",
"_mainKey": "J"
},
{
"keys": "Super + Shift + CTRL + K",
"desc": "Move Column To Workspace Up",
"_verb": "move-column-to-workspace-up",
"_mods": "Super+Shift",
"_mainKey": "K"
},
{
"keys": "Super + Shift + 1-9",
"desc": "Move Column To Workspace 1-9",
"_verb": "move-column-to-workspace",
"_mods": "Super+Shift",
"_mainKey": "1-9",
"_merged": true
}
]
},
{
"title": "Move Windows",
"binds": [
{
"keys": "Super + Shift + K",
"desc": "Move Window Up",
"_verb": "move-window-up",
"_mods": "Super+Shift",
"_mainKey": "K"
},
{
"keys": "Super + Shift + J",
"desc": "Move Window Down",
"_verb": "move-window-down",
"_mods": "Super+Shift",
"_mainKey": "J"
}
]
},
{
"title": "Column Width",
"binds": [
{
"keys": "Super + Minus",
"desc": "Set Column Width \" 10%\"",
"_verb": "set-column-width",
"_mods": "Super",
"_mainKey": "Minus"
},
{
"keys": "Super + Equal",
"desc": "Set Column Width \"+10%\"",
"_verb": "set-column-width",
"_mods": "Super",
"_mainKey": "Equal"
}
]
},
{
"title": "Screenshots",
"binds": [
{
"keys": "CTRL + Shift + 1",
"desc": "Screenshot",
"_verb": "screenshot",
"_mods": "Shift",
"_mainKey": "1"
},
{
"keys": "CTRL + Shift + 2",
"desc": "Screenshot Screen",
"_verb": "screenshot-screen",
"_mods": "Shift",
"_mainKey": "2"
},
{
"keys": "CTRL + Shift + 3",
"desc": "Screenshot Window",
"_verb": "screenshot-window",
"_mods": "Shift",
"_mainKey": "3"
}
]
},
{
"title": "Power",
"binds": [
{
"keys": "Super + Shift + P",
"desc": "Power Off Monitors",
"_verb": "power-off-monitors",
"_mods": "Super+Shift",
"_mainKey": "P"
}
]
},
{
"title": "System",
"binds": [
{
"keys": "CTRL + ALT + Delete",
"desc": "Quit",
"_verb": "quit",
"_mods": "",
"_mainKey": "Delete"
}
]
},
{
"title": "Other",
"binds": [
{
"keys": "Super + CTRL + H",
"desc": "Focus Monitor Left",
"_verb": "focus-monitor-left",
"_mods": "Super",
"_mainKey": "H"
},
{
"keys": "Super + CTRL + L",
"desc": "Focus Monitor Right",
"_verb": "focus-monitor-right",
"_mods": "Super",
"_mainKey": "L"
},
{
"keys": "Super + CTRL + K",
"desc": "Focus Monitor Up",
"_verb": "focus-monitor-up",
"_mods": "Super",
"_mainKey": "K"
},
{
"keys": "Super + CTRL + J",
"desc": "Focus Monitor Down",
"_verb": "focus-monitor-down",
"_mods": "Super",
"_mainKey": "J"
},
{
"keys": "Super + CTRL + F",
"desc": "Expand Column To Available Width",
"_verb": "expand-column-to-available-width",
"_mods": "Super",
"_mainKey": "F"
},
{
"keys": "Super + C",
"desc": "Center Column",
"_verb": "center-column",
"_mods": "Super",
"_mainKey": "C"
},
{
"keys": "Super + CTRL + C",
"desc": "Center Visible Columns",
"_verb": "center-visible-columns",
"_mods": "Super",
"_mainKey": "C"
},
{
"keys": "Super + Shift + Minus",
"desc": "Set Window Height \" 10%\"",
"_verb": "set-window-height",
"_mods": "Super+Shift",
"_mainKey": "Minus"
},
{
"keys": "Super + Shift + Equal",
"desc": "Set Window Height \"+10%\"",
"_verb": "set-window-height",
"_mods": "Super+Shift",
"_mainKey": "Equal"
},
{
"keys": "Super + T",
"desc": "Toggle Window Floating",
"_verb": "toggle-window-floating",
"_mods": "Super",
"_mainKey": "T"
},
{
"keys": "Super + W",
"desc": "Toggle Column Tabbed Display",
"_verb": "toggle-column-tabbed-display",
"_mods": "Super",
"_mainKey": "W"
},
{
"keys": "Super + ESCAPE",
"desc": "Toggle Keyboard Shortcuts Inhibit",
"_verb": "toggle-keyboard-shortcuts-inhibit",
"_mods": "Super",
"_mainKey": "ESCAPE"
},
{
"keys": "Super + O",
"desc": "Toggle Overview",
"_verb": "toggle-overview",
"_mods": "Super",
"_mainKey": "O"
}
]
}
],
"detectedCompositor": "niri",
"windowWidth": 1400,
"windowHeight": 850,
"autoHeight": true,
"columnCount": 4,
"modKeyVariable": "$mod",
"hyprlandConfigPath": "~/.config/hypr/hyprland.conf",
"hyprlandLuaConfigPath": "~/.config/hypr/hyprland.lua",
"hyprlandParserMode": "auto",
"niriConfigPath": "~/.config/niri/config.kdl",
"mangoConfigPath": "~/.config/mango/config.conf",
"mergeSequentialBinds": true,
"showUndescribedBinds": true,
"splitLargeWorkspaceCategory": true,
"workspaceSplitThreshold": 12,
"keyColorAlt": "#FF6B6B",
"keyColorXF86": "#4ECDC4",
"keyColorPrint": "#95E1D3",
"keyColorNumeric": "#A8DADC",
"keyColorMouse": "#F38181",
"keyColorSuper": "",
"keyColorCtrl": "",
"keyColorShift": "",
"keyColorDefault": "#6C757D",
"keyLabelColor": "#FFFFFF",
"keyTextSuper": "",
"keyTextCtrl": "",
"keyTextShift": "",
"keyTextAlt": "",
"keyTextXF86": "",
"keyTextPrint": "",
"keyTextNumeric": "",
"keyTextMouse": "",
"keyTextDefault": "",
"descriptionTextColor": "",
"bindOverrides": {}
}
@@ -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

@@ -0,0 +1,161 @@
// AdvancedMath.js - Lightweight math library for Noctalia Calculator
// Provides advanced mathematical functions beyond basic arithmetic
// Helper function to convert degrees to radians
function toRadians(degrees) {
return degrees * (Math.PI / 180);
}
// Helper function to convert radians to degrees
function toDegrees(radians) {
return radians * (180 / Math.PI);
}
// Constants
var constants = {
PI: Math.PI,
E: Math.E,
LN2: Math.LN2,
LN10: Math.LN10,
LOG2E: Math.LOG2E,
LOG10E: Math.LOG10E,
SQRT1_2: Math.SQRT1_2,
SQRT2: Math.SQRT2
};
// Safe evaluation function that handles advanced math
function evaluate(expression) {
try {
// Fixes decimal arithmetic
var cleanExpr = expression.replace(/\s+/g, '').toLowerCase();
// Allows numbers (including decimals), basic operators, and explicitly permitted math terms only
var safeRegex = /^(\d*\.?\d+|[+\-*/()^%,]|sin|cos|tan|asin|acos|atan|atan2|sinh|cosh|tanh|asinh|acosh|atanh|log|ln|exp|pow|sqrt|cbrt|abs|floor|ceil|round|trunc|min|max|random|pi|e|sind|cosd|tand)+$/;
if (!safeRegex.test(cleanExpr)) {
throw new Error("Invalid characters or unauthorized functions in expression");
}
// Replace mathematical constants (Original Structure)
var processed = cleanExpr
.replace(/\bpi\b/gi, Math.PI)
.replace(/\be\b/gi, Math.E);
// Replace function calls with Math object equivalents
processed = processed
// Trigonometric functions
.replace(/\bsin\s*\(/g, 'Math.sin(')
.replace(/\bcos\s*\(/g, 'Math.cos(')
.replace(/\btan\s*\(/g, 'Math.tan(')
.replace(/\basin\s*\(/g, 'Math.asin(')
.replace(/\bacos\s*\(/g, 'Math.acos(')
.replace(/\batan\s*\(/g, 'Math.atan(')
.replace(/\batan2\s*\(/g, 'Math.atan2(')
// Hyperbolic functions
.replace(/\bsinh\s*\(/g, 'Math.sinh(')
.replace(/\bcosh\s*\(/g, 'Math.cosh(')
.replace(/\btanh\s*\(/g, 'Math.tanh(')
.replace(/\basinh\s*\(/g, 'Math.asinh(')
.replace(/\bacosh\s*\(/g, 'Math.acosh(')
.replace(/\batanh\s*\(/g, 'Math.atanh(')
// Logarithmic and exponential functions
.replace(/\blog\s*\(/g, 'Math.log10(')
.replace(/\bln\s*\(/g, 'Math.log(')
.replace(/\bexp\s*\(/g, 'Math.exp(')
.replace(/\bpow\s*\(/g, 'Math.pow(')
// Root functions
.replace(/\bsqrt\s*\(/g, 'Math.sqrt(')
.replace(/\bcbrt\s*\(/g, 'Math.cbrt(')
// Rounding and absolute
.replace(/\babs\s*\(/g, 'Math.abs(')
.replace(/\bfloor\s*\(/g, 'Math.floor(')
.replace(/\bceil\s*\(/g, 'Math.ceil(')
.replace(/\bround\s*\(/g, 'Math.round(')
.replace(/\btrunc\s*\(/g, 'Math.trunc(')
// Min/Max
.replace(/\bmin\s*\(/g, 'Math.min(')
.replace(/\bmax\s*\(/g, 'Math.max(')
// Random
.replace(/\brandom\s*\(\s*\)/g, 'Math.random()');
// Handle degree versions of trig functions
processed = processed
.replace(/\bsind\s*\(/g, '(function(x) { return Math.sin(' + (Math.PI / 180) + ' * x); })(')
.replace(/\bcosd\s*\(/g, '(function(x) { return Math.cos(' + (Math.PI / 180) + ' * x); })(')
.replace(/\btand\s*\(/g, '(function(x) { return Math.tan(' + (Math.PI / 180) + ' * x); })(');
// Handle ^ for exponentiation: convert 2^3 to Math.pow(2,3)
processed = processed.replace(/([\d.]+|\))\^([\d.]+|\([^)]*\))/g, 'Math.pow($1,$2)');
// Replacing eval() with a scoped function constructor
// This is safe because the strict whitelist guarantees only math reaches this point
var result = new Function('return ' + processed)();
if (!isFinite(result) || isNaN(result)) {
throw new Error("Invalid result");
}
return result;
} catch (error) {
throw new Error("Evaluation failed: " + error.message);
}
}
// Format result for display
function formatResult(result) {
if (Number.isInteger(result)) {
return result.toString();
}
// Handle very large or very small numbers
if (Math.abs(result) >= 1e15 || (Math.abs(result) < 1e-6 && result !== 0)) {
return result.toExponential(6);
}
// Normal decimal formatting
return parseFloat(result.toFixed(10)).toString();
}
// Get list of available functions for help
function getAvailableFunctions() {
return [
// Basic arithmetic: +, -, *, /, %, ^, ()
// Trigonometric functions
"sin(x), cos(x), tan(x) - trigonometric functions (radians)",
"sind(x), cosd(x), tand(x) - trigonometric functions (degrees)",
"asin(x), acos(x), atan(x) - inverse trigonometric",
"atan2(y, x) - two-argument arctangent",
// Hyperbolic functions
"sinh(x), cosh(x), tanh(x) - hyperbolic functions",
"asinh(x), acosh(x), atanh(x) - inverse hyperbolic",
// Logarithmic and exponential
"log(x) - base 10 logarithm",
"ln(x) - natural logarithm",
"exp(x) - e^x",
"pow(x, y) - x^y",
// Root functions
"sqrt(x) - square root",
"cbrt(x) - cube root",
// Rounding and absolute
"abs(x) - absolute value",
"floor(x), ceil(x), round(x), trunc(x)",
// Min/Max/Random
"min(a, b, ...), max(a, b, ...)",
"random() - random number 0-1",
// Constants
"pi, e - mathematical constants"
];
}
@@ -0,0 +1,124 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import qs.Commons
import qs.Widgets
import qs.Services.UI
Item {
id: root
property var pluginApi: null
property ShellScreen screen
property string widgetId: ""
property string section: ""
property int sectionWidgetIndex: -1
property int sectionWidgetsCount: 0
readonly property var mainInst: pluginApi?.mainInstance ?? null
readonly property bool isPanelOpen: pluginApi?.isPanelOpen ?? false
readonly property bool isSelected: isPanelOpen
readonly property string screenName: screen ? screen.name : ""
readonly property string barPosition: Settings.getBarPositionForScreen(screenName)
readonly property bool isVertical: barPosition === "left" || barPosition === "right"
readonly property real capsuleHeight: Style.getCapsuleHeightForScreen(screenName)
readonly property string badge: mainInst?.badgeText ?? ""
readonly property color capsuleBgColor: {
if (isSelected) {
return mouseArea.containsMouse ? Qt.darker(Color.mPrimary, 1.08) : Color.mPrimary;
}
return mouseArea.containsMouse ? Color.mHover : Style.capsuleColor;
}
readonly property color contentColor: isSelected
? Color.mOnPrimary
: (mouseArea.containsMouse ? Color.mOnHover : Color.mOnSurface)
implicitWidth: visualCapsule.width
implicitHeight: visualCapsule.height
NPopupContextMenu {
id: contextMenu
model: [
{
"label": pluginApi?.tr("bar.clear"),
"action": "clear",
"icon": "trash"
},
{
"label": pluginApi?.tr("bar.settings"),
"action": "settings",
"icon": "settings"
}
]
onTriggered: action => {
contextMenu.close();
PanelService.closeContextMenu(root.screen);
if (action === "clear") {
mainInst?.clearAll();
} else if (action === "settings") {
BarService.openPluginSettings(root.screen, pluginApi.manifest);
}
}
}
Rectangle {
id: visualCapsule
anchors.centerIn: parent
width: Math.max(root.capsuleHeight, iconRow.implicitWidth + Style.marginM * 2)
height: root.capsuleHeight
radius: Style.radiusL
color: root.capsuleBgColor
border.color: root.isSelected ? Color.mPrimary : Style.capsuleBorderColor
border.width: Style.capsuleBorderWidth
Row {
id: iconRow
anchors.centerIn: parent
spacing: badge !== "" ? Style.marginS : 0
NIcon {
icon: "calculator"
color: root.contentColor
}
NText {
text: badge
visible: text !== ""
font.bold: true
pointSize: Style.fontSizeS
color: root.contentColor
}
}
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton
cursorShape: Qt.PointingHandCursor
onClicked: mouse => {
TooltipService.hide();
if (mouse.button === Qt.RightButton) {
PanelService.showContextMenu(contextMenu, root, root.screen);
} else if (pluginApi) {
pluginApi.togglePanel(root.screen, root);
}
}
onEntered: {
TooltipService.show(
root,
pluginApi?.tr("bar.tooltip-title"),
BarService.getTooltipDirection(root)
);
}
onExited: TooltipService.hide()
}
}
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Pir0c0pter0
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,391 @@
import QtQuick
import Quickshell
import Quickshell.Io
import "AdvancedMath.js" as AdvancedMath
import qs.Services.UI
Item {
id: root
property var pluginApi: null
readonly property var settings: pluginApi?.pluginSettings ?? ({})
readonly property var defaults: pluginApi?.manifest?.metadata?.defaultSettings ?? ({})
readonly property bool showBarValue: settings.showBarValue ?? defaults.showBarValue ?? true
readonly property int precision: Math.max(0, Math.min(settings.precision ?? defaults.precision ?? 8, 10))
// Max digits before JS double precision loses accuracy
readonly property int _maxInputLength: 18
property var tokens: []
property string currentInput: "0"
property bool shouldResetInput: false
property bool justEvaluated: false
property bool errorState: false
property string lastExpression: ""
readonly property bool hasExpression: tokens.length > 0 || currentInput !== "0" || justEvaluated
readonly property string displayText: errorState ? pluginApi?.tr("state.error") : currentInput
readonly property string expressionText: expressionPreview()
readonly property string badgeText: !showBarValue ? "" : compactDisplay(displayText, 9)
readonly property bool hasCopyableResult: !errorState && displayText !== "" && (justEvaluated || displayText !== "0" || tokens.length > 0)
function _isOperator(token) {
return token === "+" || token === "-" || token === "*" || token === "/";
}
function _normalizeOperator(op) {
if (op === "x" || op === "X") return "*";
if (_isOperator(op)) return op;
return "";
}
function _sanitizeCurrentInput() {
if (currentInput === "" || currentInput === "-") return "0";
if (currentInput.endsWith(".")) return currentInput + "0";
return currentInput;
}
function _numberToString(value) {
if (!Number.isFinite(value)) return null;
let rounded = value;
if (precision >= 0) {
rounded = Number(value.toFixed(precision));
}
if (Object.is(rounded, -0)) rounded = 0;
let text = rounded.toString();
if (text.indexOf("e") >= 0 || text.indexOf("E") >= 0) {
return text.replace("e+", "e");
}
if (text.length > 16 && rounded !== 0) {
text = rounded.toExponential(Math.max(0, Math.min(precision, 6))).replace("e+", "e");
}
return text;
}
function compactDisplay(text, maxLength) {
if (!text) return "";
if (text.length <= maxLength) return text;
const numeric = Number(text);
if (!Number.isNaN(numeric) && Number.isFinite(numeric)) {
const exp = numeric.toExponential(Math.max(0, Math.min(precision, 3))).replace("e+", "e");
if (exp.length <= maxLength) return exp;
}
return text.slice(0, Math.max(1, maxLength - 1)) + "~";
}
function clearAll() {
tokens = [];
currentInput = "0";
shouldResetInput = false;
justEvaluated = false;
errorState = false;
lastExpression = "";
}
function _setError() {
tokens = [];
currentInput = "0";
shouldResetInput = false;
justEvaluated = false;
errorState = true;
lastExpression = "";
}
function appendDigit(digit) {
if (errorState) clearAll();
if (justEvaluated && tokens.length === 0 && !shouldResetInput) {
clearAll();
}
if (shouldResetInput) {
currentInput = digit;
shouldResetInput = false;
justEvaluated = false;
errorState = false;
return;
}
if (currentInput === "0") {
currentInput = digit;
} else if (currentInput === "-0") {
currentInput = "-" + digit;
} else if (currentInput.length < _maxInputLength) {
currentInput += digit;
}
justEvaluated = false;
errorState = false;
}
function appendDecimal() {
if (errorState) clearAll();
if (justEvaluated && tokens.length === 0 && !shouldResetInput) {
clearAll();
}
if (shouldResetInput) {
currentInput = "0.";
shouldResetInput = false;
justEvaluated = false;
return;
}
if (currentInput.indexOf(".") === -1) {
currentInput += ".";
}
justEvaluated = false;
}
function deleteLastChar() {
if (errorState) {
clearAll();
return;
}
if (justEvaluated) {
clearAll();
return;
}
if (shouldResetInput) {
currentInput = "0";
shouldResetInput = false;
return;
}
if (currentInput.length <= 1 || (currentInput.length === 2 && currentInput.startsWith("-"))) {
currentInput = "0";
return;
}
currentInput = currentInput.slice(0, currentInput.length - 1);
}
function toggleSign() {
if (errorState) return;
if (shouldResetInput) {
currentInput = "0";
shouldResetInput = false;
}
if (currentInput.startsWith("-")) {
currentInput = currentInput.slice(1);
} else {
currentInput = "-" + currentInput;
}
if (currentInput === "-0") {
justEvaluated = false;
return;
}
justEvaluated = false;
}
function applyPercent() {
if (errorState) return;
const numeric = Number(_sanitizeCurrentInput());
if (Number.isNaN(numeric)) {
_setError();
return;
}
const formatted = _numberToString(numeric / 100);
if (formatted === null) {
_setError();
return;
}
currentInput = formatted;
shouldResetInput = false;
justEvaluated = false;
}
function applyOperator(op) {
if (errorState) return;
const operator = _normalizeOperator(op);
if (!operator) return;
if (justEvaluated && tokens.length === 0) {
tokens = [currentInput, operator];
shouldResetInput = true;
justEvaluated = false;
lastExpression = "";
return;
}
if (shouldResetInput) {
if (tokens.length > 0 && _isOperator(tokens[tokens.length - 1])) {
const updated = tokens.slice(0, tokens.length - 1);
updated.push(operator);
tokens = updated;
} else {
tokens = tokens.concat([operator]);
}
lastExpression = "";
return;
}
tokens = tokens.concat([_sanitizeCurrentInput(), operator]);
shouldResetInput = true;
justEvaluated = false;
lastExpression = "";
}
function _buildEvaluationTokens() {
const built = Array.from(tokens);
if (!shouldResetInput || built.length === 0 || !_isOperator(built[built.length - 1])) {
built.push(_sanitizeCurrentInput());
}
while (built.length > 0 && _isOperator(built[built.length - 1])) {
built.pop();
}
return built;
}
function _buildDisplayTokens() {
const built = Array.from(tokens);
if (!shouldResetInput || built.length === 0 || !_isOperator(built[built.length - 1])) {
built.push(_sanitizeCurrentInput());
}
return built;
}
function _evaluateExpression(expressionStr) {
try {
return AdvancedMath.evaluate(expressionStr);
} catch (e) {
return null;
}
}
function _formatExpression(tokensToFormat) {
const parts = [];
for (let i = 0; i < tokensToFormat.length; i++) {
const token = tokensToFormat[i];
if (token === "*") parts.push("x");
else parts.push(String(token));
}
return parts.join(" ");
}
function expressionPreview() {
if (errorState) return lastExpression || "";
if (justEvaluated && lastExpression) return lastExpression;
const built = _buildDisplayTokens();
if (built.length === 0 || (built.length === 1 && built[0] === "0" && !hasExpression)) {
return "";
}
return _formatExpression(built);
}
function evaluate() {
if (errorState) return;
const evaluationTokens = _buildEvaluationTokens();
if (evaluationTokens.length === 0) return;
const expression = _formatExpression(evaluationTokens);
const expressionStr = evaluationTokens.join(" ");
const result = _evaluateExpression(expressionStr);
if (result === null) {
_setError();
return;
}
const formatted = _numberToString(result);
if (formatted === null) {
_setError();
return;
}
currentInput = formatted;
tokens = [];
shouldResetInput = false;
justEvaluated = true;
errorState = false;
lastExpression = expression;
}
function pressButton(action) {
if (action >= "0" && action <= "9") {
appendDigit(action);
return;
}
if (action === "decimal") appendDecimal();
else if (action === "add") applyOperator("+");
else if (action === "subtract") applyOperator("-");
else if (action === "multiply") applyOperator("*");
else if (action === "divide") applyOperator("/");
else if (action === "equals") evaluate();
else if (action === "percent") applyPercent();
else if (action === "sign") toggleSign();
else if (action === "clear") clearAll();
else if (action === "delete") deleteLastChar();
}
readonly property var _operatorActionMap: ({
"+": "add", "-": "subtract", "/": "divide",
"*": "multiply", "x": "multiply", "X": "multiply"
})
function actionForKeyEvent(event) {
if ((event.modifiers & Qt.ControlModifier) || (event.modifiers & Qt.MetaModifier)) {
return "";
}
const text = event.text ?? "";
if (text >= "0" && text <= "9") return text;
if (text === "." || text === ",") return "decimal";
if (text in _operatorActionMap) return _operatorActionMap[text];
if (text === "%") return "percent";
if (text === "=") return "equals";
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) return "equals";
if (event.key === Qt.Key_Backspace) return "delete";
if (event.key === Qt.Key_Escape || event.key === Qt.Key_Delete) return "clear";
if (event.key === Qt.Key_F9) return "sign";
return "";
}
function handleKeyEvent(event) {
const action = actionForKeyEvent(event);
if (action === "") return false;
pressButton(action);
return true;
}
function copyResult() {
if (!hasCopyableResult) return;
const value = displayText;
const escaped = value.replace(/'/g, "'\\''");
Quickshell.execDetached(["sh", "-c", "printf '%s' '" + escaped + "' | wl-copy"]);
const shown = value.length > 24 ? value.slice(0, 24) + "…" : value;
if (pluginApi) {
ToastService.showNotice(pluginApi.tr("toast.copied", { "value": shown }));
}
}
IpcHandler {
target: "plugin:noctalia-calculator"
function toggle() {
if (pluginApi) {
pluginApi.withCurrentScreen(screen => {
pluginApi.togglePanel(screen);
});
}
}
}
}
@@ -0,0 +1,286 @@
import QtQuick
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
import qs.Services.UI
FocusScope {
id: root
property var pluginApi: null
readonly property var geometryPlaceholder: panelContainer
property real contentPreferredWidth: 360 * Style.uiScaleRatio
property real contentPreferredHeight: Math.ceil(panelCard.implicitHeight + (Style.marginM * 2))
readonly property bool allowAttach: true
anchors.fill: parent
focus: visible
readonly property var mainInst: pluginApi?.mainInstance ?? null
property string flashedAction: ""
readonly property var buttonModel: [
{ "label": "AC", "action": "clear", "tone": "danger", "span": 1 },
{ "label": "+/-", "action": "sign", "tone": "operator", "span": 1 },
{ "label": "%", "action": "percent", "tone": "operator", "span": 1 },
{ "label": "DEL", "action": "delete", "tone": "operator", "span": 1 },
{ "label": "7", "action": "7", "tone": "number", "span": 1 },
{ "label": "8", "action": "8", "tone": "number", "span": 1 },
{ "label": "9", "action": "9", "tone": "number", "span": 1 },
{ "label": "/", "action": "divide", "tone": "operator", "span": 1 },
{ "label": "4", "action": "4", "tone": "number", "span": 1 },
{ "label": "5", "action": "5", "tone": "number", "span": 1 },
{ "label": "6", "action": "6", "tone": "number", "span": 1 },
{ "label": "x", "action": "multiply", "tone": "operator", "span": 1 },
{ "label": "1", "action": "1", "tone": "number", "span": 1 },
{ "label": "2", "action": "2", "tone": "number", "span": 1 },
{ "label": "3", "action": "3", "tone": "number", "span": 1 },
{ "label": "-", "action": "subtract", "tone": "operator", "span": 1 },
{ "label": "0", "action": "0", "tone": "number", "span": 2 },
{ "label": ".", "action": "decimal", "tone": "number", "span": 1 },
{ "label": "+", "action": "add", "tone": "operator", "span": 1 },
{ "label": "=", "action": "equals", "tone": "accent", "span": 4 }
]
Timer {
id: flashTimer
interval: 140
repeat: false
onTriggered: root.flashedAction = ""
}
Component.onCompleted: {
if (visible) root.forceActiveFocus();
}
onVisibleChanged: {
if (visible) root.forceActiveFocus();
}
Keys.onPressed: event => {
const action = mainInst?.actionForKeyEvent(event) ?? "";
if (action !== "") {
root.flashButton(action);
}
if (mainInst?.handleKeyEvent(event)) {
event.accepted = true;
}
}
function flashButton(action) {
flashedAction = action;
flashTimer.restart();
}
function buttonFill(buttonData, hovered, active) {
if (active) {
if (buttonData.tone === "accent") return Qt.darker(Color.mPrimary, 1.12);
if (buttonData.tone === "danger") return Qt.alpha(Color.mError, 0.22);
if (buttonData.tone === "operator") return Qt.alpha(Color.mPrimary, 0.28);
return Qt.alpha(Color.mOnSurface, 0.16);
}
if (buttonData.tone === "accent") {
return hovered ? Qt.darker(Color.mPrimary, 1.05) : Color.mPrimary;
}
if (buttonData.tone === "danger") {
return hovered ? Qt.alpha(Color.mError, 0.18) : Qt.alpha(Color.mError, 0.12);
}
if (buttonData.tone === "operator") {
return hovered ? Qt.alpha(Color.mPrimary, 0.22) : Qt.alpha(Color.mPrimary, 0.15);
}
return hovered ? Qt.alpha(Color.mOnSurface, 0.10) : Color.mSurfaceVariant;
}
function buttonBorder(buttonData, hovered, active) {
if (active) {
if (buttonData.tone === "danger") return Qt.alpha(Color.mError, 0.85);
return Color.mPrimary;
}
if (buttonData.tone === "accent") return Color.mPrimary;
if (buttonData.tone === "danger") return Qt.alpha(Color.mError, 0.65);
return hovered ? Color.mPrimary : Qt.alpha(Color.mOutline, 0.7);
}
function buttonTextColor(buttonData) {
if (buttonData.tone === "accent") return Color.mOnPrimary;
if (buttonData.tone === "danger") return Color.mError;
if (buttonData.tone === "operator") return Color.mPrimary;
return Color.mOnSurface;
}
Rectangle {
id: panelContainer
anchors.fill: parent
color: "transparent"
ColumnLayout {
anchors.fill: parent
anchors.margins: Style.marginM
spacing: Style.marginM
NBox {
id: panelCard
Layout.fillWidth: true
implicitHeight: Math.ceil(cardContent.implicitHeight + (Style.marginM * 2))
ColumnLayout {
id: cardContent
anchors.fill: parent
anchors.margins: Style.marginM
spacing: Style.marginM
RowLayout {
Layout.fillWidth: true
spacing: Style.marginM
NIcon {
icon: "calculator"
pointSize: Style.fontSizeL
color: Color.mPrimary
Layout.alignment: Qt.AlignVCenter
}
ColumnLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginS
NText {
text: pluginApi?.tr("panel.title")
pointSize: Style.fontSizeL
font.bold: true
color: Color.mOnSurface
}
NText {
Layout.fillWidth: true
text: pluginApi?.tr("panel.subtitle")
color: Qt.alpha(Color.mOnSurface, 0.68)
}
}
}
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: Math.round((expressionLabel.visible ? 92 : 72) * Style.uiScaleRatio)
Layout.minimumHeight: Layout.preferredHeight
radius: Style.radiusL
color: Qt.alpha(Color.mPrimary, 0.08)
border.color: root.activeFocus ? Qt.alpha(Color.mPrimary, 0.8) : Qt.alpha(Color.mOutline, 0.65)
border.width: Style.borderS
ColumnLayout {
anchors.fill: parent
anchors.margins: Style.marginM
spacing: Style.marginS
NText {
id: expressionLabel
Layout.fillWidth: true
text: mainInst?.expressionText ?? ""
visible: text !== ""
pointSize: Style.fontSizeS
color: Qt.alpha(Color.mOnSurface, 0.68)
elide: Text.ElideLeft
horizontalAlignment: Text.AlignRight
}
RowLayout {
Layout.fillWidth: true
spacing: Style.marginS
NText {
Layout.fillWidth: true
text: mainInst?.displayText ?? "0"
pointSize: Math.round(Style.fontSizeL * 1.85)
font.bold: true
color: (mainInst?.errorState ?? false) ? Color.mError : Color.mOnSurface
elide: Text.ElideLeft
horizontalAlignment: Text.AlignRight
}
Item {
Layout.preferredWidth: copyIcon.implicitWidth + Style.marginS
Layout.preferredHeight: copyIcon.implicitHeight
Layout.alignment: Qt.AlignVCenter
visible: mainInst?.hasCopyableResult ?? false
NIcon {
id: copyIcon
anchors.centerIn: parent
icon: "copy"
pointSize: Style.fontSizeM
color: copyMouse.containsMouse ? Color.mPrimary : Qt.alpha(Color.mOnSurface, 0.55)
Behavior on color { ColorAnimation { duration: Style.animationFast } }
}
MouseArea {
id: copyMouse
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: mainInst?.copyResult()
onEntered: TooltipService.show(parent, pluginApi?.tr("panel.copy-result-tooltip"))
onExited: TooltipService.hide()
}
}
}
}
}
GridLayout {
Layout.fillWidth: true
columns: 4
rowSpacing: Style.marginS
columnSpacing: Style.marginS
Repeater {
model: root.buttonModel
delegate: Rectangle {
required property var modelData
Layout.fillWidth: true
Layout.columnSpan: modelData.span
Layout.preferredHeight: Math.round((modelData.action === "equals" ? 58 : 52) * Style.uiScaleRatio)
Layout.minimumHeight: Layout.preferredHeight
readonly property bool isFlashed: root.flashedAction === modelData.action
radius: Style.radiusL
color: root.buttonFill(modelData, buttonMouse.containsMouse, isFlashed)
border.color: root.buttonBorder(modelData, buttonMouse.containsMouse, isFlashed)
border.width: Style.borderS
scale: isFlashed ? 0.96 : 1.0
Behavior on color { ColorAnimation { duration: Style.animationFast } }
Behavior on border.color { ColorAnimation { duration: Style.animationFast } }
Behavior on scale { NumberAnimation { duration: 90 } }
NText {
anchors.centerIn: parent
text: modelData.label
pointSize: modelData.action === "equals" ? Style.fontSizeL : Style.fontSizeM
font.bold: true
color: root.buttonTextColor(modelData)
}
MouseArea {
id: buttonMouse
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
mainInst?.pressButton(modelData.action);
root.forceActiveFocus();
}
}
}
}
}
}
}
}
}
}
@@ -0,0 +1,51 @@
# noctalia-calculator
A theme-aware calculator plugin for Noctalia on Niri, with a bar widget, floating panel, keyboard support, and a clean UI that follows the active shell colors.
## Preview
![Calculator Preview](preview.png)
## Features
- Full expression evaluation with operator precedence via bundled `AdvancedMath.js`
- Bar widget with optional live result badge
- Floating panel with 21-button grid
- Mouse and keyboard input
- Theme-aware colors and spacing
- 10-language i18n (en, pt, es, fr, de, it, ru, zh, ja, ko)
- Configurable decimal precision (0-10)
## Usage
- Left click the bar widget to open the calculator
- Right click the bar widget for the context menu
- Keyboard:
- `0-9` for digits
- `+ - * /` for operators
- `.` or `,` for decimal input
- `Enter` for equals
- `Backspace` for delete
- `Esc` or `Delete` for clear
- `F9` for sign toggle
- `%` for percent
## Files
- `AdvancedMath.js`: math evaluation library (from noctalia-shell Helpers)
- `Main.qml`: calculator logic
- `BarWidget.qml`: bar widget entry point
- `Panel.qml`: floating calculator panel
- `Settings.qml`: plugin settings UI
- `i18n/`: translations (en, pt, es, fr, de, it, ru, zh, ja, ko)
## Copying the result
When the panel is open and a value is showing, a small copy icon appears to the right of the result. Click it to copy the value to the system clipboard. A toast confirms the copy.
Requires `wl-copy` (from `wl-clipboard`) on `PATH`. The icon is hidden in the resting `0` state and while an error is displayed.
## Author
Pir0c0pter0
`pir0c0pter0000@gmail.com`
@@ -0,0 +1,61 @@
import QtQuick
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
ColumnLayout {
id: root
property var pluginApi: null
property bool valueShowBarValue: pluginApi?.pluginSettings?.showBarValue ?? true
property int valuePrecision: pluginApi?.pluginSettings?.precision ?? 8
spacing: Style.marginM
function saveSettings() {
if (!pluginApi?.pluginSettings) return;
pluginApi.pluginSettings.showBarValue = valueShowBarValue;
pluginApi.pluginSettings.precision = valuePrecision;
pluginApi.saveSettings();
}
NToggle {
Layout.fillWidth: true
label: pluginApi?.tr("settings.show-bar")
description: pluginApi?.tr("settings.show-bar-desc")
checked: root.valueShowBarValue
onToggled: checked => {
root.valueShowBarValue = checked;
root.saveSettings();
}
}
ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginS
NLabel {
label: pluginApi?.tr("settings.precision", { "value": root.valuePrecision })
description: pluginApi?.tr("settings.precision-desc")
}
NSlider {
Layout.fillWidth: true
from: 0
to: 10
stepSize: 1
value: root.valuePrecision
onMoved: {
root.valuePrecision = Math.round(value);
root.saveSettings();
}
}
}
NLabel {
Layout.fillWidth: true
label: pluginApi?.tr("settings.about")
description: pluginApi?.tr("settings.developed-by", { "version": pluginApi?.manifest?.version ?? "1.0.0" })
}
}
@@ -0,0 +1,26 @@
{
"state": {
"error": "Fehler"
},
"bar": {
"clear": "Loeschen",
"settings": "Einstellungen",
"tooltip-title": "Rechner"
},
"panel": {
"title": "Rechner",
"subtitle": "Schnellrechnung in der Leiste",
"copy-result-tooltip": "Ergebnis kopieren"
},
"toast": {
"copied": "Kopiert: {value}"
},
"settings": {
"about": "Über",
"show-bar": "Wert in der Leiste anzeigen",
"show-bar-desc": "Zeigt den aktuellen Wert neben dem Rechner-Symbol an",
"precision": "Dezimalgenauigkeit: {value}",
"precision-desc": "Maximale Dezimalstellen bei der Ergebnisformatierung",
"developed-by": "Entwickelt von Pir0c0pter0<br>v{version}"
}
}
@@ -0,0 +1,26 @@
{
"state": {
"error": "Error"
},
"bar": {
"clear": "Clear",
"settings": "Settings",
"tooltip-title": "Calculator"
},
"panel": {
"title": "Calculator",
"subtitle": "Quick math in the bar",
"copy-result-tooltip": "Copy result"
},
"toast": {
"copied": "Copied: {value}"
},
"settings": {
"about": "About",
"show-bar": "Show value in bar",
"show-bar-desc": "Display the current value next to the calculator icon",
"precision": "Decimal precision: {value}",
"precision-desc": "Maximum decimals used when formatting results",
"developed-by": "Developed by Pir0c0pter0<br>v{version}"
}
}
@@ -0,0 +1,22 @@
{
"state": {
"error": "Error"
},
"bar": {
"clear": "Limpiar",
"settings": "Ajustes",
"tooltip-title": "Calculadora"
},
"panel": {
"title": "Calculadora",
"subtitle": "Calculo rapido en la barra"
},
"settings": {
"about": "Acerca de",
"show-bar": "Mostrar valor en la barra",
"show-bar-desc": "Muestra el valor actual junto al icono de la calculadora",
"precision": "Precision decimal: {value}",
"precision-desc": "Maximo de decimales al formatear resultados",
"developed-by": "Desarrollado por Pir0c0pter0<br>v{version}"
}
}
@@ -0,0 +1,22 @@
{
"state": {
"error": "Erreur"
},
"bar": {
"clear": "Effacer",
"settings": "Paramètres",
"tooltip-title": "Calculatrice"
},
"panel": {
"title": "Calculatrice",
"subtitle": "Calcul rapide dans la barre"
},
"settings": {
"about": "À propos",
"show-bar": "Afficher la valeur dans la barre",
"show-bar-desc": "Affiche la valeur actuelle à côté de l'icone de la calculatrice",
"precision": "Précision décimale : {value}",
"precision-desc": "Nombre maximal de décimales pour le formatage des résultats",
"developed-by": "Développé par Pir0c0pter0<br>v{version}"
}
}
@@ -0,0 +1,22 @@
{
"state": {
"error": "Errore"
},
"bar": {
"clear": "Cancella",
"settings": "Impostazioni",
"tooltip-title": "Calcolatrice"
},
"panel": {
"title": "Calcolatrice",
"subtitle": "Calcolo rapido nella barra"
},
"settings": {
"about": "Informazioni",
"show-bar": "Mostra valore nella barra",
"show-bar-desc": "Visualizza il valore corrente accanto all'icona della calcolatrice",
"precision": "Precisione decimale: {value}",
"precision-desc": "Numero massimo di decimali nella formattazione dei risultati",
"developed-by": "Sviluppato da Pir0c0pter0<br>v{version}"
}
}
@@ -0,0 +1,22 @@
{
"state": {
"error": "エラー"
},
"bar": {
"clear": "クリア",
"settings": "設定",
"tooltip-title": "電卓"
},
"panel": {
"title": "電卓",
"subtitle": "バーで素早く計算"
},
"settings": {
"about": "このプラグインについて",
"show-bar": "バーに数値を表示",
"show-bar-desc": "電卓アイコンの横に現在の値を表示します",
"precision": "小数精度: {value}",
"precision-desc": "結果のフォーマット時の最大小数桁数",
"developed-by": "Pir0c0pter0 が開発<br>v{version}"
}
}
Loaded 100 of 112 files, more files were not shown because too many files have changed in this diff. Show more