eww: use awk instead of head -c
This commit is contained in:
parent
5e40304e58
commit
4a409ef44f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user