diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8be26b6..383e65c 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -16,10 +16,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - sudo apt install -y libsystemd-dev - python3 -m pip install --upgrade pip - pip3 install -r requirements.txt - pip3 install pylint + python -m pip install --upgrade pip + pip install pylint - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') diff --git a/README.md b/README.md index 9d3db6c..9ac05c9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,13 @@ 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 @@ -16,13 +23,6 @@ Required i3/Sway config line: 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 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 ``` - -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. diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5d5cd85..0000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -i3ipc -xdg -systemd-python -PyYAML diff --git a/startup.py b/startup.py index ec92586..75205fe 100755 --- a/startup.py +++ b/startup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# pylint: disable=line-too-long """ A smart but also lazy login autostart manager for i3/Sway.