eww: use awk instead of head -c

This commit is contained in:
Simon Gardling 2025-09-20 00:25:28 -04:00
parent 5e40304e58
commit 4a409ef44f
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -79,7 +79,7 @@
:text "${bluetooth-name} 󰂯")))
; `FNR == 1 + head -c 30` so the name doesn't explode the screen
(defpoll bluetooth-name :interval "10s" `bluetoothctl devices Connected | awk 'FNR == 1 {print $3}' | head -c 30`)
(defpoll bluetooth-name :interval "10s" `bluetoothctl devices Connected | awk 'FNR == 1 {print substr($0,1,30)}'`)
(defwidget time []
(box