mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
fix(network): correct regex escaping for Wi-Fi signal strength retrieval (#3056)
This commit is contained in:
@@ -233,7 +233,7 @@ Singleton {
|
|||||||
Process {
|
Process {
|
||||||
id: updateNetworkStrength
|
id: updateNetworkStrength
|
||||||
running: true
|
running: true
|
||||||
command: ["sh", "-c", "nmcli -f IN-USE,SIGNAL,SSID device wifi | awk '/^\*/{if (NR!=1) {print $2}}'"]
|
command: ["sh", "-c", "nmcli -f IN-USE,SIGNAL,SSID device wifi | awk '/^\\*/{if (NR!=1) {print $2}}'"]
|
||||||
stdout: SplitParser {
|
stdout: SplitParser {
|
||||||
onRead: data => {
|
onRead: data => {
|
||||||
root.networkStrength = parseInt(data);
|
root.networkStrength = parseInt(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user