Skip to content

Commit

Permalink
Fixed sources annotation (#407)
Browse files Browse the repository at this point in the history
* Fixed sources annotation

github supports jsonc

Also unified shell commands to use zsh

* Replaced `json` with `jsonc` where needed
  • Loading branch information
o0nd7ots authored Mar 25, 2024
1 parent 1b6380b commit 7e503e6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ sudo zypper install SwayNotificationCenter

Lunar and later:

```
```zsh
sudo apt install sway-notification-center
```

Expand All @@ -150,14 +150,14 @@ sudo apt install sway-notification-center

Bookworm and later:

```
```zsh
sudo apt install sway-notification-center
```

### Guix

The simplest way is to install it to user's profile:
```
```zsh
guix install swaynotificationcenter
```

Expand Down Expand Up @@ -278,7 +278,7 @@ The active toggle button also gains the css-class ".toggle:checked"

`config.json` example:

```json
```jsonc
{
"buttons-grid": { // also works with actions in menubar widget
"actions": [
Expand Down Expand Up @@ -329,7 +329,7 @@ Notification information can be printed into a terminal by running

Config properties:

```json
```jsonc
{
"scripts": {
"example-script": {
Expand All @@ -341,13 +341,13 @@ Config properties:
"category": "Notification category Regex"
}
}
other non scripting properties...
// other non scripting properties...
}
```

`config.json` example:

```json
```jsonc
{
"scripts": {
// This script will only run when Spotify sends a notification containing
Expand All @@ -359,7 +359,7 @@ Config properties:
"body": "Rick Astley - Whenever You Need Somebody"
}
}
other non scripting properties...
// other non scripting properties...
}
```

Expand Down Expand Up @@ -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

```json
```jsonc
"custom/notification": {
"format": "{} {icon}",
...
// ...
},
```

0 comments on commit 7e503e6

Please sign in to comment.