Commit Graph
100 Commits
Author SHA1 Message Date
Tasos Sahanidis 190ffeed7f Update README to point to libera.chat 2021-05-21 22:17:56 +03:00
Tasos Sahanidis 1e7f9cc6f9 Allow devices to be marked experimental 2021-05-09 20:30:37 +03:00
Tasos Sahanidis 85fc1c9c7f Only listen to endpoints in input_endpoints 2021-05-09 20:30:33 +03:00
Tasos Sahanidis e7091c1195 Enable VLA warnings in debug builds 2021-05-09 12:59:36 +03:00
Tasos Sahanidis f5a8cb6ef1 Add keymap search to daemon 2021-05-09 09:28:01 +03:00
Tasos Sahanidis 50ee67dde6 Revert release flag 2021-03-18 16:17:01 +02:00
Tasos Sahanidis b04239e639 Release v0.4.4 2021-03-18 15:46:46 +02:00
Tasos Sahanidis 57ae6fc9e1 Update copyright year 2021-03-18 14:22:35 +02:00
Tasos Sahanidis 33d389b46e Update translations 2021-03-18 13:52:25 +02:00
Tasos Sahanidis eea21d445b Check for duplicate devices before adding them 2021-03-17 11:55:06 +02:00
Tasos Sahanidis 1af58f684b Always reject duplicate devices
The daemon would only ignore them if it had failed to lock the mutex.
And even then, it would return success and then proceed to set it up.
2021-03-15 23:04:15 +02:00
Tasos Sahanidis 3110393a0b Fix deadlock on device error during init
This uncovered a few more threading issues which should be fixed.
2021-03-15 22:55:09 +02:00
Tasos Sahanidis 0b6ae85174 Fix shadow warning 2021-03-15 00:13:56 +02:00
Tasos Sahanidis 3b64d2b514 Fix macOS builds
This is most likely the final time
2021-03-15 00:08:49 +02:00
Tasos Sahanidis 512a60895e Fix dev detect progress staying open on error 2021-03-15 00:06:11 +02:00
Tasos Sahanidis 5fe1d65acc Add option to disable fair mutex queueing 2021-03-14 06:09:11 +02:00
Tasos Sahanidis 0e65dee697 Use polkit to elevate privileges in dev detect
More and more distros are locking down dmesg and other logs.
The progress bar is needed in the GUI because sometimes lsusb takes
a long time to finish due to devices being used by the daemon.
2021-03-13 02:12:16 +02:00
Tasos Sahanidis 127d15effc Update translation 2021-03-10 06:17:56 +02:00
Tasos Sahanidis 68f3122258 Fix timespec_add overflow 2021-03-07 19:25:18 +02:00
Tasos Sahanidis e8c60e7ab1 Merge remote-tracking branch 'aerusso/quick-press' 2021-03-05 13:18:24 +02:00
Tasos Sahanidis 8061005028 Fix inline function
If an inline function isn't static, the linker tries to find it
and fails.
2021-03-05 12:48:02 +02:00
Tasos Sahanidis 908dcfd2ca Fix endless loop on reset fail during resume 2021-02-16 04:51:20 +02:00
Tasos Sahanidis c6eb6573ab Don't save brightness if dimmed by timer 2021-02-14 08:32:39 +02:00
Tasos Sahanidis a00e57a9df Rework tray icon scroll 2021-02-03 04:44:58 +02:00
Tasos Sahanidis e48e6e6db4 Fix deadlock on device resume failure 2021-01-30 05:14:37 +02:00
Tasos Sahanidis 9e6d2d70ca Back up settings on upgrade 2021-01-30 05:12:34 +02:00
Tasos Sahanidis 7bf1e19861 Don't dim lights when devices are used outside X
Also fixes a bug where lights wouldn't be restored if a device
was plugged in while the system was idle.
2020-12-27 14:56:12 +02:00
Tasos Sahanidis 2d7436fea8 Fix macrotable alignment 2020-12-26 09:32:15 +02:00
Tasos Sahanidis 247f2bd973 Fix segfault when creating new profile 2020-12-25 16:25:14 +02:00
Tasos Sahanidis 9ba0263f26 Fix spelling mistakes in cmake
Closes issue #683
2020-12-21 22:27:19 +02:00
Tasos Sahanidis 7a86533ac7 Disable release flag 2020-12-18 06:43:08 +02:00
Tasos Sahanidis 43d86ce205 Release v0.4.3 2020-12-18 06:39:28 +02:00
Tasos Sahanidis b6012627b1 Update translations 2020-12-18 06:13:30 +02:00
Tasos Sahanidis c8d917df28 Remove unused variable 2020-12-18 04:11:32 +02:00
Tasos Sahanidis 58de191a8b Add config downgrade warning 2020-12-18 04:06:44 +02:00
Tasos Sahanidis 125ace80b0 Fix Qt 5.14 deprecations 2020-12-10 00:35:54 +02:00
Tasos Sahanidis 4bbde7ce51 Fix daemon warnings 2020-12-10 00:13:18 +02:00
Tasos Sahanidis 655083f0e2 Fix Qt 5.5 builds 2020-12-09 03:30:11 +02:00
Tasos Sahanidis fe8c9c73c4 Update greek translation 2020-12-09 02:43:13 +02:00
Tasos Sahanidis 1c140bb113 Update translation files 2020-12-09 01:45:11 +02:00
Tasos Sahanidis de7d646852 Merge branch 'xcb-profile-switch-v3' 2020-12-09 01:44:31 +02:00
Tasos Sahanidis 449f5cbe97 Squashed commit of the following:
commit 4dfe9ad09f9cae9b8ac3519bef5f770c48330ff7
Author: Tasos Sahanidis <[email protected]>
Date:   Wed Dec 9 01:35:24 2020 +0200

    Fix build errors without xcb

