Regenerated

This commit is contained in:
2026-03-31 16:58:54 +00:00
parent 0baa352bfe
commit 049746a077
5 changed files with 362 additions and 308 deletions
+314 -290
View File
File diff suppressed because it is too large Load Diff
+26 -9
View File
@@ -2595,6 +2595,12 @@ in
text = builtins.readFile "${assetPath}/style.css"; text = builtins.readFile "${assetPath}/style.css";
force = true; force = true;
}; };
".config/waybar/scripts/bluetooth-status.sh" = {
text = builtins.readFile "${assetPath}/scripts/bluetooth-status.sh";
force = true;
executable = true;
};
}; };
}; };
}; };
@@ -2633,7 +2639,7 @@ These are config files for waybar
"idle_inhibitor", "idle_inhibitor",
"pulseaudio", "pulseaudio",
"network", "network",
"custom/bluetooth", "bluetooth",
"cpu", "cpu",
"memory", "memory",
"temperature", "temperature",
@@ -2697,15 +2703,13 @@ These are config files for waybar
"on-click-right": "nm-connection-editor", "on-click-right": "nm-connection-editor",
}, },
"custom/bluetooth": { "bluetooth": {
"exec": "bash -c 'bluetoothctl info | grep \"Device\" | awk -F \": \" \"{print $2}\"'", "exec": "~/.config/waybar/scripts/bluetooth-status.sh",
"interval": 10, "interval": 5,
"format": "",
"tooltip": true, "tooltip": true,
"tooltip-format": "{output}", // will show connected devices "tooltip-format": "Connected devices:\n{output}",
"on-click": "blueman-manager", // opens blueman on click "on-click": "blueman-manager"
"max-length": 50 }
}
"cpu": { "cpu": {
"format": "{usage}%  ", "format": "{usage}%  ",
@@ -2976,7 +2980,20 @@ window#waybar {
background: transparent; background: transparent;
opacity: 0; opacity: 0;
} }
#+END_SRC
** =.config/waybar/scripts/bluetooth-status.sh=
These are config files for waybar
#+BEGIN_SRC sh :tangle generated/.config/waybar/scripts/bluetooth-status.sh :noweb yes :mkdirp yes :eval never
#!/usr/bin/env bash
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
if [ -n "$bt_connected" ]; then
echo ""
else
echo ""
fi
# Output the list for tooltip
echo "$bt_connected"
#+END_SRC #+END_SRC
+7 -9
View File
@@ -10,7 +10,7 @@
"idle_inhibitor", "idle_inhibitor",
"pulseaudio", "pulseaudio",
"network", "network",
"custom/bluetooth", "bluetooth",
"cpu", "cpu",
"memory", "memory",
"temperature", "temperature",
@@ -74,15 +74,13 @@
"on-click-right": "nm-connection-editor", "on-click-right": "nm-connection-editor",
}, },
"custom/bluetooth": { "bluetooth": {
"exec": "bash -c 'bluetoothctl info | grep \"Device\" | awk -F \": \" \"{print $2}\"'", "exec": "~/.config/waybar/scripts/bluetooth-status.sh",
"interval": 10, "interval": 5,
"format": "",
"tooltip": true, "tooltip": true,
"tooltip-format": "{output}", // will show connected devices "tooltip-format": "Connected devices:\n{output}",
"on-click": "blueman-manager", // opens blueman on click "on-click": "blueman-manager"
"max-length": 50 }
}
"cpu": { "cpu": {
"format": "{usage}%  ", "format": "{usage}%  ",
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
if [ -n "$bt_connected" ]; then
echo ""
else
echo ""
fi
# Output the list for tooltip
echo "$bt_connected"
@@ -19,6 +19,12 @@ in
text = builtins.readFile "${assetPath}/style.css"; text = builtins.readFile "${assetPath}/style.css";
force = true; force = true;
}; };
".config/waybar/scripts/bluetooth-status.sh" = {
text = builtins.readFile "${assetPath}/scripts/bluetooth-status.sh";
force = true;
executable = true;
};
}; };
}; };
}; };