473 current 2025-07-09 20:14:48 25.05.20250424.f771eb4 6.12.24 *

This commit is contained in:
2025-07-09 20:15:14 -04:00
parent e474856a82
commit fed1ae8d8e
4 changed files with 28 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ in
then
echo "%{F#2193ff}"
else
echo "%{F#2193ff} %{F#ffffff}[$device]"
echo "%{F#2193ff} %{F#ffffff}[$device]"
fi
fi
''

View File

@@ -0,0 +1,15 @@
{pkgs, ...}: let
# bctl = "/run/current-system/sw/bin/bluetoothctl";
# sctl = "/run/current-system/sw/bin/systemctl";
# grep = "/run/current-system/sw/bin/grep";
# wc = "/run/current-system/sw/bin/wc";
tailscale = "/run/current-system/sw/bin/tailscale";
rg = "/etc/profiles/per-user/synchronous/bin/rg";
hostname = "/run/current-system/sw/bin/hostname";
ip = "/run/current-system/sw/bin/ip";
cut = "/run/current-system/sw/bin/cut";
awk = "/run/current-system/sw/bin/awk";
in
pkgs.writeShellScriptBin "tailscale-ctl" ''
tailscale status | rg "$(hostname)" &> /dev/null && echo "%{F#2193ff}🔗 [$(ip addr show tailscale0 | rg "inet " | awk '{print $2}' | cut -d'/' -f1 )]" || echo ""
''