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
Peter F. Patel-Schneider
4afe8c893b
ui: add option to show the main window or run solaar without tray
2020-02-17 08:35:47 +00:00
Dmitriusan
bd26b9340d
scripts/debian: switch to python3
2020-02-06 19:06:47 +01:00
Peter F. Patel-Schneider
1bc189e2fe
ui: add --tray option to start without window visible
2020-01-22 22:22:14 +00:00
Markus Heiser
de79bf1b5c
gtk.main(): make source more readable + comment about cli & gui
2019-01-30 12:38:54 +01:00
Peter Wu
e1eee2e078
Fix "Gtk was imported without specifying a version first"
...
Fixes the following warnings:
sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
2016-03-14 11:33:05 +01:00
Peter Wu
024a71b618
solaar: add --hidraw option again
...
This options allows the devices list to be restricted which got removed
in:
commit 3b75b69970
Author: Daniel Pavel <daniel.pavel@gmail.com>
Date: Fri Aug 9 12:25:47 2013 +0200
merged solaar-cli functionality into main solaar binary
solaar-cli is still busted, but since it is deprecated, it's probably
fine.
2013-08-21 21:47:24 +02:00
Daniel Pavel
69febfcea5
don't rely on upower to check devices after wake-up ( #111 )
...
still use upower resume events to ping devices, just in case
the old behaviour is available with a command-line option
2013-08-12 15:22:34 +02:00
Daniel Pavel
3b75b69970
merged solaar-cli functionality into main solaar binary
2013-08-09 12:25:47 +02:00
Daniel Pavel
22656d5b82
use Gtk.Application properly
2013-08-08 21:49:35 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
85efe92d30
replaced appinstance with GtkApplication
2013-07-09 17:52:07 +02:00
Daniel Pavel
77d2ae5249
omit the date in logging, is not important and the lines are shorter
2013-07-06 14:20:12 +02:00