Commit Graph

554 Commits

Author SHA1 Message Date
LGTM Migrator
46f7be4e79 CI: add CodeQL workflow for GitHub code scanning
Replacing the LGTM analysis we have used until it was merged into
CodeQL.
2023-03-03 15:16:54 +03:00
Yaroslav Chvanov
b54c3b9ef4 leddialog: work-around title bar not being shown
It worked as-is with GtkTemplate, but does not with Gtk.Template.
2023-03-03 15:10:30 +03:00
Yaroslav Chvanov
635e57952f Remove now redundant calls to Template.init_template()
This was needed for gi_composites, but is not needed for Gtk.Template.
2023-03-03 15:10:20 +03:00
Yaroslav Chvanov
cbdbe35d58 Use Gtk's Template class 2023-03-03 15:10:04 +03:00
Yaroslav Chvanov
5aa78ab1ea resolutionspage: disable the report rate button box if unsupported 2023-03-03 14:56:15 +03:00
Yaroslav Chvanov
fc42588cf1 resolutionspage: disable report rate buttons instead of hiding them 2023-03-03 14:42:34 +03:00
Kyoken
a46c10d808 Add "advanced settings" page with debounce time and angle snapping 2023-03-03 14:35:41 +03:00
Kyoken
eb711bf0c3 data: add rog strix impact 2 image 2023-03-03 00:45:33 +03:00
NorwayFun
4475f7b2b4 po: add Georgian translation 2023-02-25 14:33:16 +03:00
José Almeida
28462f0bd1 data: add svg for Logitech G Pro (X) keyboard
Based on logitech-g513.svg
2023-02-14 16:58:15 +03:00
TCH
3fdc7a4ba8 data: add SVG for Logitech MX Master 3S 2023-02-14 16:51:45 +03:00
Julian Kandlhofer
5a3734a680 allow remapping of first two buttons
on non mouse devices the first two buttons can now be remapped.
uses the new DeviceType property exposed by ratbagd.

Signed-off-by: Julian Kandlhofer <julian.kandlhofer@gmail.com>
2023-02-14 16:44:38 +03:00
Yaroslav Chvanov
13378ea021 ratbagd.py: sync with libratbag
- Add device type API.
- Add firmware version API.
- Fix spelling mistakes.
2023-02-14 16:44:12 +03:00
mistepien
9bf4f25be5 data: add additional USB id for Logitech G102 (046d:c09d) 2023-01-06 17:49:00 +03:00
Stephan Lachnit
48279544f5 ResolutionRow Redesign
Adds buttons to set a resolution active or disabled.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2022-12-26 22:42:25 +03:00
Yaroslav Chvanov
63020c7204 ratbagd.py: sync with libratbag 2022-12-26 22:36:39 +03:00
Yaroslav Chvanov
c13ab4dfe3 ratbagd.py: sync with libratbag
- fix changes to IsActive potentially not being notified about

- make the profile dirty after changing report rate

This fixes the "Apply" button being disabled after changing report rate
in Piper (once this file gets synchronized there).
2022-12-26 22:30:16 +03:00
Yaroslav Chvanov
568a8ee158 ratbagd.py: sync with libratbag 2022-12-23 04:10:44 +03:00
Kyoken
f221316c24 show current key binding in list 2022-12-22 00:55:50 +03:00
Kyoken
cb6db2ffc5 show key name instead of code in button page 2022-12-22 00:55:50 +03:00
Kyoken
04896cf4c2 implement key bindings feature 2022-12-22 00:55:50 +03:00
Yaroslav Chvanov
8861ab339f build: bump ratbagd DBus API version 2022-12-22 00:42:22 +03:00
Peter Hutterer
1aaa4e1acb CI: bump some actions to newer versions
Node 12 is deprecated so let's bump the actions to newer versions that use Node 16. See
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-12-07 09:23:08 +10:00
Peter Hutterer
91f4d7c377 ci: bump the test image to Ubuntu 22.04
Might as well use something recent
2022-11-25 10:10:16 +10:00
Yaroslav Chvanov
674bc39e6d data: sort SVGs by device names 2022-11-14 13:06:16 +03:00
Kyoken
80e8bcebf3 data: fix name to fit libratbag 2022-11-14 13:03:05 +03:00
Kyoken
97efce8783 data: asus svgs symlinks 2022-11-14 13:03:05 +03:00
Kyoken
f0eb439935 data: add asus common svgs 2022-11-14 13:02:28 +03:00
Kyoken
0a160e5ba5 resolutionspage: show available rates only 2022-10-13 17:34:58 +03:00
Andreas Grosse
104ee170c1 Add Support for G502 X over USB 2022-10-10 21:21:38 +02:00
PeakKS
70e5df7d16 Add support for G502-X Lightspeed 2022-10-07 01:09:35 +03:00
Tobias Kortkamp
603d687263 Fix tests for out-of-source builds
When the build directory is not _under_ the source directory then
flake8 cannot find the local config file and it will try to check
piper.in which fails per 1ed66262b7

