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:
@@ -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": "",
|
||||
|
||||
Reference in New Issue
Block a user