@@ -46,7 +46,7 @@ yay -S pycritty
4646Change your current config:
4747
4848``` bash
49- pycritty --font UbuntuMono --size 14 --opacity 0.95
49+ pycritty --font UbuntuMono --font- size 14 --opacity 0.95 --padding 3 3
5050```
5151
5252Save multiple configs and reuse them later:
@@ -58,10 +58,10 @@ pycritty load AnotherConfig
5858
5959Install themes and configs from URLs:
6060``` bash
61- pycritty install -t https://raw.githubusercontent.com/antoniosarosi/pycritty/master/config/themes/breeze.yaml
62- pycritty -t breeze
63- pycritty install -c -n SomeCoolConfig https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.config/alacritty/config.yaml
64- pycritty load SomeCoolConfig
61+ pycritty install --theme https://raw.githubusercontent.com/antoniosarosi/pycritty/master/config/themes/breeze.yaml
62+ pycritty --theme breeze # Apply downloaded theme
63+ pycritty install --config --name SomeCoolConfig https://raw.githubusercontent.com/antoniosarosi/dotfiles/master/.config/alacritty/config.yaml
64+ pycritty load SomeCoolConfig # Apply downloaded config
6565```
6666
6767Check help for all available options:
@@ -73,7 +73,7 @@ pycritty save -h
7373
7474## Fonts Config
7575
76- Fonts are configured in ``` ~/.config/alacritty/fonts.yaml ``` with this format:
76+ Fonts are configured at ``` ~/.config/alacritty/fonts.yaml ``` with this format:
7777``` yaml
7878fonts :
7979 Alias : Font Name
@@ -154,18 +154,17 @@ the CLI in a shell script or use ```pycritty``` as a python module:
154154
155155# Dummy script that changes the theme every 5 minutes
156156
157- from time import sleep
158- from pycritty.commands import Pycritty, ListResource
157+ import time
158+ import pycritty
159159
160160
161161def main():
162- ls = ListResource()
163- conf = Pycritty()
162+ config = pycritty.Config()
164163 while True:
165- for theme in ls .list_themes():
166- conf .change_theme(theme) # or conf .set(theme=theme)
167- conf .apply()
168- sleep(300)
164+ for theme in pycritty .list_themes():
165+ config .change_theme(theme) # or config .set(theme=theme)
166+ config .apply()
167+ time. sleep(300)
169168
170169
171170if __name__ == '__main__':
@@ -185,3 +184,30 @@ while :; do
185184 done
186185done
187186` ` `
187+
188+ # # Development
189+
190+ Clone the repository and run it as a module.
191+
192+ ` ` ` bash
193+ git clone git@github.com:antoniosarosi/pycritty
194+ cd pycritty
195+ python -m pycritty.main
196+ ` ` `
197+
198+ # # Publishing
199+
200+ # ## PyPi
201+
202+ ` ` ` bash
203+ # First make sure you have these packages installed
204+ pip install --user --upgrade setuptools wheel twine
205+ # Generate distribution files
206+ python setup.py sdist bdist_wheel
207+ # Test upload
208+ python -m twine upload --repository testpypi dist/*
209+ # Test download
210+ pip install -i https://test.pypi.org/simple/ --no-deps pycritty
211+ # Upload to PyPi
212+ python -m twine upload --repository pypi dist/*
213+ ` ` `
0 commit comments