-
-
Notifications
You must be signed in to change notification settings - Fork 526
feat: add swaync wallbash support (alpha) #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 2 commits
c736c6d
6f992bb
87d8e6b
ed4a6a5
d09adf3
9526796
8b82469
c8d506d
43b9f5f
8619414
3e4655d
ed1ae2f
6d9817d
a738f99
d5ba86a
aa07c34
aebbf8d
4810d7f
7811866
114a473
5ca1fc1
2f209d1
1f65336
9fcf711
7432313
20819f3
4ce400f
7f327cc
cc3c9d6
7013ddd
4f65bd5
9759c45
fd2ad68
1b41b17
f7d936a
cd54bd6
0415b19
9a4f3b8
6b24dc4
0f2f999
7540422
bdb1b73
93547af
182c553
afa0db8
c5e19bf
8cbd8b6
5c07530
1b08e6b
24e146f
39175c2
2d3db80
ed63e1f
3de9358
add6a60
ad69665
1138865
c57fe31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| { | ||
| "$schema": "/etc/xdg/swaync/configSchema.json", | ||
| "positionX": "right", | ||
| "positionY": "top", | ||
| "layer": "overlay", | ||
| "control-center-layer": "top", | ||
| "layer-shell": true, | ||
| "cssPriority": "application", | ||
| "control-center-margin-top": 5, | ||
| "control-center-margin-bottom": 100, | ||
| "control-center-margin-right": 20, | ||
| "control-center-margin-left": 20, | ||
| "notification-2fa-action": true, | ||
| "notification-inline-replies": true, | ||
| "notification-icon-size": 64, | ||
| "notification-body-image-height": 100, | ||
| "notification-body-image-width": 200, | ||
| "timeout": 10, | ||
| "timeout-low": 5, | ||
| "timeout-critical": 0, | ||
| "fit-to-screen": true, | ||
| "relative-timestamps": true, | ||
| "control-center-width": 350, | ||
| "control-center-height": 600, | ||
| "notification-window-width": 400, | ||
| "keyboard-shortcuts": true, | ||
| "image-visibility": "when-available", | ||
| "transition-time": 200, | ||
| "hide-on-clear": false, | ||
| "hide-on-action": true, | ||
| "script-fail-notify": true, | ||
| "scripts": { | ||
| "example-script": { | ||
| "exec": "echo 'Do something...'", | ||
| "urgency": "Normal" | ||
| }, | ||
| "example-action-script": { | ||
| "exec": "echo 'Do something actionable!'", | ||
| "urgency": "Normal", | ||
| "run-on": "action" | ||
| } | ||
| }, | ||
| "notification-visibility": { | ||
| "example-name": { | ||
| "state": "muted", | ||
| "urgency": "Low", | ||
| "app-name": "Spotify" | ||
| } | ||
| }, | ||
| "widgets": [ | ||
| "inhibitors", | ||
| "title", | ||
| "dnd", | ||
| "notifications" | ||
| ], | ||
| "widget-config": { | ||
| "inhibitors": { | ||
| "text": "Inhibitors", | ||
| "button-text": "Clear All", | ||
| "clear-all-button": true | ||
| }, | ||
| "title": { | ||
| "text": "Notifications", | ||
| "clear-all-button": true, | ||
| "button-text": "Clear All" | ||
| }, | ||
| "dnd": { | ||
| "text": "Do Not Disturb" | ||
| }, | ||
| "label": { | ||
| "max-lines": 5, | ||
| "text": "Label Text" | ||
| }, | ||
| "mpris": { | ||
| "image-size": 96, | ||
| "image-radius": 12 | ||
| }, | ||
| "buttons-grid": { | ||
| "actions": [ | ||
| { | ||
| "label": "直", | ||
| "type": "toggle", | ||
| "active": true, | ||
| "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'", | ||
| "update_command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
| # Time : 2025-April-23 11:52:54 | ||
| # Author : JaxTsai | ||
|
|
||
| swaync-client -rs |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try to use this template. swaync has limited elements so I think it's fine to explicitly declare them to be refined further. Also importing the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good idea. i'll do it. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ${confDir}/swaync/style.css|${WALLBASH_SCRIPTS}/swaync.sh | ||
|
|
||
|
|
||
| @define-color cc-bg #<wallbash_pry2>; | ||
| @define-color noti-border-color #<wallbash_pry4>; | ||
|
|
||
| @define-color noti-bg #<wallbash_pry2>; | ||
| @define-color noti-bg-hover #<wallbash_4xa2>; | ||
|
|
||
| @define-color noti-bg-opaque #<wallbash_pry3>; | ||
| @define-color noti-bg-hover-opaque #<wallbash_4xa3>; | ||
| /* @define-color noti-bg-darker rgb(38, 38, 38); */ | ||
| /* @define-color noti-bg-focus #wallbash_pry3; */ | ||
| /* @define-color noti-close-bg rgba(255, 255, 255, 0.1); */ | ||
| /* @define-color noti-close-bg-hover rgba(255, 255, 255, 0.15); */ | ||
| @define-color text-color #<wallbash_txt2>; | ||
| @define-color text-color-disabled #<wallbash_txt4>; |

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to reload all
swaync-client -R && swaync-client -rs