Skip to content

Commit

Permalink
Merge pull request #198 from nwg-piotr/thumbnails
Browse files Browse the repository at this point in the history
Fix for non-standard thumbnails
  • Loading branch information
nwg-piotr authored Sep 25, 2024
2 parents 05be4c9 + 35240b1 commit 6086ea5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azote/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def expand_img(image):
# border = (border_h, border_v, border_h, border_v)
# return ImageOps.expand(image, border=border)
# Let's add checkered background instead of the black one
background = Image.open('images/squares.jpg')
background = Image.open(os.path.join(dir_name, 'images/squares.jpg'))
background = background.resize(common.settings.thumb_size, Image.LANCZOS)
background.paste(image, (border_h, border_v))
return background
Expand Down
24 changes: 24 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

PROGRAM_NAME="azote"
MODULE_NAME="azote"
SITE_PACKAGES="$(python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")"
PATTERN="$SITE_PACKAGES/$MODULE_NAME*"

# Remove from site_packages
for path in $PATTERN; do
if [ -e "$path" ]; then
echo "Removing $path"
rm -r "$path"
fi
done

rm -f /usr/bin/azote

install -Dm 644 -t /usr/share/pixmaps "dist/$PROGRAM_NAME.svg"
install -Dm 644 -t "/usr/share/$PROGRAM_NAME" dist/indicator*.png
install -Dm 644 -t /usr/share/applications "dist/$PROGRAM_NAME.desktop"
install -Dm 644 -t "/usr/share/doc/$PROGRAM_NAME" README.md

python -m build --wheel --no-isolation
python -m installer dist/*.whl
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def read(f_name):

setup(
name='azote',
version='1.13.0',
version='1.13.1',
description='Wallpaper manager for sway and some other WMs',
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit 6086ea5

Please sign in to comment.