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
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
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
Peter F. Patel-Schneider
8c803b415e
ui: ignore smooth scroll settings by default
2023-02-03 09:34:27 -05:00
Peter F. Patel-Schneider
ff24947321
configuration: fix glitch when changing versions
2023-02-03 09:17:19 -05:00
Matt Broadway
351e2268cd
config: remove derived fields from config file when Solaar version changes
...
* renamed variables
* Restructured configuration loading and ignore config generated by other versions
This fixes an issue where newer solaar versions may have better support for a
device which are not utilised because it is reading a configuration file
generated by an earlier version before support was added.
* fixed formatting
* discard only absent and battery
* discard name property as well
* do not discard name
2023-01-03 17:06:04 -05:00
ejsc1
5656f90cdb
misc: update yapf version
...
* misc: update yapf version v2
* Update .pre-commit-config.yaml
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2022-11-26 22:37:32 -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
130aa20bb1
solaar: handle exceptions processing configuration file
2022-10-11 12:53:46 -04:00
Peter F. Patel-Schneider
be81013704
solaar: fix bad entries in divert-keys when found
2022-10-06 22:00:38 -04:00
Peter F. Patel-Schneider
193e280e87
solaar: correctly convert old-style diversions to new style and remove old ones
2022-10-06 22:00:38 -04:00
Peter F. Patel-Schneider
a97070e60e
configure: remove debugging print statement
2022-09-30 01:28:12 -04:00
Peter F. Patel-Schneider
333a5083c1
solaar: use device name if device modelId is zeroes
2022-09-27 16:46:02 -04:00
Peter F. Patel-Schneider
ddd3ef72d3
settings: convert old-style mouse gestures and dpi sliding settings to new style
2022-07-25 16:26:21 -04:00
Peter F. Patel-Schneider
e51b98e1fe
configuration: defer configuration file writes for up to 5 seconds
2022-07-17 09:41:41 -04:00
Peter F. Patel-Schneider
afa91b57c8
config: fix message generation when device is offline
2022-04-29 14:22:38 -04:00
Peter F. Patel-Schneider
0c4e4fcf7f
solaar: only create configuration entries for off-line devices if they have a serial number
2022-04-26 09:03:20 -04:00
Peter F. Patel-Schneider
8ac8fe6401
solaar: handle devices with all-zero modelId
2022-04-10 16:35:08 -04:00
Peter F. Patel-Schneider
37bc1d7bd0
solaar: better formatting and cleanup of config.yaml
2022-04-10 16:35:08 -04:00
Peter F. Patel-Schneider
d90ee945ab
device: use int instead of str for setting keys
2022-04-10 16:35:08 -04:00
Peter F. Patel-Schneider
e5b11ca2f9
solaar: use list for configurations and write in yaml
2022-04-10 16:35:08 -04:00
Hugo Osvaldo Barrera
89d7490bf1
Remove redundant value
...
Opening read-only is the default.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
6c4e0333d4
Drop legacy Python 2 `super()` syntax
...
This is a no-op on Python 3.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
3969472dd3
settings: dpi sliding looks for suitable key
2021-04-18 07:36:29 -04:00
Peter F. Patel-Schneider
5d885f76e7
settings: show potential triggering keys for mouse gesture setting
2021-04-17 10:32:24 -04:00
Peter F. Patel-Schneider
1bd68177ab
configure: keep track of serial numbers in configuration file
2021-03-30 08:36:37 -04:00
Peter F. Patel-Schneider
646151ae61
receiver: reduce unnecessary writes of config file
2020-11-21 12:34:13 -05:00
Peter F. Patel-Schneider
93b5a0008b
ui: add lock icon to control whether setting can be changed
2020-10-25 14:13:58 -04:00
Peter F. Patel-Schneider
815c9755b5
receiver: handle bluetooth-connected devices
2020-09-29 11:26:34 -04:00
Peter F. Patel-Schneider
b1d4b2f3cd
receiver: add model and node ID and use in configurations
2020-09-23 18:03:47 -04: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
56762b5494
device: move persister from Setting to _DeviceDescriptor to get around problem with settings discovered after startup
2020-01-21 03:23:25 +00:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
0e6d088372
fixed some awkward path joining stuff
2013-07-11 22:46:29 +02:00
Daniel Pavel
39534d11dd
make sure all debug and info loggings are if-guarded
2013-07-07 17:18:42 +02:00
Daniel Pavel
ca2f5f927c
configuration: save on every change ( fixes #80 )
2013-07-07 16:06:27 +02:00
Daniel Pavel
20aa797e96
configuration: use wpid in device key
2013-07-01 18:53:10 +02:00
Daniel Pavel
8d5718178f
load the configuration when the device is detected
...
and apply it every time the device comes online
2013-06-29 20:35:02 +02:00
Daniel Pavel
f43e298ac7
clean-up configuration on load and save
2013-06-26 16:05:14 +02:00
Daniel Pavel
92f7e761ee
don't save the configuration if it hasn't been loaded first
2013-06-20 14:27:18 +02:00
Daniel Pavel
57c759773a
attach configuration to device settings objects
2013-06-17 11:00:53 +02:00
Daniel Pavel
04ea8293a8
persist and restore device settings
2013-06-16 17:41:03 +02:00
Daniel Pavel
10e736386b
user module __name__ when initializing logger
2013-06-07 14:28:13 +02:00
Daniel Pavel
162228aff3
started configuration persistence implementation
2013-06-03 22:01:16 +02:00