docs: update man page, README, config schema and translations

parent baa67a5f
......@@ -50,13 +50,19 @@ theme might require extra tweaks to the default CSS style file*
These widgets can be customized, added, removed and even reordered
- Title
- Do Not Disturb
- Notifications (Will always be visible)
- Label
- Mpris (Media player controls for Spotify, Firefox, Chrome, etc...)
- Quick Settings (GNOME-style toggle tiles)
- Do Not Disturb
- Dark Style
- Power Profiles
- Caffeine (idle inhibitor)
- Night Light (hyprsunset)
- Custom command tiles
- Volume slider using PulseAudio
- Backlight slider
- Backlight (auto-detect all brightness sources)
- Inhibitors
## Build from source
......
......@@ -316,15 +316,13 @@ config file to be able to detect config errors
*widgets* ++
type: array ++
Default values: ["title", "dnd", "notifications"] ++
Default values: ["inhibitors", "title", "notifications"] ++
Valid array values (see *widget-config* for more information): ++
*notifications*++
required: true ++
optional: false ++
*title*++
optional: true ++
*dnd*++
optional: true ++
*label*++
optional: true ++
*mpris*++
......@@ -353,7 +351,6 @@ config file to be able to detect config errors
"widgets": [
"inhibitors",
"title",
"dnd",
"notifications"
]
}
......@@ -504,23 +501,14 @@ config file to be able to detect config errors
type: object ++
css class: widget-backlight ++
properties: ++
device: ++
type: string ++
optional: true ++
default: "intel_backlight" ++
description: Device in `/sys/class/backlight` or `/sys/class/leds` ++
subsystem: ++
type: string ++
optional: true ++
default: "backlight" ++
description: Kernel subsystem for brightness control ++
enum: ["backlight", "leds"] ++
min: ++
type: integer ++
optional: true ++
default: 0 ++
description: Lowest possible value for brightness ++
description: Slider to control screen brightness ++
description: Unified brightness control widget. Auto-detects display ++
backlights (/sys/class/backlight), DDC/CI monitors, and keyboard ++
backlights (/sys/class/leds/*kbd*). ++
*inhibitors*++
type: object ++
css class: widget-inhibitors ++
......@@ -535,8 +523,22 @@ config file to be able to detect config errors
optional: true ++
default: true ++
description: Whether to display a "Clear All" button ++
description: Displayed if notifications are inhibited.
description: Displayed if notifications are inhibited. ++
*quick-settings*++
type: object ++
css class: widget-quick-settings ++
properties: ++
tiles: ++
type: array ++
optional: true ++
description: Array of tile objects. Each tile has a ++
"type" field and optional type-specific properties. ++
Tile types: dnd, dark-mode, power-profiles, ++
caffeine, night-light, command. ++
night-light accepts "temperature" (int, default 4500). ++
command accepts "label", "icon", "command", ++
"update-command", "active". ++
description: GNOME-style quick settings toggle tiles. ++
example:
```
{
......@@ -545,19 +547,23 @@ config file to be able to detect config errors
"text": "Notifications",
"clear-all-button": true
},
"dnd": {
"text": "Do Not Disturb"
},
"label": {
"max-lines": 5,
"text": "Label Text"
},
"mpris": {
"blacklist": ["playerctld"],
"autohide": true,
"show-album-art": "always",
"loop-carousel": false
"blacklist": ["playerctld"]
},
"quick-settings": {
"tiles": [
{ "type": "dnd" },
{ "type": "dark-mode" },
{ "type": "power-profiles" },
{ "type": "caffeine" },
{ "type": "night-light", "temperature": 4500 },
{ "type": "command", "label": "VPN", "icon": "network-vpn-symbolic", "command": "toggle-vpn.sh" }
]
}
}
}
```
......@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: ximper-shell-notification-center 0.1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-22 17:23+0300\n"
"PO-Revision-Date: 2026-03-22 17:23+0300\n"
"POT-Creation-Date: 2026-03-24 00:00+0300\n"
"PO-Revision-Date: 2026-03-24 00:00+0300\n"
"Last-Translator: \n"
"Language-Team: Russian\n"
"Language: ru\n"
......@@ -67,10 +67,6 @@ msgstr "Уведомления"
msgid "Clear All"
msgstr "Очистить"
#: src/controlCenter/widgets/dnd/dnd.vala:17
msgid "Do Not Disturb"
msgstr "Не беспокоить"
#: src/controlCenter/widgets/inhibitors/inhibitors.vala:19
msgid "Inhibitors"
msgstr "Блокировки"
......@@ -83,18 +79,42 @@ msgstr "Нет активного источника"
msgid "Brightness"
msgstr "Яркость"
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:149
#: src/controlCenter/widgets/notifications/notifications.vala:56
msgid "No Notifications"
msgstr "Нет уведомлений"
#: src/controlCenter/widgets/quickSettings/tiles/dndTile.vala:5
msgid "Do Not Disturb"
msgstr "Не беспокоить"
#: src/controlCenter/widgets/quickSettings/tiles/darkModeTile.vala:7
msgid "Dark Style"
msgstr "Тёмный стиль"
#: src/controlCenter/widgets/quickSettings/tiles/caffeineTile.vala:15
msgid "Caffeine"
msgstr "Кофеин"
#: src/controlCenter/widgets/quickSettings/tiles/caffeineTile.vala:49
msgid "Caffeine mode"
msgstr "Режим кофеина"
#: src/controlCenter/widgets/quickSettings/tiles/nightLightTile.vala:8
msgid "Night Light"
msgstr "Ночной свет"
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:18
msgid "Power Mode"
msgstr "Режим питания"
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:95
msgid "Performance"
msgstr "Производительность"
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:150
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:97
msgid "Balanced"
msgstr "Баланс"
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:151
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:99
msgid "Power Saver"
msgstr "Энергосбережение"
#: src/controlCenter/widgets/notifications/notifications.vala:56
msgid "No Notifications"
msgstr "Нет уведомлений"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-22 17:23+0300\n"
"POT-Creation-Date: 2026-03-24 00:00+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -65,10 +65,6 @@ msgstr ""
msgid "Clear All"
msgstr ""
#: src/controlCenter/widgets/dnd/dnd.vala:17
msgid "Do Not Disturb"
msgstr ""
#: src/controlCenter/widgets/inhibitors/inhibitors.vala:19
msgid "Inhibitors"
msgstr ""
......@@ -81,22 +77,42 @@ msgstr ""
msgid "Brightness"
msgstr ""
#: src/controlCenter/widgets/menubar/menubar.vala:264
msgid "Menu"
#: src/controlCenter/widgets/notifications/notifications.vala:56
msgid "No Notifications"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/dndTile.vala:5
msgid "Do Not Disturb"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/darkModeTile.vala:7
msgid "Dark Style"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/caffeineTile.vala:15
msgid "Caffeine"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/caffeineTile.vala:49
msgid "Caffeine mode"
msgstr ""
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:149
#: src/controlCenter/widgets/quickSettings/tiles/nightLightTile.vala:8
msgid "Night Light"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:18
msgid "Power Mode"
msgstr ""
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:95
msgid "Performance"
msgstr ""
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:150
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:97
msgid "Balanced"
msgstr ""
#: src/controlCenter/widgets/powerProfiles/powerProfiles.vala:151
#: src/controlCenter/widgets/quickSettings/tiles/powerProfilesTile.vala:99
msgid "Power Saver"
msgstr ""
#: src/controlCenter/widgets/notifications/notifications.vala:56
msgid "No Notifications"
msgstr ""
......@@ -100,12 +100,6 @@
"description": "If notifications should display a text field to reply if the sender requests it. NOTE: Replying in popup notifications is only available if the compositor supports GTK Layer-Shell ON_DEMAND keyboard interactivity.",
"default": false
},
"notification-icon-size": {
"type": "integer",
"deprecated": true,
"description": "deprecated (change the CSS root variable \"--notification-icon-size\"): The notification icon size (in pixels). The app icon size is 1/3",
"default": -1
},
"notification-body-image-height": {
"type": "integer",
"description": "The notification body image height (in pixels)",
......@@ -342,6 +336,12 @@
"^inhibitors(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
"$comment": "References the widget structure from \"widgets\" below",
"$ref": "#/widgets/inhibitors"
},
"^volume(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
"$ref": "#/widgets/volume"
},
"^quick-settings(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
"$ref": "#/widgets/quick-settings"
}
}
}
......@@ -437,6 +437,60 @@
"default": true
}
}
},
"volume": {
"type": "object",
"description": "PulseAudio volume control widget",
"additionalProperties": false,
"properties": {}
},
"quick-settings": {
"type": "object",
"description": "GNOME-style quick settings toggle tiles",
"additionalProperties": false,
"properties": {
"tiles": {
"type": "array",
"description": "Array of tile configurations",
"items": {
"type": "object",
"required": ["type"],
"properties": {
"type": {
"type": "string",
"description": "The tile type",
"enum": ["dnd", "dark-mode", "power-profiles", "caffeine", "night-light", "command"]
},
"label": {
"type": "string",
"description": "Button label (for command tiles)"
},
"icon": {
"type": "string",
"description": "Icon name (for command tiles)"
},
"command": {
"type": "string",
"description": "Command to run on toggle (for command tiles)"
},
"update-command": {
"type": "string",
"description": "Command to check state when control center opens (for command tiles)"
},
"active": {
"type": "boolean",
"description": "Initial active state (for command tiles)",
"default": false
},
"temperature": {
"type": "integer",
"description": "Color temperature in Kelvin (for night-light tiles)",
"default": 4500
}
}
}
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment