1

Experiment with re-org-ing scripts

This commit is contained in:
Evan Pratten 2024-05-13 14:09:30 -04:00
parent ee064059dd
commit 15e87e332f
11 changed files with 12 additions and 5 deletions

View File

@ -129,9 +129,6 @@ if [ -d ~/.var/app/org.prismlauncher.PrismLauncher ]; then
flatpak override --user --filesystem=~/.config/minecraft org.prismlauncher.PrismLauncher
fi
# Memegen
ln -nsf $EWCONFIG_ROOT/configs/memegen ~/.config/memegen
# Tmux
ln -sf $EWCONFIG_ROOT/configs/tmux/.tmux.conf ~/.tmux.conf

5
mini_apps/README.md Normal file
View File

@ -0,0 +1,5 @@
# Mini Apps
This directory contains things that are too complex to be considered a "script", yet too personalized to be useful to anyone else.
I may occasionally promote things from here to actual public repos someday.

View File

@ -6,6 +6,9 @@ import requests
import feedparser
import json
import sqlite3
import subprocess
import smtplib
from datetime import datetime
from pathlib import Path
logger = logging.getLogger(__name__)

View File

@ -12,7 +12,7 @@ from enum import Enum
from datetime import datetime
logger = logging.getLogger(__name__)
CONFIG_DIR = Path("~/.config/memegen").expanduser()
CONFIG_DIR = Path(__file__).parent.parent / "data"
DEFAULT_OUTPUT_DIR = Path("~/Pictures/memes").expanduser()
@ -151,7 +151,9 @@ def main() -> int:
"--keep-case", help="Keep the case of the text", action="store_true"
)
ap.add_argument("--output", "-o", help="Output file path")
ap.add_argument("--no-show", help="Don't show the image after creation", action="store_true")
ap.add_argument(
"--no-show", help="Don't show the image after creation", action="store_true"
)
ap.add_argument(
"-v", "--verbose", help="Enable verbose logging", action="store_true"
)

View File

Before

Width:  |  Height:  |  Size: 414 KiB

After

Width:  |  Height:  |  Size: 414 KiB

View File

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 107 KiB

View File

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 166 KiB