From 7aed127aee67c113cb3c08343d713f8613a8b9d1 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sat, 11 Jan 2025 21:20:10 -0500 Subject: [PATCH] 235 current 2025-01-11 21:20:00 25.05.20241217.d3c42f1 6.6.66 * --- home/programs/polybar/scripts/bluetooth.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/programs/polybar/scripts/bluetooth.nix b/home/programs/polybar/scripts/bluetooth.nix index 57d9bae..b95a408 100644 --- a/home/programs/polybar/scripts/bluetooth.nix +++ b/home/programs/polybar/scripts/bluetooth.nix @@ -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}"