You need to sign in or sign up before continuing.
config.json 2.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
{
	"$schema": "/etc/xdg/swaync/configSchema.json",
	"positionX": "right",
	"positionY": "top",
	"layer": "overlay",
	"control-center-layer": "top",
	"layer-shell": true,
	"cssPriority": "user",
	"control-center-width": 380,
	"control-center-height": 760,
	"control-center-margin-top": 2,
	"control-center-margin-bottom": 2,
	"control-center-margin-right": 1,
	"control-center-margin-left": 0,
	"notification-2fa-action": true,
	"notification-inline-replies": false,
	"notification-window-width": 400,
	"notification-icon-size": 45,
	"notification-body-image-height": 160,
	"notification-body-image-width": 200,
	"timeout": 4,
	"timeout-low": 2,
	"timeout-critical": 6,
	"fit-to-screen": false,
	"keyboard-shortcuts": true,
	"image-visibility": "when-available",
	"transition-time": 200,
	"hide-on-clear": false,
	"hide-on-action": false,
	"script-fail-notify": true,
	"widgets": [
		"menubar#label",
		"buttons-grid",
		"volume",
		"mpris",
		"title",
		"dnd",
		"notifications"
	],
	"widget-config": {
		"title": {
			"text": "Уведомления",
			"clear-all-button": true,
			"button-text": " 󰎟 "
		},
		"dnd": {
			"text": "Не беспокоить"
		},
		"mpris": {
			"image-size": 96,
			"image-radius": 12
		},
		"volume": {
			"label": "󰕾",
			"show-per-app": true,
			"show-per-app-label": true,
			"show-per-app-icon": true
		},
		"menubar#label": {
			"menu#powermode-buttons": {
				"label": " ",
				"position": "left",
				"actions": [
					{
						"label": " Производительность",
						"command": "powerprofilesctl set performance"
					},
					{
						"label": "  Баланс",
						"command": "powerprofilesctl set balanced"
					},
					{
						"label": " Энергосбережение",
						"command": "powerprofilesctl set power-saver"
					}
				]
			},
			"buttons#topbar-buttons": {
				"position": "right",
				"actions": [
					{
						"label": " ",
						"command": "wlogout"
					}
				]
			}
		},
		"buttons-grid": {
			"actions": [
				{
					"label": "  󰀑  ",
					"type": "toggle",
					"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wwan on || nmcli radio wwannmnm off'",
					"update-command": "sh -c '[[ $(nmcli radio wwan) == \"enabled\" ]] && echo true || echo false'"
				},
				{
					"label": "    ",
					"type": "toggle",
					"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'"
				},
				{
					"label": "  ",
					"type": "toggle",
					"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'",
					"update-command": "sh -c '[[ $(bluetoothctl show | grep 'PowerState: on') ]] && echo true || echo false'"
				},
				{
					"label": "    "
				}
			]
		}
	}
}