feat(swaync): add new buttons to buttons-grid and fix others

This commit is contained in:
João Dias
2024-09-12 20:10:04 -03:00
parent 323d1c599e
commit 6ed9406a30
2 changed files with 44 additions and 28 deletions
+25 -11
View File
@@ -69,7 +69,7 @@
},
"label": {
"max-lines": 5,
"text": "Label Text"
"text": "Label"
},
"mpris": {
"image-size": 96,
@@ -86,20 +86,34 @@
"buttons-grid": {
"actions": [
{
"label": " Power Menu",
"type": "normal",
"command": "wlogout -b 4"
},
{
"label": "󰒲 Do Not Disturb",
"label": " Internet",
"type": "toggle",
"command": "swaync-client -d",
"update-command": "swaync-client -D"
"active": true,
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli n on || nmcli n off'",
"update-command": "sh -c '[[ $(nmcli n c) == full ]] && echo true || echo false'"
},
{
"label": "Change Wallpaper",
"label": " Bluetooth",
"type": "toggle",
"active": false,
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'",
"update-command": "sh -c '[[ $(bluetoothctl show | grep Powered | sed 's/Powered: //') == yes ]] && echo true || echo false'"
},
{
"label": "󰒲 DNDisturb",
"type": "toggle",
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && swaync-client -dn || swaync-client -df'",
"update-command": "sh -c '[[ $(swaync-client -D) == true ]] && echo true || echo false'"
},
{
"label": "󰸉 Wallpaper",
"type": "normal",
"command": "bash -c '$(swaync-client -cp; bash $HOME/.config/hypr/scripts/change-wallpaper.sh)'"
"command": "bash -c 'swaync-client -cp; bash $HOME/.config/hypr/scripts/change-wallpaper.sh'"
},
{
"label": "󰗽 Logout",
"type": "normal",
"command": "wlogout -b 5"
}
]
}