This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copy directories while preserving metadata::annotation | |
# (C) 2019 gm10 | |
# | |
if [[ -z $1 || -z $2 ]]; then | |
echo "Usage: $(basename $0) <source-directory> <target-directory>" | |
exit | |
fi | |
if [[ ! -d $1 ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
Recursively adds all new images in a given path to ~/.config/mate/backgrounds.xml | |
""" | |
import os, sys | |
from pathlib import Path | |
import mimetypes | |
if not len(sys.argv) == 2 or not os.path.exists(sys.argv[1]): |