Files
blomarchy/bin/blob-theme-current

13 lines
268 B
Bash
Executable File

#!/bin/bash
# blob:summary=Show current theme
# blob:examples=blob theme current
THEME_NAME_PATH="$HOME/.local/state/blob/current/theme.name"
if [[ -f $THEME_NAME_PATH ]]; then
sed -E 's/(^|-)([a-z])/\1\u\2/g; s/-/ /g' "$THEME_NAME_PATH"
else
echo "Unknown"
fi