Fixed sources annotation (#407)
* Fixed sources annotation github supports jsonc Also unified shell commands to use zsh * Replaced `json` with `jsonc` where needed
This commit is contained in:
20
README.md
20
README.md
@@ -141,7 +141,7 @@ sudo zypper install SwayNotificationCenter
|
|||||||
|
|
||||||
Lunar and later:
|
Lunar and later:
|
||||||
|
|
||||||
```
|
```zsh
|
||||||
sudo apt install sway-notification-center
|
sudo apt install sway-notification-center
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -150,14 +150,14 @@ sudo apt install sway-notification-center
|
|||||||
|
|
||||||
Bookworm and later:
|
Bookworm and later:
|
||||||
|
|
||||||
```
|
```zsh
|
||||||
sudo apt install sway-notification-center
|
sudo apt install sway-notification-center
|
||||||
```
|
```
|
||||||
|
|
||||||
### Guix
|
### Guix
|
||||||
|
|
||||||
The simplest way is to install it to user's profile:
|
The simplest way is to install it to user's profile:
|
||||||
```
|
```zsh
|
||||||
guix install swaynotificationcenter
|
guix install swaynotificationcenter
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ The active toggle button also gains the css-class ".toggle:checked"
|
|||||||
|
|
||||||
`config.json` example:
|
`config.json` example:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"buttons-grid": { // also works with actions in menubar widget
|
"buttons-grid": { // also works with actions in menubar widget
|
||||||
"actions": [
|
"actions": [
|
||||||
@@ -329,7 +329,7 @@ Notification information can be printed into a terminal by running
|
|||||||
|
|
||||||
Config properties:
|
Config properties:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"example-script": {
|
"example-script": {
|
||||||
@@ -341,13 +341,13 @@ Config properties:
|
|||||||
"category": "Notification category Regex"
|
"category": "Notification category Regex"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
other non scripting properties...
|
// other non scripting properties...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`config.json` example:
|
`config.json` example:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
// This script will only run when Spotify sends a notification containing
|
// This script will only run when Spotify sends a notification containing
|
||||||
@@ -359,7 +359,7 @@ Config properties:
|
|||||||
"body": "Rick Astley - Whenever You Need Somebody"
|
"body": "Rick Astley - Whenever You Need Somebody"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
other non scripting properties...
|
// other non scripting properties...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -431,9 +431,9 @@ Waybar css file
|
|||||||
|
|
||||||
Alternatively, the number of notifications can be shown by adding `{}` anywhere in the `format` field in the Waybar config
|
Alternatively, the number of notifications can be shown by adding `{}` anywhere in the `format` field in the Waybar config
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
"custom/notification": {
|
"custom/notification": {
|
||||||
"format": "{} {icon}",
|
"format": "{} {icon}",
|
||||||
...
|
// ...
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user