swayimg as default image viewer

This commit is contained in:
2025-08-16 03:16:22 +03:00
parent 8394f6666c
commit b8a6460dc0
2 changed files with 10 additions and 1 deletions

View File

@@ -81,10 +81,18 @@ echo "Setting thunar as default file manager..."
xdg-mime default thunar.desktop inode/directory application/x-gnome-saved-search
echo "✓ thunar set as default file manager"
# === SET SWAYIMG AS DEFAULT IMAGE VIEWER ===
echo ""
echo "Setting swayimg as default image viewer..."
xdg-mime default swayimg.desktop image/jpeg image/jpg image/png image/gif image/webp image/bmp image/tiff image/svg+xml
echo "✓ swayimg set as default image viewer"
# === SET WALLPAPER ===
echo ""
echo "Setting wallpaper..."
WALLPAPER_PATH="$SCRIPT_DIR/home_dotfiles/wallpapers/chris-czermak-PamFFHL6fVY-unsplash.jpg"
#WALLPAPER_NAME="chris-czermak-PamFFHL6fVY-unsplash.jpg"
WALLPAPER_NAME="lucas-gallone-2dClJIAR404-unsplash.jpg"
WALLPAPER_PATH="$SCRIPT_DIR/home_dotfiles/wallpapers/$WALLPAPER_NAME"
cp $WALLPAPER_PATH ~/.config/sway/wallpaper.jpg
echo "✓ Wallpaper installed to ~/.config/sway/wallpaper.jpg"
@@ -105,6 +113,7 @@ echo "- ~/.config/swayimg/swayimgrc (image viewer config)"
echo "- ~/.config/sway/i3status-rust.toml (status bar config)"
echo "- ~/.config/sway/weather-sway.sh (weather script)"
echo "- thunar set as default file manager"
echo "- swayimg set as default image viewer"
if [ -f ~/.config/sway/volume-notify-sway.sh ]; then
echo "- ~/.config/sway/volume-notify-sway.sh (volume notifications)"
fi