Skip to content

Commit

Permalink
remove --use-window-size from kitty icat call
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Mar 28, 2024
1 parent 49a81b3 commit 1a48880
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions thu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,9 @@ image_to_kittenicat () {
# or must be exactly placed AND sized
# --place `<width>x<height>@<left>x<top>`
# --use-window-size `cells_width,cells_height,pixels_width,pixels_height`
# https://github.com/kovidgoyal/kitty/discussions/7275
if [[ -n "$is_stdout_blocked" ]]; then
kicat_wh_cells=$(wh_term_columnsrows_get)
kicat_wh_pixels=$(wh_pixels_from_cells_get "$kicat_wh_cells" "$wh_cell")

kitten icat \
--use-window-size "${kicat_wh_cells/x/,},${kicat_wh_pixels/x/,}" \
--place "${img_wh}@${img_tl}" \
--align left \
--stdin=no \
Expand Down

0 comments on commit 1a48880

Please sign in to comment.