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";
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",
"pulseaudio",
"network",
"custom/bluetooth",
"bluetooth",
"cpu",
"memory",
"temperature",
@@ -2697,15 +2703,13 @@ These are config files for waybar
"on-click-right": "nm-connection-editor",
},
"custom/bluetooth": {
"exec": "bash -c 'bluetoothctl info | grep \"Device\" | awk -F \": \" \"{print $2}\"'",
"interval": 10,
"format": "",
"bluetooth": {
"exec": "~/.config/waybar/scripts/bluetooth-status.sh",
"interval": 5,
"tooltip": true,
"tooltip-format": "{output}", // will show connected devices
"on-click": "blueman-manager", // opens blueman on click
"max-length": 50
}
"tooltip-format": "Connected devices:\n{output}",
"on-click": "blueman-manager"
}
"cpu": {
"format": "{usage}%  ",
@@ -2976,7 +2980,20 @@ window#waybar {
background: transparent;
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
+7 -9
View File
@@ -10,7 +10,7 @@
"idle_inhibitor",
"pulseaudio",
"network",
"custom/bluetooth",
"bluetooth",
"cpu",
"memory",
"temperature",
@@ -74,15 +74,13 @@
"on-click-right": "nm-connection-editor",
},
"custom/bluetooth": {
"exec": "bash -c 'bluetoothctl info | grep \"Device\" | awk -F \": \" \"{print $2}\"'",
"interval": 10,
"format": "",
"bluetooth": {
"exec": "~/.config/waybar/scripts/bluetooth-status.sh",
"interval": 5,
"tooltip": true,
"tooltip-format": "{output}", // will show connected devices
"on-click": "blueman-manager", // opens blueman on click
"max-length": 50
}
"tooltip-format": "Connected devices:\n{output}",
"on-click": "blueman-manager"
}
"cpu": {
"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";
force = true;
};
".config/waybar/scripts/bluetooth-status.sh" = {
text = builtins.readFile "${assetPath}/scripts/bluetooth-status.sh";
force = true;
executable = true;
};
};
};
};