I am looking for a yad command to generate a continuously input field in a bash script.
For a event I am looking to generate a full screen yad window that should to the following:
Generate some text and a input field that always has the focus. I am scanning barcodes with a attached barcode scanner, and would like to write the scanned code into a text file. The yad window should stay open during this time and should allow continuously scanning of barcodes.
Anyone any idea how to best do that? I can create the input field and write Into a file, but not sure how to make yad keep the window open and and the focus on the input field.
Thanks for any idea,
Cheers
Oliver
Read the bar code and write it to a named pipe. In the other hand the FIFO output is read with a tail -F that is piped to a yad --text-info dialog.
--
You received this message because you are subscribed to the Google Groups "yad-common" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "yad-common" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/yad-common/J1XW6wl82wc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to yad-common+...@googlegroups.com.
yad --no-focus --fullscreen --window-icon="$yad_window_icon" --title="$windowtitle" --image="$yad_image" --image-on-top --no-buttons --form --align=center --field "\n <span font_family='Overpass' foreground='black' font='70' font_style='normal' underline='none'><b>This is room:</b></span>:LBL" --field "<span font_family='Overpass' foreground='black' font='200' font_style='normal' underline='none'><b>$roomname</b></span>:LBL" --field "<span font_family='Overpass' foreground='black' font='50' font_style='normal' underline='none'><b>\nPlease scan your Badge\n</b></span>:LBL" &--cycle-read --field "Barcode:RO" <&3yad --no-focus --fullscreen --window-icon="$yad_window_icon" --title="$windowtitle" --image="$yad_image" --image-on-top --no-buttons --form --align=center --field "\n <span font_family='Overpass' foreground='black' font='70' font_style='normal' underline='none'><b>This is room:</b></span>:LBL" --field "<span font_family='Overpass' foreground='black' font='200' font_style='normal' underline='none'><b>$roomname</b></span>:LBL" --field "<span font_family='Overpass' foreground='black' font='50' font_style='normal' underline='none'><b>\nPlease scan your Badge\n</b></span>:LBL" --cycle-read --field "Barcode:RO" <&3 &