4 Commits

Author SHA1 Message Date
generaldenmark
5489847475 Update 2020-11-22 18:54:19 +01:00
generaldenmark
87c1cbff73 Merge branch 'master' of github.com:GeneralDenmark/pi3-smart-workspace 2020-11-22 18:53:40 +01:00
generaldenmark
4a9f520433 Fixes problem if you have a number in your output name 2020-11-22 18:51:28 +01:00
Asger Geel Weirsøe
b68b481b7c Adds a greeter for first time PR's and first time Issues 2020-11-13 22:37:23 +01:00
3 changed files with 16 additions and 3 deletions

13
.github/workflows/greetings.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hey, thanks for contributing to pi3-smart-workspace by submitting an issue! :smile:\nIt is greatly appriciated even if you don''t know or want to submit a PR, this right here is contributing to making this pi3-smart-workspace a better tool, and thus, makes us all, live in a better world!'
pr-message: 'You, sir or mam, are awesome! Thanks for the PR! I''ll look into it as soon as I have time for it! Your help, thoughts and actions are greatly appriciated!\nThank you! -@generaldenmark'

View File

@@ -38,8 +38,8 @@ class WorkSpacer:
self.config = self.i3.get_config().__dict__['config'] self.config = self.i3.get_config().__dict__['config']
config_outputs = {} config_outputs = {}
for matchNo, match in enumerate( for matchNo, match in enumerate(
re.finditer(r'set (\$[a-zA-Z]+) (' + re.finditer(r'set (\$[a-zA-Z0-9]+) (' + names_for_outputs + ')',
names_for_outputs + ')', self.config, re.MULTILINE), start=1 self.config, re.MULTILINE), start=1
): ):
config_outputs[match.group(1)] = match.group(2) config_outputs[match.group(1)] = match.group(2)
self.print_if_debug('All outputs listed in the config, matched on available configs') self.print_if_debug('All outputs listed in the config, matched on available configs')

View File

@@ -4,7 +4,7 @@ with open('README.rst', 'r') as fh:
setup( setup(
name='pi3-smart-workspace', name='pi3-smart-workspace',
version='0.1.19', version='0.1.21',
packages=['pi3'], packages=['pi3'],
url='https://github.com/GeneralDenmark/PyOutputHandler', url='https://github.com/GeneralDenmark/PyOutputHandler',
license='Apache-2.0 License ', license='Apache-2.0 License ',