You are not logged in.
but what about the nice gui that nitrogen provides, browsing a dedicated folder, generating previews...?
try this:
feh -r -t -P -N --scale-down -W 1008 -E 105 -y 168 -J 100 --index-info "%n" --title "Wallpapers" --action "feh -g 1008x630 %F" "$HOME/Pictures/wallpapers"
it will create a sheet of clickable thumbnails from the Pictures/wallpapers folder. clicking opens a larger view, upon which you can perform the above mentioned action to set it as a wallpaper, or just close it.
Things have evolved, I now use this script to create a sheet of clickable thumbnails:
#!/bin/sh
# $@ = list of folders to be searched for images
# tested with
# feh version 3.1.3
# Compile-time switches: curl exif help stat64 verscmp xinerama
#
# feh version 3.4.1
# Compile-time switches: curl exif inotify help stat64 verscmp xinerama
# NOTE: feh distiguishes between closing a window and exiting completely.
# the default key for closing a window is x
# the default key for exiting is q
# so if you look at a wallpaper full size, then press 'q', feh will close completely, incl. the thumbnail window.
# you could change this by unsetting the quit action and assigning 'q' to the close action:
# quit
# close q
# (add this to ~/.config/feh/keys)
# that way you have to press 'q' twice to exit completely.
# NOTE 2:
# scrolling up and down works with arrow keys Up/Down.
# the Left/Right arrow keys do not work in an intuitive way.
# you can scroll up and down with keys but will need to click on the desired image.
# get screen resolution
width="$(xwininfo -root | awk '/Width/ {print $2}')"
height="$(xwininfo -root | awk '/Height/ {print $2}')"
# limit window size to 90% of screen size
width="$(((width/10)*9))"
height="$(((height/10)*9))"
# how many rows and columns of thumbnails?
divider=8
thumbheight=$((height/divider))
thumbwidth=$((width/divider))
# feh adds 5 pixels of background below each thumbnail
fehquirk=5
# it scrolls down 1 row of images at a time
scrollstep=$(( (thumbheight+fehquirk) * 1 ))
# recursive? add -r
feh -r -t --cache-thumbnails --no-menus --index-info '' --ignore-aspect --stretch \
-g ${width}x$height --limit-width $width --thumb-width $thumbwidth --thumb-height $thumbheight \
--scroll-step $scrollstep --action ";feh --title='%f --- %wx%hpx' -g ${width}x$height %F" "$@"
#--bg $HOME/.config/scripts/feh/grey.gif
Feh now (3.4.1) also has a " --start-at" option which loads all images inside a folder even if it was invoked on only one image.
This makes some of the wrapper scripts discussed in this thread unnecessary.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos
Offline
A fine work as always ohnonot, been for a while on a old feh version, so now that i have new package i have chance to do some testing regarding new feh features. I'm sucker for that simple image viewer.
Offline
^ thanks!
Here's another one:
feh can display images straight from the interwebz:
feh https://dt.iki.fi/stuff/scrot/scrot-2020-08-29_23:21:36.png
Use it with a keybind:
<keybind key="C-A-f">
<action name="Execute">
<command>sh -c 'feh "$(xclip -o)"'</command>
</action>
</keybind>
to view images straight from your browser (Copy link location, press hotkey)!
Last edited by ohnonot (2020-08-29 20:54:52)
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos
Offline
Awesome! straight to the rc ^that one. Thanks!
Offline
I was looking for a feature that close image instantly with right click and found this way.
- zoom in/out with mouse wheel to zoom the image
- right click to quit
# make scroll wheel (mousewheel up and down) zoom, instead of flipping images
zoom_in 4
zoom_out 5
# the quit action with button 3 of mouse that is (right click) >instant close<
# this feature kills right click menu aswell.
quit
toggle_menu
quit 3
Create a text file called "buttons" on your $HOME/.config/feh then paste those commands.
Edit: Because of the killing right click menu one may found useful this script that draw those useful info on the bottom-left of a photo:
Filename:Testfile.jpg
Resolution:3000x2000
Filesize:10M
#!/bin/bash
feh \
--start-at "$1" \
--quiet \
--fontpath ~/.local/share/fonts/ \
--font sarasa-term-hc-semibold/9 \
--fullscreen \
--auto-rotate \
--hide-pointer \
--info "printf '%%s\n' Filename:\ '%n' Resolution:\ %wx%h Filesize:\ '%S' | sed -e 's/[\t ]//g;/^$/d'" \
#--draw-exif
Note: Change your font directory, also remove "#" if you wish to extract other exif info from a photo.
Changes:
- Removed spaces
- Fixed file with brackets on a filename
Last edited by Nili (2020-11-29 14:41:15)
Offline