WRITELOOP

SXIV TIPS

2019 January 6

I was searching for a scriptable cli image viewer and have found that on sxiv (Simple X Image Viewer).

Cheatsheet

Important: none of the commands below will change the image in any way, they are just for visualization purposes.

- Toggle fullscreen mode: f
- Toggle thumbnail mode: [enter] (on the CLI, type `sxiv -t file.gif`)
- Select a file (better to use on thumbnail mode to see the selected ones): m
- Zoom controls: +, -, =
- Zoom by height/width: e, E
- Rotate image: >
- Flip image vertically: |
- Flip image horizontally: _
- Play gifs: [ctrl][space] (on the CLI, type `sxiv -a file.gif`)
- Run custom command: [ctrl][x][custom-command-key-here*]
(* the command shortcut must be defined in
/storage/src/dot_files/sxiv/exec/key-handler.
For now, [p] will set pywal theme and [w] will set wallpaper.)