Swayimg

Jul 20, 2023

Image viewer for Sway/Wayland

Now you can view images directly in the current terminal window!

The program uses Sway IPC to determine the geometry of the currently focused container. This data is used to calculate the position and size of the new “overlay” window that will be used to draw the image. In the next step, swayimg adds two Sway rules for the self window “floating enable” and “move position”. Then it creates a new Wayland window and draws the image from the specified file.



Checkout these related ports:
  • Zenity - Display GNOME dialogs from the command line
  • Yelp - Help browser for the GNOME desktop
  • Yeahconsole - Terminal wrapper for creating drop-down consoles
  • Yalias - Enhanced execution box with regex pattern matching
  • Yakuake - Drop-down terminal emulator for KDE
  • Yad - Display GNOME dialogs from the command line
  • Xzoom - Magnify, rotate, mirror the image on the X11 screen
  • Xxkb - XKB keyboard layout indicator and switcher
  • Xwud - Image displayer for X
  • Xwit - X interface tool
  • Xwinwrap - XWinWrap replace a desktop background with a movie or screensaver
  • Xwininfo - Window information utility for X
  • Xwd - Dump an image of an X window
  • Xwatchwin - Watch a window on another X server
  • Xvt - Xterm replacement, supporting color, transparency, and more, with less