Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean themes by removing unused entries (will be picked from default.yaml) #168

Merged
merged 3 commits into from
Feb 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/themes-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ jobs:
run: |
for dir in res/themes/*/
do
# Keep only folder name
theme=`basename ${dir%*/}`

# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml

# Run system-monitor for 5 seconds
python3 main.py > output.log 2>&1 &
sleep 5
killall -9 python3

# Rename screen capture
cp screencap.png screenshot-$theme.png
if test -f "$dir/theme.yaml"; then
# Keep only folder name
theme=`basename ${dir%*/}`

# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml

# Run system-monitor for 5 seconds
python3 main.py > output.log 2>&1 &
sleep 5
killall -9 python3

# Rename screen capture
cp screencap.png screenshot-$theme.png
fi
done

- name: Archive screenshots
Expand Down
Loading