refactor: swaync notification sound cooldown;

fix: swaync bluetooth status check broken since bluetoothctl does not output anything unless in interactive mode
This commit is contained in:
2026-03-19 02:16:56 +03:00
parent b467bd07a0
commit 80cab05851
2 changed files with 23 additions and 7 deletions

View File

@@ -127,7 +127,7 @@
"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\'"
"update-command": "sh -c \'echo show | bluetoothctl | awk \\\"/Powered/ {print \\$2}\\\" | grep -q yes && echo true || echo false\'"
},
{
"label": "󰦝",
@@ -139,7 +139,7 @@
"label": "",
"type": "toggle",
"command": "sh -c 'nohup ~/.config/hypr/scripts/toggle_proxy.sh > /dev/null 2>&1 & disown'",
"update-command": "sh -c 'pgrep sslocal > /dev/null && echo true || echo false'"
"update-command": "sh -c '~/.config/hypr/scripts/toggle_proxy.sh get'"
},
{
"label": "󰍰",