132 lines
4.3 KiB
JSON
132 lines
4.3 KiB
JSON
{
|
|
"$schema": "configSchema.json",
|
|
"positionX": "right",
|
|
"positionY": "top",
|
|
"layer": "overlay",
|
|
"control-center-layer": "overlay",
|
|
"layer-shell": true,
|
|
"cssPriority": "application",
|
|
"control-center-margin-top": 0,
|
|
"control-center-margin-bottom": 0,
|
|
"control-center-margin-right": 0,
|
|
"control-center-margin-left": 0,
|
|
"notification-2fa-action": true,
|
|
"notification-inline-replies": false,
|
|
"notification-icon-size": 64,
|
|
"notification-body-image-height": 100,
|
|
"notification-body-image-width": 200,
|
|
"timeout": 5,
|
|
"timeout-low": 3,
|
|
"timeout-critical": 0,
|
|
"fit-to-screen": false,
|
|
"relative-timestamps": true,
|
|
"control-center-width": 450,
|
|
"control-center-height": 900,
|
|
"notification-window-width": 500,
|
|
"keyboard-shortcuts": true,
|
|
"image-visibility": "when-available",
|
|
"transition-time": 120,
|
|
"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": {
|
|
"spotify": {
|
|
"state": "muted",
|
|
"app-name": "Spotify"
|
|
}
|
|
},
|
|
"widgets": [
|
|
"title",
|
|
"notifications",
|
|
"mpris",
|
|
"volume",
|
|
"backlight",
|
|
"buttons-grid",
|
|
"inhibitors"
|
|
],
|
|
"widget-config": {
|
|
"title": {
|
|
"text": "Notifications",
|
|
"clear-all-button": true,
|
|
"button-text": "Clear"
|
|
},
|
|
"inhibitors": {
|
|
"text": "Inhibitors"
|
|
},
|
|
"dnd": {
|
|
"text": "Do Not Disturb"
|
|
},
|
|
"label": {
|
|
"max-lines": 5,
|
|
"text": "Label Text"
|
|
},
|
|
"mpris": {
|
|
"image-size": 80,
|
|
"image-radius": 16,
|
|
"blur": true
|
|
},
|
|
"volume": {
|
|
"label": " ",
|
|
"show-per-app": true,
|
|
"show-per-app-icon": true,
|
|
"collapse-button-label": " ",
|
|
"expand-button-label": " "
|
|
},
|
|
"backlight": {
|
|
"label": " ",
|
|
"device": "scrollock",
|
|
"subsystem": "leds"
|
|
},
|
|
"buttons-grid": {
|
|
"actions": [
|
|
{
|
|
"label": " Internet",
|
|
"type": "toggle",
|
|
"active": false,
|
|
"command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/internet-toggle.sh; Toggle_state'",
|
|
"update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/internet-toggle.sh; Update_state'"
|
|
},
|
|
{
|
|
"label": " Bluetooth",
|
|
"type": "toggle",
|
|
"active": false,
|
|
"command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/bluetooth-toggle.sh; Toggle_state'",
|
|
"update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/bluetooth-toggle.sh; Update_state'"
|
|
},
|
|
{
|
|
"label": " DND",
|
|
"type": "toggle",
|
|
"command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/dnd-toggle.sh; Toggle_state'",
|
|
"update-command": "sh -c 'source $HOME/.config/swaync/scripts/control-center/dnd-toggle.sh; Update_state'"
|
|
},
|
|
{
|
|
"label": " Wallpaper",
|
|
"type": "normal",
|
|
"command": "bash -c 'swaync-client -cp; bash $HOME/.config/hypr/scripts/change-wallpaper.sh'"
|
|
},
|
|
{
|
|
"label": " Screenshot",
|
|
"type": "normal",
|
|
"command": "sh -c 'swaync-client -cp; hyprshot -m region -o $HOME/Screenshots'"
|
|
},
|
|
{
|
|
"label": " Logout",
|
|
"type": "normal",
|
|
"command": "wlogout -b 5"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|