Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
18b72b9b
Unverified
Commit
18b72b9b
authored
Jan 01, 2023
by
Aidan Epstein
Committed by
GitHub
Jan 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation to mention the environment variables that scripts can use. (#191)
parent
819a9925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
README.md
README.md
+1
-1
swaync.5.scd
man/swaync.5.scd
+13
-0
No files found.
README.md
View file @
18b72b9b
...
...
@@ -212,7 +212,7 @@ Config properties:
//
This
script
will
only
run
when
Spotify
sends
a
notification
containing
//
that
exact
summary
and
body
"example-script"
:
{
"exec"
:
"
~/.config/swaync
/myRickRollScript.sh"
,
"exec"
:
"
/path/to
/myRickRollScript.sh"
,
"app-name"
:
"Spotify"
"summary"
:
"Never Gonna Give You Up"
,
"body"
:
"Rick Astley - Whenever You Need Somebody"
...
...
man/swaync.5.scd
View file @
18b72b9b
...
...
@@ -353,3 +353,16 @@ config file to be able to detect config errors
}
}
```
You can also use these environment variables in your script:
```
SWAYNC_BODY="Notification body content"
SWAYNC_DESKTOP_ENTRY="Desktop entry"
SWAYNC_URGENCY="Notification urgency"
SWAYNC_TIME="Notification time"
SWAYNC_APP_NAME="Notification app name"
SWAYNC_CATEGORY="SwayNC notification category"
SWAYNC_REPLACES_ID="ID of notification to replace"
SWAYNC_ID="SwayNC notification ID"
SWAYNC_SUMMARY="Notification summary"
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment