feat: nnn image preview

This commit is contained in:
Klesh Wong 2022-05-19 12:24:03 +08:00
parent a3b1463f43
commit 52504e6879
3 changed files with 13 additions and 2 deletions

View File

@ -29,8 +29,9 @@ case "$PM" in
download_nnn_plugins download_nnn_plugins
;; ;;
pacman) pacman)
sudo pacman -S --noconfirm --needed nnn sudo pacman -S --noconfirm --needed nnn ueberzug
cp -r /usr/share/nnn/plugins/. "$NNN_CONFIG_DIR" mkdir -p "$NNN_CONFIG_DIR/plugins"
cp -r /usr/share/nnn/plugins/* "$NNN_CONFIG_DIR/plugins"
;; ;;
esac esac

View File

@ -57,6 +57,7 @@ case "$UNAMEA" in
thunar gvfs-smb gvfs-mtp thunar-archive-plugin file-roller tumbler \ thunar gvfs-smb gvfs-mtp thunar-archive-plugin file-roller tumbler \
flameshot \ flameshot \
copyq \ copyq \
sxiv \
alacritty alacritty
# ntp # ntp
sudo pacman -S --noconfirm --needed \ sudo pacman -S --noconfirm --needed \
@ -93,6 +94,7 @@ esac
# configuration # configuration
lnsf "$DIR/sxiv/sxiv.desktop" ~/.local/share/applications/sxiv.desktop
lnsf "$DIR/autorandr/postswitch" "$XDG_CONFIG_HOME/autorandr/postswitch" lnsf "$DIR/autorandr/postswitch" "$XDG_CONFIG_HOME/autorandr/postswitch"
lnsf "$DIR/thunar/uca.xml" "$XDG_CONFIG_HOME/Thunar/uca.xml" lnsf "$DIR/thunar/uca.xml" "$XDG_CONFIG_HOME/Thunar/uca.xml"
lnsf "$DIR/alacritty/alacritty.yml" "$XDG_CONFIG_HOME/alacritty/alacritty.yml" lnsf "$DIR/alacritty/alacritty.yml" "$XDG_CONFIG_HOME/alacritty/alacritty.yml"

8
gui/sxiv/sxiv.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=sxiv
GenericName=Image Viewer
Exec=sxiv %F
MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-tga;image/x-xpixmap;
NoDisplay=true
Icon=sxiv