Skip to content

Commit

Permalink
feat(contrib): resize images in wofi script to make them clearly visi…
Browse files Browse the repository at this point in the history
…ble (#105)

"-Dimage_size=100" to increase image size.
"-Dynamic_lines=true" to allow the height of the images to be different from the text height.
Thanks to @scientiac in #85 (comment)
  • Loading branch information
Albert-aka-Albot authored Jun 29, 2024
1 parent c3be9a3 commit 05d29dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/cliphist-wofi-img
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ match(\$0, /^([0-9]+)\s(\[\[\s)?binary.*(jpg|jpeg|png|bmp)/, grp) {
1
EOF

choice=$(gawk <<< $cliphist_list "$prog" | wofi -I --dmenu)
choice=$(gawk <<< $cliphist_list "$prog" | wofi -I --dmenu -Dimage_size=100 -Dynamic_lines=true)

# stop execution if nothing selected in wofi menu
[ -z "$choice" ] && exit 1
Expand Down

0 comments on commit 05d29dc

Please sign in to comment.