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
Daniel Pavel
d5374b9f51
optionally listen for upower suspend/resume events to stop/start all receiver listeners
2013-06-23 18:11:42 +02:00
Daniel Pavel
7102229937
properly handle ^C in console
2013-06-22 21:32:19 +02:00
Daniel Pavel
7e1a2a6e4f
more fixes for device unpairing
2013-06-19 17:21:28 +02:00
Daniel Pavel
cd44cc6396
new single-window UI
2013-06-19 15:28:13 +02:00
Daniel Pavel
03e20842fb
cleaned-up gtk ui initialization
2013-06-12 14:29:34 +02:00
Daniel Pavel
46544e1cbe
listen for udev events on the GLib main loop
2013-06-07 14:39:04 +02:00
Daniel Pavel
ffab6c0e12
move Gtk-specific idle_add() and main() into ui
2013-06-07 14:37:03 +02:00
Daniel Pavel
10e736386b
user module __name__ when initializing logger
2013-06-07 14:28:13 +02:00
Daniel Pavel
39a75a6792
AppIndicator: scrolling on the icon cycles through all devices
2013-06-06 10:25:35 +02:00
Daniel Pavel
cbdc0bd99b
very low battery level should trigger an attention event
2013-06-03 21:40:15 +02:00
Daniel Pavel
788fb145af
use an AppIndicator if available, instead of the status icon
2013-06-01 15:06:43 +02:00
Daniel Pavel
db53de2233
updated status_icon to support future appindicator implementation
2013-05-26 01:24:49 +03:00
Daniel Pavel
c3b73964d5
improved support for some Nano receivers
2013-05-22 20:41:11 +03:00
Daniel Pavel
1764633bc5
status icon menu items open the right device window
2013-05-17 19:55:07 +03:00
Daniel Pavel
5f46c820e6
re-work the status icon updating
2013-05-17 16:03:37 +03:00
Daniel Pavel
24ceb8801e
window popup fix for kwin
...
also, only try to position the window next to the status icon if it has never
been shown before
2013-05-07 05:59:29 +02:00
Daniel Pavel
8d5ca66db7
get rid of bad map() calls
2013-05-06 17:51:03 +02:00
Daniel Pavel
a4ec8ec05d
better error dialog on receiver permission error; fixes #17
...
The problem is caused by starting Solaar right after installing it; while udev
does have the new rule loaded, the /dev/hidraw* device nodes already exist
with the old permissions.
Rather than doing a "udevadm --reload-rules" (which could have unknown side-
effects on other devices), instruct the user to remove and re-insert the usb
receiver. The new /dev/hidraw* device nods will be created with the right
permissions.
2013-05-05 10:35:03 +02:00
Daniel Pavel
4cdd796a3d
comment-out some debugging prints
2013-05-04 19:50:50 +02:00
Daniel Pavel
4eeca12d6a
create and destroy windows on demand
...
based on receiver added/removed events generated by udev
2013-05-04 12:20:51 +02:00
Daniel Pavel
5e68094e87
split the about window into its own module
2013-05-04 12:01:28 +02:00
Daniel Pavel
49ecd252ed
always log exceptions, even without -v
2013-05-03 18:42:45 +02:00
Daniel Pavel
c829304e31
use only udev events to detect receiver devices
2013-05-01 15:47:23 +02:00
Daniel Pavel
e5a28ac64e
simplified window/icon code, reworked how device updates are signalled
2013-04-30 19:44:03 +02:00
Daniel Pavel
9c621d5816
always try to initialize systray icon and notifications
2013-04-28 15:44:20 +02:00
Daniel Pavel
a57f3be58d
renamed event alert levels to be more clear
2013-04-28 15:12:20 +02:00
Daniel Pavel
1a9be279c6
move the code for single-instance check into its own file
2013-04-28 14:06:41 +02:00
Daniel Pavel
9b7a920e0d
fix for systray visibility (gihub #14 )
2013-01-18 17:18:35 +02:00
Daniel Pavel
bb52c13f9a
only allow a single instance of solaar to run at a time
2013-01-07 21:34:47 +02:00
Daniel Pavel
60405abf58
dropped unnecessary #! in lib/ python files
2013-01-07 11:54:52 +02:00