bin/rofi/bwmenu: add --field whole support

Mostly for shell script interop, so each field doesn't have to be
independently fetched.
This commit is contained in:
Henrik Lissner 2021-02-24 14:35:16 -05:00
parent 705a1fa30d
commit 60ca8b192b

View file

@ -211,6 +211,7 @@ module BW
end end
def show_item item, field: nil def show_item item, field: nil
return item.to_json if field == 'whole'
preamble = {} preamble = {}
data = {} data = {}
case item['type'] case item['type']