Checks for required keys, that the SVG files actually exist and that
we don't have duplicate device matches.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
If we start not doing any commits for a year, then we can change this.
Meanwhile, this will do.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
I sincerely doubt anyone is looking at this, and it currently needs manual
updating too. Let's just drop it, it's all in the git log anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Jente has indicated that he doesn't find the time to keep maintaining piper.
Let's remove him from the maintainer list, primarily to save him some
misguided emails.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libratbag will stop providing the SVGs, so let's load them from ourselves. To
do so we rely on the new DBus property "UsbId" and a lookup table
(svg-lookup.ini).
That file was generated with:
for file in `grep -l "Svg=" *.device`; do
grep -h -E "Name|Match|Svg" $file | sed -e "s/Name=\(.*\)/\n[\1]/g" >> outfile.ini;
done
The SVGs are added to our gresource bundle and loaded from there. A helper
function takes care of this.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Note that the SVGs are MIT-licensed as of this commit. Future SVGs will be
GPL3 as users add them to piper.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
The Resync signal is emitted in a number of scenarios, so informing the
user that a commit went wrong might not be the actual problem. Hence, we
generalize the notification for all kinds of errors.
This hasn't been implemented in over a year, let's hide it from sight. Maybe
that spurns someone on to actually implement it.
It's an improvement to the GUI either way because the message printed to stdout
wouldn't be seen by most users starting the Piper through e.g. gnome shell. So
it just looks like the button is broken.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
From git shortlog, with the emails removed because I'm pretty sure just
because you sent a patch once to piper doesn't mean everyone needs to know
your email address.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Can be tested by installing the .xml into /usr/share/metainfo/, then running
gnome-software --prefer-local (after killing any running g-s instance). This
may take a while to refresh and if you have a repo that contains piper it may
still be preferred for some reason.
Piper is under "Utilities", if the search doesn't find it immediately, wait
for a while? Or start searching for "org.freedesktop.Piper".
Technically appdata requires 16:9 screenshots but it seems to work with the
ones we have online for the wiki already (they're a little bit too high for
16:9).
Fixes#236
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libratbag/libratbag#422 introduced effect duration in ms for LEDs as opposed to
effect rate in Hz, as was discussed in #175. This commit updates Piper's
UI to reflect these changes.
Fixes#175.
Ah, what a beautiful night sky...
The CSS background taken from the control-center scroll test page. Apparently
we can't use the SVG background and have to do this manually.
Fixes#45