commit 4ac12f64fc28d5e7527a022722fd2e897210ffa1
Author: Tasos Sahanidis <[email protected]>
Date:   Tue Dec 8 23:55:34 2020 +0200

    Follow window title changes

commit 761213dbafdeaace4d34209334f5949e04efd4db
Author: Tasos Sahanidis <[email protected]>
Date:   Mon Dec 7 01:55:08 2020 +0200

    Enable drag and drop in eventmgr

commit 51976f702ab8779f16c24de1f834d3f0f43cb64c
Author: Tasos Sahanidis <[email protected]>
Date:   Mon Dec 7 01:46:57 2020 +0200

    Rewrite window info backend and redesign ui

commit e8c4843bede3a9ea2e1cc08946c7bbad89aed16a
Author: Tasos Sahanidis <[email protected]>
Date:   Fri Dec 4 20:28:22 2020 +0200

    Re-enable event mode switching on double click

commit d963b8f7d41b96e3be3a0e76a5ddaf9828a633d8
Author: Tasos Sahanidis <[email protected]>
Date:   Fri Dec 4 20:21:52 2020 +0200

    Add wayland warning to event manager

commit 8a87d8212f55007be5cbab0d99295ea8bcaaa8a0
Author: Tasos Sahanidis <[email protected]>
Date:   Fri Dec 4 19:19:47 2020 +0200

    Add floating eventmgr tableview

commit 935843e88fe3aa1048d5ba9db8c5951196afb9fe
Author: Tasos Sahanidis <[email protected]>
Date:   Wed Dec 2 19:46:02 2020 +0200

    Switch modes based on XCB focus
