MattHag
83c380f85b
macOS: Remove udev rule warning
...
Warning about missing udev rules do not apply to macOS.
Related #2729
2025-01-01 11:55:10 -05:00
Peter F. Patel-Schneider
789d35450c
solaar: don't close temp file until after CLI call
2025-01-01 10:40:07 -05:00
MattHag
8a0fc13f23
Test arg parse
2025-01-01 10:14:10 -05:00
Jan Fader
dfafe15575
delete temp-file in case help-actions too
2025-01-01 10:04:44 -05:00
Jan Fader
e6c833f635
delete tmpfile on close for cli
2025-01-01 10:04:44 -05:00
MattHag
46366b2430
Fix warnings from automatic code inspections
...
Warnings found by automatic code inspection and partially tackled
- Drop distuitls inf favour of setuptools
- Replace deprecated pyudev.Device.from_device_number
- Remove unnecessary brackets
- Avoid access to private variables etc.
- Shadows built-in name
- Line length >120 characters
- Not a module level variable
- Simplify clause
and more
2024-10-11 07:42:38 -04:00
Peter F. Patel-Schneider
ae39ac46ba
docs: improve documentation for cli actions
2024-08-23 20:03:54 -04:00
MattHag
67829c5807
Clean up imports ( #2537 )
...
* Remove import as _ in solaar startup
Related #2273
* Remove import as _ in listener
Related #2273
* Remove import as _ in cli init
Related #2273
* Remove import as _ in gtk
Related #2273
* Remove import as _ in show
Related #2273
* Remove import as _ in tray
Related #2273
* Remove import as _ in profiles
Related #2273
* Remove import as _ in config
Related #2273
* Remove import as _ in config panel
Related #2273
* Remove import as _ in window
Related #2273
* Remove import as _ in pair
Related #2273
* Remove import as _ in pair window
Related #2273
* Remove import as _ in cli package
Related #2273
* Remove import as _ in ui package
Related #2273
* Remove commented out code
Related #2273
* Use constant for Logitech ID
2024-07-15 08:37:18 -04:00
MattHag
5a63e44d58
Remove empty comment lines
...
Remove hashtags solely used for structuring.
Related #2273
2024-06-02 09:54:21 -04:00
MattHag
244d0ee88a
solaar: clean up locale code
...
Usage example for German:
LC_ALL=de_DE.UTF-8 solaar
Related #2507
2024-06-01 12:09:55 -04:00
Peter F. Patel-Schneider
e667d41c7b
solaar: use bluez dbus signals to disconnect and connect bluetooth devices
2024-04-18 20:32:40 -04:00
Matthias Hagmann
5b09ace1f5
ruff: Apply single line import format
...
# Usage
pre-commit run --all-files
Related #2295
2024-03-13 15:41:21 -04:00
Matthias Hagmann
e92f1a8a0b
Automatically upgrade strings to f-string
...
Used flynt to convert strings to f-strings, where safely possible.
Usage:
flynt .
Related #2372
2024-03-13 11:02:50 -04:00
Swapnil Devesh
5ee1c6df30
ui: fix app name casing in UI
...
* Fix app name casing in UI
* Linter fixes
* Only use NAME variable
* FIx linter errors
2024-03-05 12:08:56 -05:00
Matthias Hagmann
7ef3059b69
clean up: Remove editor specific marks
...
Related #2273
2024-02-29 10:10:46 -05:00
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
Peter F. Patel-Schneider
6f633efac5
ui: implement setting_changed callback and pass in to new devices and receivers
2024-02-20 06:19:23 -05:00
Peter F. Patel-Schneider
d1c899d6da
solaar: improve imports and guard Gtk, etc imports with correct version
...
solaar: move imports to top of files
solaar: move more imports to top of files
solaar: guard Gtk, etc imports with correct version
2024-02-18 06:21:35 -05:00
Peter F. Patel-Schneider
17e6463950
ui: improve imports in ui
...
ui: move imports in about.py to top of file
ui: move imports to top of notify.py
ui: move imports to top of window.py
ui: reorder imports at beginning of __init__.py
ui: move imports to top of tray.py
ui: move common code out of __init__.py to common.py
ui: move imports to top of __init___.py
2024-02-18 06:21:35 -05:00
MattHag
87658fb189
logging: Simplify logger instantiation
...
* logging: Simplify logger instantiation
Relates #2254
* logging: Remove aliases
Relates #2254
* logging: Replace deprecated warn with warning
Related #2254
* logging: Fix mistake
Related #2257
2024-02-10 13:55:27 -05:00
markopy
29ff35d553
Partial support for macOS and Windows ( #1971 )
...
* Add support for macOS via hidapi
* Style fixes
* Ignore keyboard and mouse input devices
* Don't require pyudev on mac and windows
* Fix debug log format error
* More logging for failed hidpp checks
* Don't try to load hid_darwin_set_open_exclusive on windows
* Bring back button for rule editor since some rules will work
---------
Co-authored-by: markopy <(none)>
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2023-11-28 16:25:17 -05:00
Peter F. Patel-Schneider
bacc2c6c7a
ui: put version in initial INFO logging message
2023-04-05 11:55:53 -04:00
Peter F. Patel-Schneider
ee3f2652ba
ui: zero exit code for kill interrupts
2023-03-02 07:57:26 -05:00
Peter F. Patel-Schneider
beb9dfdab8
solaar: clean up gtk code
2022-12-05 16:42:56 -05:00
ejsc1
0c7a9dd0a7
misc: update isort to current version
...
* Update .pre-commit-config.yaml
* Update solaar
* Update udev.py
* Update __init__.py
* Update gtk.py
* Update i18n.py
* Update listener.py
* Update icons.py
* Update notify.py
* Update hidconsole
* Update gtk.py
* Update icons.py
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2022-11-26 13:58:46 -05:00
Peter F. Patel-Schneider
b5f6a509c9
cli: don't defer saves in cli and don't require gtk in cli
2022-10-30 12:09:30 -04:00
Peter F. Patel-Schneider
e3cc516cb3
ui: log informational messages and above to a temporary file
2022-08-22 19:32:57 -04:00
Peter F. Patel-Schneider
69b411fc27
ui: decrease amount of logging for each debug level
2022-01-13 18:23:12 -05:00
Peter F. Patel-Schneider
adae5a2e2b
ui: add option to specify use of explict tray icon files and their size
2021-11-29 17:54:31 -05:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
c2de1b59ef
ui: use logging for signalling unfound udev rule
2021-08-18 10:01:22 -04:00
Peter F. Patel-Schneider
ee4275f45c
gtk: add new possible locations for udev rule
2021-08-06 13:41:22 -04:00
Peter F. Patel-Schneider
3d65a77515
misc: better error message for missing gi package
2021-07-04 10:13:44 -04:00
Peter F. Patel-Schneider
4edbf51f17
ui: better message for missing udev file
2021-04-21 08:53:41 -04:00
Peter F. Patel-Schneider
69df28c155
docs: update docs - remembering settings, point to github docs
2021-02-21 14:02:48 -05:00
Peter F. Patel-Schneider
1c6f289d91
ui: add option to not use battery icons for tray icon
2021-01-04 09:53:46 -05:00
Peter F. Patel-Schneider
a2ac8b46c1
misc: check for udev rule file presence at startup
2020-07-25 21:25:16 -04:00
Peter F. Patel-Schneider
fe0ab16cc8
misc: dump threads on SIGINT
2020-07-09 12:51:38 -04:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Peter F. Patel-Schneider
f191d95990
misc: better reporting of errors
2020-06-17 09:53:16 -04:00
Peter F. Patel-Schneider
302720b0db
ui: add --battery-icons=symbolic option to prefer symbolic icons
2020-05-17 16:29:14 +01:00
Peter F. Patel-Schneider
624247d378
install: fix up errors when required packages not installed
2020-04-05 20:55:32 +01:00
Peter F. Patel-Schneider
ac6fa9643f
UI: change default for --window to show
2020-03-15 22:00:21 +00:00
Peter F. Patel-Schneider
f28053a09a
docs: improve documentation on required packages
2020-03-15 21:59:42 +00:00
Peter F. Patel-Schneider
23c0397764
listener: mark device as inactive after resume so that settings are correctly pushed
2020-02-22 08:46:56 -05:00