Compare commits
7 commits
8711ee651b
...
66b2de5b3c
Author | SHA1 | Date | |
---|---|---|---|
66b2de5b3c | |||
310fcaba6a | |||
6e6089c2df | |||
1560ba722c | |||
74b585b046 | |||
1e431b77a5 | |||
0420088fbf |
4 changed files with 18 additions and 11 deletions
8
.github/workflows/pylint.yml
vendored
8
.github/workflows/pylint.yml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.8", "3.9", "3.10"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
@ -16,8 +16,10 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pylint
|
||||
sudo apt install -y libsystemd-dev
|
||||
python3 -m pip install --upgrade pip
|
||||
pip3 install -r requirements.txt
|
||||
pip3 install pylint
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
pylint $(git ls-files '*.py')
|
||||
|
|
16
README.md
16
README.md
|
@ -9,13 +9,6 @@ Required i3/Sway config line:
|
|||
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
|
||||
|
||||
```yaml
|
||||
|
@ -23,6 +16,13 @@ The default is `XDG_CONFIG_HOME/autostart-i3ipc.yml` _(typically in ~/.config)_
|
|||
autostarts:
|
||||
pre: [] # blocking tasks that run every day, before any other section. intended for backups/updates
|
||||
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
|
||||
```
|
||||
|
||||
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
4
requirements.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
i3ipc
|
||||
xdg
|
||||
systemd-python
|
||||
PyYAML
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
# pylint: disable=line-too-long
|
||||
"""
|
||||
A smart but also lazy login autostart manager for i3/Sway.
|
||||
|
||||
|
|
Loading…
Reference in a new issue