Code Monkey home page Code Monkey logo

sway-smart-workspaces's Introduction

Hello there ๐Ÿ‘‹

General Kenobi

Spotify

sway-smart-workspaces's People

Contributors

asger-weirsoee avatar jbutcher5 avatar torwag avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

torwag jbutcher5

sway-smart-workspaces's Issues

Name mixing

I tried to use your solution, but I face challenges already in the naming scheme... The readme refers to pi3-sway-workspace but the package is named sway-smart-workspace and that is also what I find as a binary.

Calling sway-smart-workspace -i 1 I get a

FileNotFoundError: [Errno 2] No such file or directory: '/home/torsten/.local/lib/python3.9/site-packages/sway_smart_workspace/templates/output'

It also seems the links in pip point to the wrong github repro.

The control template should not deal with movement

I believe as movement of windows is something independent of sway-smart-workspaces, it should not be in the config template. I for once, got error messages as I had those movements defined within the sway config as well.
I will submit a PR for it... #3
Don't worry I know you are busy and do not expect a quick reply, good luck with your CS exams.

Use full output names

Hi,
I tried to get your latest patch regarding #5 working, but failed to understand how it is supposed to work.
Would be great if you could give some more information about it.

How does merging of workspaces work if outputs are reduced?

Hi,
I can't get how workspaces are supposed to act if an output is removed.
My use case:
1 use two external screens via a dock and whenever I connect to the dock, both screens get activated and the internal screen gets switched off (as I place the closed laptop in a horizontal stand anyhow).
Now, if I remove the dock and open the laptop lit, I can see that workspaces are merged however, I have now twice the same naming.
E.g. [1] on output 1 and [1] on output 2 becomes [1] [1] on output 1.
I can only address one by keyboard bindings, and the other I need to use the mouse to activate it.

I am not sure if this is the way how it is supposed to work or if I configured something wrong.

For me, I would assume, reducing the number of outputs would move all windows of the now obsolete workspaces to the workspace of the same number (or name).

Sure enough, that might only work in one way (reducing the outputs) and not the other way (extending the outputs) as sway has no way to keep track of these movements.

Use full output names instead of the short names

Using two docking station, I noticed that the names of the output ports seems not always consistent and permanent. E.g. DP-1 becomes DP-4 on the next reconnect.
That messes with the settings.
Would it be possible to use the full name, which sway usually also allows for its own output configs.
e.g. "Dell Inc. DELL U2414H 9TG463AP4L2L" instead of DP-4
That would be unique among different workplaces and the config would work more reliable.

Use official pypa/gh-action-pypi-publish worflow to publish package

Currently we are just uploading the package with a shell command, it would be best for future maintenance to use the official https://github.com/pypa/gh-action-pypi-publish.

- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository pypi dist/*

If we were to remove this code and replace it with pypa/gh-action-pypi-publish we would no longer need to install twine. This shortens the upload time as twine will not need to be installed.

Example usage of pypa/gh-action-pypi-publish would look like

- name: Publish a Python distribution to PyPI
  uses: pypa/gh-action-pypi-publish@release/v1
  with:
    user: __token__
    password: ${{ secrets.PYPI_API_TOKEN }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.