2020-12-09 01:42:09 +02:00
Tasos Sahanidis 608c0e190e Fix nightsword indentation in usb.c 2020-11-24 11:37:01 +02:00
Tasos Sahanidis 84e73e2f88 Silence unused result warning for SIGUSR2 handler 2020-11-24 07:17:17 +02:00
Tasos Sahanidis a8437ad0e2 Fix alignment warning in KStatusNotifierItem 2020-11-24 07:12:49 +02:00
Tasos Sahanidis c84d7decc7 Disable colour picker lockup warning 2020-11-21 23:08:20 +02:00
Tasos Sahanidis eef033f9dd Merge 'ckb-next-openaiken/nightsword-rgb' 2020-11-21 00:32:24 +02:00
Tasos Sahanidis d7ec4f55d1 Add nightsword to FW table 2020-11-21 00:31:39 +02:00
Tasos Sahanidis b9b258b4a4 Check for gpg SHA512 support 2020-11-20 21:24:46 +02:00
Tasos Sahanidis 60f5c3f092 Make QNetworkAccessManager non-static 2020-11-20 19:40:51 +02:00
Tasos Sahanidis d7bd30026a Finish up nightsword support 2020-11-20 03:56:27 +02:00
Tasos Sahanidis c2617d24a7 Run libpulse loop on the main thread
There were data races with the threaded loop and there was no real
reason to have the mute state libpulse loop on its own thread
2020-11-19 05:10:03 +02:00
Tasos Sahanidis 5c75afca10 Merge 'ckb-next-penguineer/source-mute-backend' 2020-11-16 21:12:14 +02:00
Tasos Sahanidis 542b4d894d Fix macrotablemodel clear() with len == 0 2020-11-16 04:58:18 +02:00
Tasos Sahanidis f15f5b027b Don't delete a malloc'd pointer in IdleTimer 2020-11-15 18:59:10 +02:00
Tasos Sahanidis 62e027bac4 Fix FW table and add signing script 2020-11-15 16:57:29 +02:00
Tasos Sahanidis 7480a2989b Rewrite the pipe animation's command parser
It can now handle cases where multiple commands have been sent while
waiting for the next frame to be requested.
2020-11-13 03:48:33 +02:00
Tasos Sahanidis aa6cf61037 Do not advertise macOS support 2020-11-13 00:46:19 +02:00
Tasos Sahanidis 85a863ca16 Merge branch 'macro-gui-improvements' 2020-10-26 03:23:14 +02:00
Tasos Sahanidis 1a697a6962 Update translations 2020-10-26 03:22:35 +02:00
Tasos Sahanidis cf05f05192 Rework macro code
GUI code has been completely rewritten and UI has been redesigned

Daemon no longer supports the global delay, and the command for it
is removed

Random delays are now supported for each key by specifying it as
min_max in the delay field

