eww: limit size of bluetooth name

This commit is contained in:
Simon Gardling 2025-09-15 15:06:06 -04:00
parent 6a5afb5e35
commit ca4db80ebb
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -84,7 +84,8 @@
(label
:text "${bluetooth-name} 󰂯")))
(defpoll bluetooth-name :interval "10s" `bluetoothctl devices Connected | awk '{print $3}'`)
; `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`)
(defwidget time []
(box