main
59c7d64 · 8 days ago 139 commits
 1{
 2  "$schema": "/etc/xdg/swaync/configSchema.json",
 3  "positionX": "right",
 4  "positionY": "top",
 5  
 6	"cssPriority": "user",
 7
 8  "control-center-width": 360,
 9  "control-center-height": 500, 
10  "control-center-margin-top": 0,
11  "control-center-margin-bottom": 0,
12  "control-center-margin-right": 1,
13  "control-center-margin-left": 0,
14
15  "notification-window-width": 360,
16  "notification-window-height": 500,
17  "notification-icon-size": 48,
18  "notification-body-image-height": 160,
19  "notification-body-image-width": 200,
20
21  "timeout": 4,
22  "timeout-low": 2,
23  "timeout-critical": 6,
24  
25  "fit-to-screen": false,
26  "keyboard-shortcuts": true,
27  "image-visibility": "when-available",
28  "transition-time": 200,
29  "hide-on-clear": false,
30  "hide-on-action": true,
31  "script-fail-notify": true,
32  "scripts": {},
33  "notification-visibility": {
34    "example-name": {
35      "state": "muted",
36      "urgency": "Low",
37      "app-name": "Spotify"
38    }
39  },
40  "widgets": [
41    "buttons-grid",
42    "mpris",
43    "title",
44    "notifications"
45  ],
46  "widget-config": {
47    "title": {
48      "text": "Notifications",
49      "clear-all-button": true,
50      "button-text": " 󰎟 "
51    },
52    "dnd": {
53      "text": "Do not disturb"
54    },
55    "mpris": {
56      "image-size": 100,
57      "image-radius": 9
58    },
59    "buttons-grid": {
60      "actions": [
61        {
62          "label": "󰂛",
63          "command": "swaync-client -d",
64          "type": "toggle",
65          "active": false,
66          "update-command": "swaync-client -D"
67        },
68        {
69          "label":"󰍭",
70          "command":"pactl set-source-mute @DEFAULT_SOURCE@ toggle",
71          "type":"toggle",
72          "active": false,
73          "update-command":"pactl get-source-mute @DEFAULT_SOURCE@ | grep 'Mute: yes' && echo 'true' || echo 'false'"
74        },
75        {
76          "label": "󰗹",
77          "command": "tailscale status | grep 'stopped' >/dev/null && tailscale up || tailscale down",
78          "type": "toggle",
79          "active": false,
80          "update-command": "tailscale status | grep 'stopped' >/dev/null && echo 'false' || echo 'true'"
81        },
82        {
83          "label": "",
84          "command": "hyprpicker -an"
85        },
86        {
87          "label": "󰂯",
88          "command": "smart-launch --tui 'bluetooth-setting' 'bash -c \"bluetui\"'"
89        }
90      ]
91    }
92  }
93}