Various daemon issues regarding macros have been fixed, including
memory leaks
2020-10-26 03:20:29 +02:00
Tasos Sahanidis af369ce56f Add QuaZip 1.0 detection 2020-10-10 17:59:24 +03:00
Tasos Sahanidis 44686f686d Fix builds without mviz 2020-10-10 12:59:03 +03:00
Tasos Sahanidis e0d3cd5a7f Return if string is only spaces in strtrim 2020-10-07 23:13:36 +03:00
Tasos Sahanidis 877d884e52 Fix segfault with empty serial string 2020-10-07 23:09:35 +03:00
Tasos Sahanidis 65b9471ea7 Add reset command to daemon 2020-10-07 23:09:32 +03:00
Tasos Sahanidis b1ff8d6a27 Update FIRMWARE table with K55 fw 2020-10-07 20:57:44 +03:00
Tasos Sahanidis 7abbe536df Make more strings translatable 2020-09-20 20:48:38 +03:00
Tasos Sahanidis 524990e7ce Merge 'ckb-next-neeldug/jobs-env-var-quickinstall' 2020-09-20 17:22:09 +03:00
Tasos Sahanidis 2d515dca61 Fix ignoring multiple devs and leak 2020-09-18 02:08:07 +03:00
Tasos Sahanidis 08aaf7086e Add --ignore flag to daemon 2020-09-17 17:21:32 +03:00
Tasos Sahanidis 569a9f3af3 Fix more shadow warnings 2020-09-04 21:04:32 +03:00
Tasos Sahanidis b43b1cdcd9 Properly quit indicator led thread 2020-09-04 20:26:30 +03:00
Tasos Sahanidis c200b0d21d Fix devices not being initialised 2020-09-03 19:18:33 +03:00
Tasos Sahanidis cf468bc8d8 Properly compare pthread_t 2020-09-03 14:43:38 +03:00
Tasos Sahanidis c44bb1c5bd Fix Shadow warnings 2020-09-03 02:54:27 +03:00
Tasos Sahanidis e961dd02df Merge branch 'mouse-dpi-suspend-fix' 2020-08-30 21:34:46 +03:00
Tasos Sahanidis cca639f688 Restore mouse settings when resuming 2020-08-30 21:34:35 +03:00
Tasos Sahanidis 2362caa343 Add format string comment
Closes #549
2020-08-30 08:40:04 +03:00
Tasos Sahanidis dca340d1dd Automatically add newlines to logging macros 2020-08-30 03:13:14 +03:00
Tasos Sahanidis 47b368e246 Enable -Wshadow 2020-08-28 19:39:23 +03:00
Tasos Sahanidis ad3cf3e31e Fix string truncation warning for animations 2020-08-28 19:11:19 +03:00
Tasos Sahanidis c31adc6bb0 Add animations cmake target 2020-08-28 18:55:40 +03:00
Tasos Sahanidis e461889f5b Fix qrand() deprecation warning 2020-08-28 10:01:13 +03:00
Tasos Sahanidis 627ccd8402 Fix incompatible-pointer-types is not valid for C++ 2020-08-26 01:43:15 +03:00
Tasos Sahanidis b2214e952f Remove unneeded MainWindow pointer workaround 2020-08-26 01:24:49 +03:00
Tasos Sahanidis 80caa43438 Don't wait if expecting a URB from the input thread 2020-08-18 23:52:14 +03:00
Tasos Sahanidis 3c639f45cb Fix xenial builds 2020-08-16 15:57:10 +03:00
Tasos Sahanidis 71c87e2d7c Work around a KStatusNotifierWatcher implementation 2020-08-16 15:21:17 +03:00
Tasos Sahanidis 08082240e8 Fix single key press macro repeating
The thread would check if the key was still pressed down before the
user had a chance to release it.
2020-08-10 08:53:52 +03:00
Tasos Sahanidis 94967d872d Implement macro looping when key is held down
New macros are still queued if the key is pressed repeatedly
2020-08-10 08:03:55 +03:00
Tasos Sahanidis 54f356b3f9 Add a couple of specific Werrors
Specifically, Werror=incompatible-pointer-types protects from
accidentally calling pthread_mutex_lock() on a queued_mutex_t
and vice versa.
2020-08-10 07:57:39 +03:00
Tasos Sahanidis 2dbf7221c4 Merge profile import/export functions with internal ones
Additionally, a bug was found and the profile version was bumped up
to fix and work around it.
2020-08-08 15:42:17 +03:00
Tasos Sahanidis 3f7d658bc1 Restart ckb-next when sent SIGHUP 2020-08-07 07:21:07 +03:00
Tasos Sahanidis 205b66e420 Fix indicators having the wrong sized icons 2020-08-07 04:15:55 +03:00
Tasos Sahanidis cfcb04b3bb Enable Wcast-align=strict for compatible gcc 2020-08-06 14:45:25 +03:00
Tasos Sahanidis 1c3ca772a3 Move monochrome tray option to settings 2020-08-06 09:39:19 +03:00
Tasos Sahanidis 01fd9a24d1 Raise minimum Qt version to 5.5.1 (xenial)
It might still compile under earlier versions,
but 5.5.1 was released in 2015
2020-08-06 09:13:24 +03:00
Tasos Sahanidis ba063cedb7 Merge branch 'mutex-queueing' 2020-08-05 23:32:48 +03:00
Tasos Sahanidis 00e2598a7a Fix libpulse check 2020-08-05 15:50:08 +03:00