feat: very nice swaync config

This commit is contained in:
2025-09-17 00:13:25 +03:00
parent 6518b1ac2e
commit 8b990839b1
2 changed files with 47 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"ignore-gtk-theme": false,
"ignore-gtk-theme": true,
"positionX": "right",
"positionY": "top",
"layer": "overlay",
@@ -51,10 +51,13 @@
}
},
"widgets": [
"inhibitors",
"title",
"buttons-grid",
"volume",
"inhibitors",
"dnd",
"notifications"
"notifications",
"mpris"
],
"widget-config": {
"inhibitors": {
@@ -63,16 +66,16 @@
"clear-all-button": true
},
"title": {
"text": "Notifications",
"text": "Kolinux v1.0",
"clear-all-button": true,
"button-text": "Purge"
"button-text": "Purge notifications"
},
"dnd": {
"text": "Don't bother"
},
"label": {
"max-lines": 5,
"text": "Label Text"
"max-lines": 1,
"text": "Kolinux 1.0"
},
"mpris": {
"blacklist": [],
@@ -84,12 +87,25 @@
"buttons-per-row": 7,
"actions": [
{
"label": "",
"label": "󰘊",
"type": "toggle",
"active": true,
"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 | awk \\\"/Powered/ {print \\$2}\\\" | grep -q yes && echo true || echo false\'"
},
{
"label": "󰦝",
"type": "toggle",
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && mullvad connect || mullvad disconnect'",
"update-command": "sh -c '[[ $(mullvad status | grep -e Connected ) == \"Connected\" ]] && echo true || echo false'"
}
]
}
}