add swaync as notification manager
This commit is contained in:
parent
3036a745e7
commit
90ab1652b0
7 changed files with 743 additions and 29 deletions
132
modules/home/swaync/config.json
Normal file
132
modules/home/swaync/config.json
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"positionX": "center",
|
||||
"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": 1508,
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue