Compare commits

...

7 commits

Author SHA1 Message Date
66b2de5b3c
readme: rearrange 2023-10-15 00:12:28 -05:00
310fcaba6a
Merge pull request #2 from joshlay/add_reqs
add requirements for linting
2023-10-14 23:05:45 -05:00
6e6089c2df
pylint: ignore line-too-long 2023-10-14 23:04:24 -05:00
1560ba722c
requirement: try sudo apt 2023-10-14 23:01:09 -05:00
74b585b046
requirement: fix libsystemd-dev placement 2023-10-14 22:59:26 -05:00
1e431b77a5
requirement: libsystemd-dev 2023-10-14 22:58:35 -05:00
0420088fbf
add requirements for linting 2023-10-14 22:49:55 -05:00
4 changed files with 18 additions and 11 deletions

View file

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.8", "3.9", "3.10", "3.11"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
@ -16,8 +16,10 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip sudo apt install -y libsystemd-dev
pip install pylint python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install pylint
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: | run: |
pylint $(git ls-files '*.py') pylint $(git ls-files '*.py')

View file

@ -9,13 +9,6 @@ Required i3/Sway config line:
exec path/to/startup.py exec path/to/startup.py
``` ```
Work days may be temporarily disabled by creating and removing
`~/.vacation` when appropriate.
The config may be chosen with `-c path/to/autostart.yml`.
The default is `XDG_CONFIG_HOME/autostart-i3ipc.yml` _(typically in ~/.config)_
## Config sample ## Config sample
```yaml ```yaml
@ -23,6 +16,13 @@ The default is `XDG_CONFIG_HOME/autostart-i3ipc.yml` _(typically in ~/.config)_
autostarts: autostarts:
pre: [] # blocking tasks that run every day, before any other section. intended for backups/updates pre: [] # blocking tasks that run every day, before any other section. intended for backups/updates
common: [] # non-blocking tasks that run every day common: [] # non-blocking tasks that run every day
weekend: [] # blocking tasks for weekends, after 'pre' but before 'common' weekend: [] # blocking tasks for Saturday/Sunday, after 'pre' but before 'common'
work: [] # non-blocking tasks run if Monday through Friday between 8AM - 4PM work: [] # non-blocking tasks run if Monday through Friday between 8AM - 4PM
``` ```
The config may be chosen with `-c path/to/autostart.yml`.
The default is `XDG_CONFIG_HOME/autostart-i3ipc.yml` _(typically in ~/.config)_
Work day autostarts may be temporarily disabled by creating `~/.vacation`.
When desired again, remove the file.

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
i3ipc
xdg
systemd-python
PyYAML

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# pylint: disable=line-too-long
""" """
A smart but also lazy login autostart manager for i3/Sway. A smart but also lazy login autostart manager for i3/Sway.