To fix this I propose to

1. pass the config to flake8 explicitly
2. remove piper.in from the args list since it is excluded in the
   flake8 config anyway
3. check the generated $build/piper.devel and $build/piper too per
   1ed66262b7
4. merge the --ignore in meson.build with the config

Steps to reproduce:

```
$ meson ../build
$ ninja -C../build test
...
[17/18] Running all tests.
1/5 piper:all / files-in-git             SKIP            0.01s   exit status 77
2/5 piper / validate appdata file        OK              0.04s
3/5 piper / svg-lookup-check             OK              0.10s
4/5 piper / check-svg                    OK              0.18s
5/5 piper / flake8                       FAIL            1.00s   exit status 1
>>> MALLOC_PERTURB_=32 /gnu/store/yhhvrj6bns3ws85d338ah3bsc8jv4x64-profile/bin/flake8 --ignore=E501,W504 /home/tobias/ghq/github.com/libratbag/piper/piper /home/tobias/ghq/github.com/libratbag/piper/piper.in
――――――――――――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――――――――――――
/home/tobias/ghq/github.com/libratbag/piper/piper.in:11:19: E999 SyntaxError: invalid syntax
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
```
2022-08-19 11:25:42 +02:00
Vitaly Zaitsev
dcec480417 Switched to gnome.post_install() to run post-installation actions. (#759)
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-08-15 17:13:33 +10:00
Maximiliano
4ed4f907e9 Replace Quit buttons with normal close buttons (#770)
Using a Quit button is an anti-pattern and might be confusing for users
expecting the quit button to be on the same position as of other apps'.

Note that the button is on the left and by default the close button is
on the right.
2022-08-15 15:34:52 +10:00
Štěpán Šebestian
982e24de30 po: add Czech translation (#761) 2022-08-15 15:29:11 +10:00
Peter Hutterer
7f9834cc59 meson: piper 0.7 0.7 2022-06-22 08:42:31 +10:00
christiangnrd
9055d33ac9 Better looking buttons for MX Anywhere 2 (#754) 2022-06-22 08:14:00 +10:00
christiangnrd
10c5653f2d Add correct svg for MX Anywhere 3 (#753) 2022-06-22 08:02:36 +10:00
Lucas Mindêllo de Andrade
b67af5e97e fix(g903): added second led to SVG 2022-06-06 15:45:58 +10:00
Yaroslav Chvanov
40a38b3c68 window: enable window icon 2022-06-06 15:45:04 +10:00
Yaroslav Chvanov
b192c200b9 meson: use project-local paths of build and source directories
Fixes a deprecation warning.
2022-02-14 10:57:44 +10:00
Yaroslav Chvanov
0e916390dd meson: require meson 0.51.0
Following libratbag in libratbag/libratbag#1245.

Fixes a deprecation warning.
2022-02-14 10:57:44 +10:00
Peter Hutterer
a5c441970c README: drop the CircleCI build status
The big FAILED looks bad, especially since we're no longer using
Circle CI.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-02-11 14:26:34 +10:00
Peter Hutterer
348f29587c Replace CircleCI with github actions
CircleCI is mostly unviable these days because it severely limits the
number of runs we can do. Since we don't do anything fancy anyway, let's
port to github actions, re-using some of the infrastructure libratbag
already has in place.

We use meson/ninja from pip because building with the latest gives us
some heads-up about upcoming changes. And we're now only building on
ubuntu because that's what's easiest in github. Oh well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-01-24 12:41:20 +10:00
Stephan Lachnit
f8bcd1fe71 meson: add test for appdata file
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2022-01-21 08:55:50 +10:00
doomsdayrs
a641c0a85e Add SN TECH T3 Gaming Mouse 2022-01-18 15:02:52 +10:00
doomsdayrs
269c417031 Updated logitech-mx-vertical.svg
The old SVG was hastily made, and was a pain to work with.
This new SVG is organized, cleaned, and easier to look at.
2022-01-14 10:55:13 +10:00
erdincay
0e85173caa data: add Logitech MX Anywhere 3 with single configuration for USB/Bluetooth 2022-01-14 10:53:25 +10:00
Peter Hutterer
20c4559ecf meson.build: use globbing in the various scripts for SVGs
This removes the need of having to add every SVG manually to the
meson.build file.
2022-01-11 21:49:14 +10:00
Peter Hutterer
3474a08762 meson: move the various checks into tests/
This is so we can install the data files simpler, let's move anything
that's a test into a new tests/ directory so the rest only contains true
sources.
2022-01-11 21:49:14 +10:00