diff options
| author | Daniel <[email protected]> | 2024-12-22 14:02:09 -0500 |
|---|---|---|
| committer | Daniel <[email protected]> | 2024-12-22 14:02:09 -0500 |
| commit | eeded1608ad66769b099ad3f3193977c010f7aa4 (patch) | |
| tree | 048f8476ae0c50fcd12c172c5cf2efb84e750778 | |
| parent | 19c9b7947dcbe921de6463245e2bd701d76291d7 (diff) | |
view recent images
| -rw-r--r-- | shell/.bash_aliases | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/.bash_aliases b/shell/.bash_aliases index c7f590a..82d798b 100644 --- a/shell/.bash_aliases +++ b/shell/.bash_aliases @@ -9,7 +9,13 @@ alias ta="tmux attach" alias ts="tmux-sessionizer" alias rec="ffmpeg -f x11grab -s 1920x1080 -i :0.0+0+0 out.mp4" -alias image-date="find \"$1\/\" -type f -exec ls -t {} + | nsxiv -i -t" +function _recentimages() { + find "$1" -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" -o -iname "*.gif" -o -iname "*.bmp" \) -printf "%T@ %p\n" | + sort -nr | + cut -d" " -f2- | + nsxiv -t -; }; + +alias recentimages='_recentimages' alias checkmail="$HOME/.local/bin/scripts/checkmail" # gentoo related |
