nixos-config/modules/home/swaync/config.json
Frost-Phoenix 0ea1cb3692 fix swaync
2024-06-25 10:46:21 +02:00

133 lines
3.3 KiB
JSON

{
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"layer-shell": "true",
"cssPriority": "application",
"control-center-margin-top": 10,
"control-center-margin-bottom": 10,
"control-center-margin-right": 10,
"control-center-margin-left": 10,
"notification-icon-size": 64,
"notification-body-image-height": 128,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": true,
"control-center-width": 400,
"control-center-height": 650,
"notification-window-width": 350,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"widgets": [
"title",
"menubar#desktop",
"volume",
"backlight#mobile",
"mpris",
"dnd",
"notifications"
],
"widget-config": {
"title": {
"text": "Notifications",
"clear-all-button": true,
"button-text": " Clear All "
},
"menubar#desktop": {
"menu#powermode-buttons": {
"label": " 󰌪 ",
"position": "left",
"actions": [
{
"label": "Performance",
"command": "powerprofilesctl set performance"
},
{
"label": "Balanced",
"command": "powerprofilesctl set balanced"
},
{
"label": "Power-saver",
"command": "powerprofilesctl set power-saver"
}
]
},
"menu#screenshot": {
"label": "  ",
"position": "left",
"actions": [
{
"label": "Whole screen",
"command": "grimblast --notify --cursor --freeze copysave output"
},
{
"label": "Window / Region",
"command": "grimblast --notify --cursor --freeze copysave area"
}
]
},
"menu#record": {
"label": " 󰕧 ",
"position": "left",
"actions": [
{
"label": "todo",
"command": "sh -c 'swaync-client -cp; pkexec ~/.config/scripts/fancontrol.sh 0'"
},
{
"label": "todo",
"command": "sh -c 'swaync-client -cp; pkexec ~/.config/scripts/fancontrol.sh 25'"
},
{
"label": "Full speed",
"command": "sh -c 'swaync-client -cp; pkexec ~/.config/scripts/fancontrol.sh 100'"
}
]
},
"menu#power-buttons": {
"label": "  ",
"position": "left",
"actions": [
{
"label": " Lock",
"command": "swaylock"
},
{
"label": " Reboot",
"command": "systemctl reboot"
},
{
"label": " Shut down",
"command": "systemctl poweroff"
}
]
}
},
"backlight#mobile": {
"label": " 󰃠 ",
"device": "panel"
},
"volume": {
"label": "",
"expand-button-label": "",
"collapse-button-label": "",
"show-per-app": true,
"show-per-app-icon": true,
"show-per-app-label": false
},
"dnd": {
"text": " Do Not Disturb"
},
"mpris": {
"image-size": 85,
"image-radius": 5
}
}
}