Commit graph

959 commits

Author SHA1 Message Date
Felix Kratz
9d9529cb79 more robust sleep wake 2023-10-30 21:40:08 +01:00
Felix Kratz
fe2d18970a make sticky property a nop on sonoma 2023-10-30 21:38:07 +01:00
Felix Kratz
fcdf0a3e96 trigger space_change event when a space is created/destroyed 2023-10-30 13:06:25 +01:00
Felix Kratz
2ba5a6ca92 add domain scroll_texts to bar items in order to scroll truncated texts (#429) 2023-10-30 00:48:06 +01:00
Felix Kratz
32f05a93a9 emit media_change event on startup to popuplate items 2023-10-29 14:37:32 +01:00
Felix Kratz
e39c1c0e13 fix some quirks with images (#428) 2023-10-28 14:16:27 +02:00
Felix Kratz
ec5d88d9f5 allow negative image paddings and y_offsets 2023-10-27 18:53:03 +02:00
Felix Kratz
f60b9d6d5c add more options to the image domain (#428) 2023-10-27 17:01:51 +02:00
Felix Kratz
28e8553dba properly scale app icon images (such that they have equal effective size on all displays) 2023-10-25 16:55:47 +02:00
Felix Kratz
39193fc06d push version to 2.18.0 2023-10-25 12:50:32 +02:00
Felix Kratz
dc59f2e36a add max_chars property to all texts (#414) 2023-10-15 15:51:30 +02:00
Andreas Näsman
934c089595 Update volume icons 2023-10-15 10:59:06 +02:00
Felix Kratz
7305fbc268 rebuild all bars on wake (#422) 2023-10-13 22:58:46 +02:00
Felix Kratz
5a63ad8e7a wake the bar if a new display is added (#422) 2023-10-13 20:01:58 +02:00
Felix Kratz
0acca7caae retain app icon image after loading it (#423) 2023-10-13 17:40:12 +02:00
Felix Kratz
1433dd2837 partially fix wifi_change event on Sonoma 2023-10-12 21:56:49 +02:00
Felix Kratz
fb50f4e1f0 disable windows from being managed on Sonoma 2023-10-12 13:38:53 +02:00
Felix Kratz
1563d5b40b update for new default config 2023-10-11 19:17:19 +02:00
Felix Kratz
f36eb7d672 update default config 2023-10-11 19:15:18 +02:00
Felix Kratz
43d5246e01 push version to 2.17.0 2023-10-11 19:02:27 +02:00
Felix Kratz
bb033dba94 chdir process into config dir 2023-10-11 18:58:16 +02:00
Felix Kratz
ddb59412a4 prevent the bar frame from being changed by a draw call 2023-10-10 10:13:41 +02:00
Felix Kratz
25a71a0704 cleanup 2023-10-09 12:03:24 +02:00
Felix Kratz
7e96f4e6ec Revert "Revert "reintroduce transactional window level on Sonoma""
This reverts commit 40152c054c.
2023-10-09 11:46:46 +02:00
Felix Kratz
40152c054c Revert "reintroduce transactional window level on Sonoma"
This reverts commit ef9018bd3f.
2023-10-09 11:39:32 +02:00
Felix Kratz
cda89f3ce2 associated_display and associated_space properties are now equivalent to display and space respectively
the documentation will remove associated_space and associated_display properties in the further in favour of the new properties.
2023-10-08 13:57:25 +02:00
Felix Kratz
ef9018bd3f reintroduce transactional window level on Sonoma 2023-10-06 19:49:08 +02:00
Felix Kratz
8bc95526d8 reintroduce transactional window ordering on Sonoma (#336) 2023-10-06 19:29:36 +02:00
Felix Kratz
0d4b45c710 remove an animation only after it has displayed its last frame (#404) 2023-10-03 17:32:21 +02:00
Felix Kratz
632c44654c cancel previous animation of color property before creating the new one (#404) 2023-10-03 17:31:35 +02:00
Felix Kratz
1a3708c5ad hotfix for mouse problems and select distributed notifications 2023-09-30 13:59:11 +02:00
Felix Kratz
0e4ccc175c Revert "entirely remove Carbon, get all events directly through the event mach port"
This reverts commit 207c4d7b58.

..

..
2023-09-30 13:56:32 +02:00
Felix Kratz
893ed8c3bb hotfix for #391 and float animations 2023-09-04 08:53:50 +02:00
Felix Kratz
e75afe9474 only try locking the mutex for an animation frame
the animation_frame_callback function shall never be blocked by waiting for the mutex to unlock.
This is because the CVDiplayLink* funtions will try to acquire a mutex that is locked during the
call to animation_frame_callback. This can lead to a dead lock scenario when one thread handles an
event, the animation thread waits for this event to be handled but the handling of said event requires
to unlock the CVDisplayLink mutex...
2023-09-01 10:35:08 +02:00
Felix Kratz
baeca7d182 try to fix rare freeze (#391) 2023-08-31 17:23:21 +02:00
Felix Kratz
b5e87a352a perform required bit hacks to get float animations working properly 2023-08-30 18:33:31 +02:00
Felix Kratz
93f567f775 mention related projects such as SbarLua and sketchybar-app-font 2023-08-28 20:15:21 +02:00
Felix Kratz
d6a1a20009 hotfix for deadlock in rare cases 2023-08-27 01:41:14 +02:00
Felix Kratz
1f670b052c revert threaded receiver due to large qlimit
This reverts commit c5f9e7a6c4.
2023-08-27 01:37:28 +02:00
Felix Kratz
07323b8141 use large qlimit for mach port 2023-08-27 01:34:54 +02:00
Felix Kratz
c5f9e7a6c4 receiver thread 2023-08-27 01:03:53 +02:00
Felix Kratz
e48552f724 hotfix for compiling on Monterey and below 2023-08-25 23:41:53 +02:00
Felix Kratz
dba2cd2670 improve final animation frame precision 2023-08-23 15:02:21 +02:00
Felix Kratz
e5e24cb6b6 bump version to 2.16.0 (some days testing until release) 2023-08-22 09:58:57 +02:00
Felix Kratz
9cf86148b6 add missing color subdomains to alias and graph 2023-08-22 09:57:44 +02:00
Felix Kratz
672fe10227 replace wifi icon 2023-08-22 09:18:01 +02:00
Felix Kratz
cf13bed569 add event guards in default config 2023-08-22 09:14:00 +02:00
Felix Kratz
1890f00c7f Use CVDisplayLink to sync the animation refresh to the actual refresh of the display
A CVDiplayLink creates its own thread, where the callback function is invoked. Thus the event logic must be guarded with a recursive mutex to disable two distinct threads from accessing the core memory at the same time.
2023-08-21 18:31:08 +02:00
Felix Kratz
6d053648d4 properly remove items when bar_manager is destroyed 2023-08-21 17:55:13 +02:00
Felix Kratz
e67b96aa7d only listen to mouse events when the mouse is over the bar 2023-08-17 11:19:31 +02:00