Compare commits
No commits in common. "66b2de5b3c4e1ab93cf931696e29ec0f2a774da3" and "8711ee651bfe4e4c219ef6995961759182f5fe04" have entirely different histories.
66b2de5b3c
...
8711ee651b
4 changed files with 11 additions and 18 deletions
8
.github/workflows/pylint.yml
vendored
8
.github/workflows/pylint.yml
vendored
|
@ -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", "3.11"]
|
python-version: ["3.8", "3.9", "3.10"]
|
||||||
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,10 +16,8 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt install -y libsystemd-dev
|
python -m pip install --upgrade pip
|
||||||
python3 -m pip install --upgrade pip
|
pip install pylint
|
||||||
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')
|
||||||
|
|
16
README.md
16
README.md
|
@ -9,6 +9,13 @@ 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
|
||||||
|
@ -16,13 +23,6 @@ Required i3/Sway config line:
|
||||||
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 Saturday/Sunday, after 'pre' but before 'common'
|
weekend: [] # blocking tasks for weekends, 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.
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
i3ipc
|
|
||||||
xdg
|
|
||||||
systemd-python
|
|
||||||
PyYAML
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue