235 current 2025-01-11 21:20:00 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-11 21:20:10 -05:00
parent 514e105f96
commit 7aed127aee

View File

@@ -3,6 +3,7 @@
sctl = "/run/current-system/sw/bin/systemctl";
grep = "/run/current-system/sw/bin/grep";
wc = "/run/current-system/sw/bin/wc";
cut = "/run/current-system/sw/bin/cut";
in
pkgs.writeShellScriptBin "bluetooth-ctl" ''
if [ $(${bctl} show | ${grep} "Powered: yes" | ${wc} -c) -eq 0 ]
@@ -13,7 +14,7 @@ in
then
echo ""
fi
device=$(${bctl} info | ${grep} "Name" | cut -d ' ' -f 2-)
device=$(${bctl} info | ${grep} "Name" | ${cut} -d ' ' -f 2-)
if [[ "$device" == "" ]]
then
echo "%{F#2193ff}"