201 lines
4.8 KiB
JSON
201 lines
4.8 KiB
JSON
{
|
|
"$schema": "/etc/xdg/swaync/configSchema.json",
|
|
"positionX": "right",
|
|
"positionY": "top",
|
|
"control-center-margin-top": 0,
|
|
"control-center-margin-bottom": 0,
|
|
"control-center-margin-right": 0,
|
|
"control-center-margin-left": 0,
|
|
"notification-icon-size": 24,
|
|
"notification-body-image-height": 48,
|
|
"notification-body-image-width": 48,
|
|
"timeout": 10,
|
|
"timeout-low": 5,
|
|
"timeout-critical": 0,
|
|
"fit-to-screen": true,
|
|
"control-center-width": 380,
|
|
"notification-window-width": 366,
|
|
"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"
|
|
}
|
|
},
|
|
"notification-visibility": {
|
|
"example-name": {
|
|
"state": "muted",
|
|
"urgency": "Low",
|
|
"app-name": "Spotify"
|
|
}
|
|
},
|
|
"widgets": [
|
|
"label",
|
|
"menubar",
|
|
"buttons-grid",
|
|
"volume",
|
|
"mpris",
|
|
"title",
|
|
"dnd",
|
|
"notifications"
|
|
],
|
|
"widget-config": {
|
|
"title": {
|
|
"text": "Notifications",
|
|
"clear-all-button": true,
|
|
"button-text": "Clear All"
|
|
},
|
|
"dnd": {
|
|
"text": "Do Not Disturb"
|
|
},
|
|
"label": {
|
|
"max-lines": 1,
|
|
"text": "Control Center"
|
|
},
|
|
"mpris": {
|
|
"image-size": 96,
|
|
"image-radius": 6
|
|
},
|
|
"backlight": {
|
|
"label": "",
|
|
"device": "intel_backlight",
|
|
"min": 10
|
|
},
|
|
"backlight#KB": {
|
|
"label": " ",
|
|
"device": "asus::kbd_backlight",
|
|
"subsystem": "leds"
|
|
},
|
|
"volume": {
|
|
"label": ""
|
|
},
|
|
"menubar": {
|
|
"menu#power-buttons": {
|
|
"label": "",
|
|
"position": "right",
|
|
"actions": [
|
|
{
|
|
"label": " Reboot",
|
|
"command": "systemctl reboot"
|
|
},
|
|
{
|
|
"label": " Lock",
|
|
"command": "swaylock.sh"
|
|
},
|
|
{
|
|
"label": " Logout",
|
|
"command": "loginctl terminate-session ${XDG_SESSION_ID-}"
|
|
},
|
|
{
|
|
"label": " Shut down",
|
|
"command": "systemctl poweroff"
|
|
}
|
|
]
|
|
},
|
|
"menu#powermode-buttons": {
|
|
"label": "",
|
|
"position": "right",
|
|
"actions": [
|
|
{
|
|
"label": "Performance",
|
|
"command": "powerprofilesctl set performance"
|
|
},
|
|
{
|
|
"label": "Balanced",
|
|
"command": "powerprofilesctl set balanced"
|
|
},
|
|
{
|
|
"label": "Power-saver",
|
|
"command": "powerprofilesctl set power-saver"
|
|
}
|
|
]
|
|
},
|
|
"menu#screenshot-buttons": {
|
|
"label": "",
|
|
"position": "left",
|
|
"actions": [
|
|
{
|
|
"label": " Select a region",
|
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy area"
|
|
},
|
|
{
|
|
"label": " Select a window",
|
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy window"
|
|
},
|
|
{
|
|
"label": " Current output",
|
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy output"
|
|
},
|
|
{
|
|
"label": " All outputs",
|
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy screen"
|
|
}
|
|
]
|
|
},
|
|
//"menu#screencast-buttons": {
|
|
//"label": "",
|
|
//"position": "left",
|
|
//"actions": [
|
|
//{
|
|
//"label": " Entire screen",
|
|
//"command": "swaync-client -cp && sleep 1 && recording.sh toggle fullscreen"
|
|
//},
|
|
//{
|
|
//"label": " Select a region",
|
|
//"command": "swaync-client -cp && sleep 1 && recording.sh toggle region"
|
|
//},
|
|
//{
|
|
//"label": " Stop",
|
|
//"command": "swaync-client -cp && recording.sh stop"
|
|
//},
|
|
//{
|
|
//"label": " Open screencast folder",
|
|
//"command": "$XDG_VIDEOS_DIR/Screencasts"
|
|
//}
|
|
//]
|
|
//}
|
|
//},
|
|
"buttons-grid": {
|
|
"actions": [
|
|
{
|
|
"label": "",
|
|
"command": "nm-connection-editor"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "blueman-manager"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "nwg-look"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "exo-open ~/ConfigHub"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "ymuse"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "orage"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "pamac-manager"
|
|
},
|
|
{
|
|
"label": "",
|
|
"command": "firefox"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|