Let's Linux #031: best image viewer for i3
budlabs
In this video I demonstrate how to spawn, sxiv - Simple X image viewer, in a certain container and make a small script that will always add all image files in a folder to the image list.
the files used in this video can be found on github: https://github.com/budlabs/youtube/tree/master/letslinux/031-open-images
Be sure to check out gotbletu's video about sxiv, he shows more things then I cover in this one.
Below is the script I use to open all windows in the same directory as the selected one:
#!/bin/bash
targetImage="${1##/}"
for f in .{png,jpg}; do [[ "$f" = "$targetImage" ]] && continue images+=("$f") done
sxiv -b "$targetImage" "${images[@]}" &
video info:
color scheme: Nikes, by /u/mihir94 terminal font: Fixedsys terminal emulator: URxvt figlet font: 3d.flf, by xero filemanager: Thunar sublime font: Hack icon theme: DamaDamas gtk theme: Numix (nikes)
related videos
Automatic script creation:
https://youtu.be/QGUmMtEnIkI
i3fyra:
https://youtu.be/t4Tve-xpwus
polybar, dynamic title:
https://youtu.be/3vQtovcQElY
Images in the video are from random movies. The terminator, robocop, fear and loathing in las vegas, trainspotting, full metal jacket, the shining, blues brothers, pulp fiction and ghost busters.
And some art related to black sabbath, the misfits, syd barret, miles davies, death grips.
Add this window rule to your i3 config: for_window [class="Sxiv"] title_format "sxiv" , focus; exec --no-startup-id exec i3fyra -m B
depends on i3fyra
lolban is the output of figlet piped through lolcat. I have a video where i show how it works. That video is called: Let's Linux #009: Automatic script creation, and can be found here: https://youtu.be/QGUmMtEnIkI
The figlet font used with lolban is created by xero. It is called: 3d.flf And can be found on github: https://github.com/xero/figlet-fonts ... https://www.youtube.com/watch?v=VAAV3cQsqAE
48824224 Bytes