Commit graph

556 commits

Author SHA1 Message Date
Felix Kratz
d0f29dcbbb add proper subscribe domain error message 2022-06-11 20:08:19 +02:00
Felix Kratz
5ff5113f28 add -fno-common flag for compilation (fixes #192) 2022-06-10 10:02:45 +02:00
Felix Kratz
df86156c1a better error responses 2022-06-09 21:14:57 +02:00
Felix Kratz
e82f2a96e9 whoops 2022-06-09 19:41:07 +02:00
Felix Kratz
5531582067 added global mouse entered and exited events 2022-06-09 18:05:50 +02:00
Felix Kratz
b41c8a9dda fix some bugs 2022-06-09 17:44:30 +02:00
Felix Kratz
e9c60a83a9 cleanup 2022-06-08 22:36:29 +02:00
Felix Kratz
c90d2cd8be better tracking of bar property change 2022-06-08 20:16:59 +02:00
Felix Kratz
8ecc722b9c initialize new windows off screen 2022-06-08 10:36:57 +02:00
Felix Kratz
96876921c8 even more aggressive performance optimizations 2022-06-07 17:39:04 +02:00
Felix Kratz
0892e1323e fix mouse entered and exited event logic 2022-06-07 15:56:35 +02:00
Felix Kratz
3129a49cd6 much better performance and misc fixes 2022-06-07 15:06:29 +02:00
Felix Kratz
c07d302f2b fix popup anchor for bottom bar layout 2022-06-07 10:48:50 +02:00
Felix Kratz
8eb65c844a fix flickering on startup 2022-06-07 08:41:01 +02:00
Felix Kratz
af5f11d06a fix mirrored bounding rects for popups 2022-06-06 12:51:08 +02:00
Felix Kratz
e139f31898 fix up popup logic 2022-06-06 12:22:07 +02:00
Felix Kratz
09d8f6b054 remove bounding rects, fix popup anchor, groups need fixing 2022-06-06 11:43:54 +02:00
Felix Kratz
c64e242419 properly remove subwindows from window ordering groups 2022-06-06 10:21:11 +02:00
Felix Kratz
cbacd0d5e2 properly add subwindows to window ordering groups 2022-06-06 10:19:52 +02:00
Felix Kratz
721770373f restructuring 2022-06-06 10:14:10 +02:00
Felix Kratz
f9b2395e20 clicks still not working 2022-06-05 22:17:15 +02:00
Felix Kratz
2e3aac4c3e fix performance 2022-06-05 21:18:50 +02:00
Felix Kratz
16ef8709f3 fix groups and flickering 2022-06-05 17:14:15 +02:00
Felix Kratz
8e066f5f3b fix geometry, groups and clicks still not working 2022-06-05 14:50:55 +02:00
Felix Kratz
ddfea5392c ... 2022-06-04 21:02:08 +02:00
Felix Kratz
81f51b49e7 still very buggy 2022-06-04 13:45:26 +02:00
Felix Kratz
ff33f0b11f Merge branch 'master' into picky_redraw 2022-06-04 12:57:47 +02:00
Felix Kratz
0481b170f5 properly respect popup.background.border_width in popup.background.image drawing 2022-05-30 08:44:57 +02:00
Felix Kratz
622c4675a2 properly handle popup.background.shadow 2022-05-30 08:14:45 +02:00
Felix Kratz
4ce61977e6 allow popup.background.image and align popup elements properly 2022-05-29 19:26:54 +02:00
Felix Kratz
e22990e94b experimenting with SLSSurface 2022-05-28 15:12:31 +02:00
Felix Kratz
e20c0d52a1 push animation update (#148) 2022-05-28 14:02:48 +02:00
Felix Kratz
730a118008 this is not working 2022-05-26 13:37:30 +02:00
Felix Kratz
b5ac9a2d81 merge 2022-05-26 13:31:09 +02:00
Felix Kratz
9eeacd30c1 add animation between color and highlight_color 2022-05-26 13:06:13 +02:00
Felix Kratz
c2db74b2f5 all colors can be animated 2022-05-26 12:36:48 +02:00
Felix Kratz
1a087b1b20 some new animation functions 2022-05-25 21:34:10 +02:00
Felix Kratz
ba34ffd8af text width can now be properly animated 2022-05-23 21:17:16 +02:00
Felix Kratz
4bb1b517d1 all shadow properties can be animated + first animation optimizations 2022-05-23 20:15:54 +02:00
Felix Kratz
8b1d4b76fd text properties can all be animated 2022-05-23 19:45:30 +02:00
Felix Kratz
f71192cca8 add tanh animation function 2022-05-22 17:09:19 +02:00
Felix Kratz
95029c1e56 allow full int range in animations 2022-05-22 16:28:06 +02:00
Felix Kratz
c5a9f96cda notch_width animation fix 2022-05-18 16:23:43 +02:00
Felix Kratz
200503b4f8 fix notch_width not working due to typo in animation refactor 2022-05-18 16:21:10 +02:00
Felix Kratz
55668a48f0 use correct window level at init 2022-05-17 00:00:23 +02:00
Felix Kratz
7f5d7e47fb fix topmost (closes #185) 2022-05-16 23:51:05 +02:00
Felix Kratz
b59b58499f disable color animations for now, looks weird 2022-05-16 22:22:33 +02:00
Felix Kratz
d440b00aee bar properties can all be animated 2022-05-16 22:18:41 +02:00
Felix Kratz
4d860a8c9c started animation implementation 2022-05-16 15:00:39 +02:00
Felix Kratz
f4eec60102 better remove bounding rects 2022-04-16 23:28:30 +02:00
Felix Kratz
b29c556157 fix segfault 2022-04-16 23:13:02 +02:00
Felix Kratz
b6b6bf759d started picky redrawing implementation 2022-04-16 23:09:18 +02:00
Felix Kratz
e04f7cac0e move bar item message parsing 2022-04-16 17:58:39 +02:00
Felix Kratz
2e583b7028 reallow to hide current display bar only 2022-04-16 17:48:14 +02:00
Felix Kratz
932d483aeb refactoring of the window logic 2022-04-16 17:38:30 +02:00
Felix Kratz
f0bb787204 space change event payload in $INFO (closes #175) 2022-04-16 15:03:34 +02:00
Felix Kratz
9c019136d6 better redraw on text property change 2022-04-11 10:26:58 +02:00
Felix Kratz
fa7c8c9c4c add boolean to ignore space/display association temporarily 2022-03-31 17:18:12 +02:00
Felix Kratz
bcb8b66442 fix segfault on trigger on empty value (#175) 2022-03-31 12:58:57 +02:00
Felix Kratz
94af4054f0 reformat code for better readability 2022-03-25 21:52:37 +01:00
Felix Kratz
f7a33beefd restructure includes 2022-03-20 22:16:38 +01:00
Felix Kratz
cef53425b0 enable -ffast-math optimization 2022-03-20 19:41:47 +01:00
Felix Kratz
294645679c experimenting with ax for aliases 2022-03-19 19:42:14 +01:00
Felix Kratz
c14e119260 override popup cell size (closes #171) 2022-03-10 18:35:24 +01:00
Felix Kratz
4ad2872144 push version to 2.5.0 2022-03-02 19:54:24 +01:00
Felix Kratz
8f3e5fa776
Moving to XNU mach IPC (#172)
* move to mach messages

* cleanup

* mach responses

* finalize xnu mach ipc

* clean up memory management
2022-03-02 19:50:22 +01:00
Felix Kratz
d59ce51530 fix default item name leak 2022-02-20 14:35:09 +01:00
Felix Kratz
657a2b0798 override alias colors 2022-02-13 16:00:45 +01:00
Felix Kratz
49209b5ec3 clean up includes (closes #165) 2022-02-10 15:36:54 +01:00
Felix Kratz
258fc0afa3 properly remove cache_scripts property 2022-02-08 16:27:08 +01:00
Felix Kratz
1b6cbaeeb8 respect shebang more consistently -- deprecate cache_scripts property 2022-02-08 16:17:59 +01:00
Felix Kratz
a83c3e1bfb add popup background shadows 2022-01-24 23:58:38 +01:00
Felix Kratz
b22847f488 make readme a bit better 2022-01-24 23:00:25 +01:00
Felix Kratz
5d81ad7b1a allow negative bar margin 2022-01-23 12:06:23 +01:00
Felix Kratz
ce031a10b7 fixes for bounding rects and background y_offset 2022-01-23 02:15:56 +01:00
Felix Kratz
892423c6a8 correctly remove popup items 2022-01-21 15:15:24 +01:00
Felix Kratz
4b9f2ae10a avoid crashing on unimplemented item remove 2022-01-21 01:10:50 +01:00
Felix Kratz
7c7273243b regex for --remove command 2022-01-21 00:19:47 +01:00
Felix Kratz
b6a0720491 fix left zero width items 2022-01-18 16:42:25 +01:00
Felix Kratz
cdaeaa8fbe push version to v2.4.1 2022-01-16 20:40:52 +01:00
Felix Kratz
70f14d8f20 fix item width calculation 2022-01-16 20:30:22 +01:00
Felix Kratz
945a430d44 add item align property 2022-01-15 14:05:25 +01:00
Felix Kratz
1f1d0ff697 preparing item align property 2022-01-15 13:38:40 +01:00
Felix Kratz
f377e115fd fix right items with width bigger than their display width 2022-01-15 13:27:44 +01:00
Felix Kratz
2fe5f11617 fixes for images 2022-01-15 12:35:00 +01:00
Felix Kratz
5997cae3ea pass info as json to $INFO for Distributed Notifications 2022-01-12 18:31:39 +01:00
Felix Kratz
bf82350f51 harden app name passing 2022-01-12 17:54:40 +01:00
Felix Kratz
aeb5771b87 pass app name to $INFO variable 2022-01-11 19:20:37 +01:00
Felix Kratz
27f6bc458a fix bounding rects for y_offsets 2022-01-10 01:50:36 +01:00
Felix Kratz
82612c66a6 fix alias bounding rect 2022-01-10 01:46:55 +01:00
Felix Kratz
2998cee43b fix stretched images 2022-01-10 01:22:37 +01:00
Felix Kratz
2d44394f2c use memcmp instead of explicit loop 2022-01-08 12:11:03 +01:00
Felix Kratz
eaa8ca01d8 dont draw bar on bound calculation 2022-01-08 11:38:43 +01:00
Felix Kratz
05fd118457 small clean up 2022-01-07 20:13:57 +01:00
Felix Kratz
f7b54c19b2 push version to 2.4.0 2022-01-04 23:51:35 +01:00
Felix Kratz
625a44a81e no redraw when space is fullscreen 2022-01-04 19:24:02 +01:00
Felix Kratz
32d2cf34e4 properly handle image inheritance (closes #141) 2021-12-31 12:27:43 +01:00
Felix Kratz
b37618f31d activate images for brackets (closes #102) 2021-12-30 22:24:44 +01:00
Felix Kratz
6cb815f544 activate images for the bar itelf (closes #104) 2021-12-30 22:01:05 +01:00
Felix Kratz
4d76e2e932 properly release image on background destruction 2021-12-30 03:14:08 +01:00
Felix Kratz
118190bfbc backgrounds are fully transparent at init 2021-12-30 02:39:31 +01:00
Felix Kratz
0c025f3440 popup cell size is not static anymore, fixes images in popups 2021-12-30 01:31:37 +01:00
Felix Kratz
154e2ca10c small fixes to image handling 2021-12-29 16:57:01 +01:00
Felix Kratz
f380649906 add image capability to all backgrounds (closes #69) 2021-12-29 11:17:06 +01:00
Felix Kratz
8b59b67850 properly initialize text backgroounds 2021-12-29 09:43:47 +01:00
Felix Kratz
3f20ce5949 only calculate background bounds on demand 2021-12-29 09:15:42 +01:00
Felix Kratz
98b8ef571d preparing background images (#69) 2021-12-28 19:12:11 +01:00
Felix Kratz
c1a6541052 preparing image functionality (#69) 2021-12-28 17:16:33 +01:00
Felix Kratz
9d5615598f correctly test success of fnctl 2021-12-28 15:59:46 +01:00
Felix Kratz
c1a50b1bfc set CLOEXEC flag for sockfd to avoid race condition in execve 2021-12-28 15:48:26 +01:00
Felix Kratz
3e5c15a9a3 Fix some pesky leaks, now close to leak free.
Co-authored-by: LeonHeidelbach <leon.heidelbach@hhu.de>
2021-12-25 20:45:06 +01:00
Felix Kratz
3f1ac04a98 remove debug prints and fix small blunder 2021-12-25 01:43:51 +01:00
Felix Kratz
8b65c4ca75 push version to 2.3.2 2021-12-25 00:50:51 +01:00
Felix Kratz
769a1c1f28 fixes a critical bug with brackets and adds background shadows 2021-12-25 00:45:50 +01:00
Felix Kratz
1b9f9c3486 add new text shadow documentation 2021-12-23 15:04:51 +01:00
Felix Kratz
113447d74d expose text shadow property 2021-12-23 14:59:56 +01:00
Felix Kratz
becbddcba6 regular expression support for set commands (closes #122) 2021-12-23 00:38:18 +01:00
Felix Kratz
83afb1b028 disable popups when bar is hidden (closes #134) 2021-12-22 22:59:15 +01:00
Felix Kratz
d2bcbfe66b expand event pool 2021-12-22 21:02:59 +01:00
Felix Kratz
ce4f08b91a correctly free popup items on destruction of parent 2021-12-22 19:45:15 +01:00
Felix Kratz
32b803e8b3 -m flag is now optional 2021-12-22 18:22:58 +01:00
Felix Kratz
35aa876346 push version to v2.3.1 2021-12-20 23:48:01 +01:00
Felix Kratz
3f6cc9dc26 fix popup menus for multi monitors (closes #132) 2021-12-20 16:49:12 +01:00
Felix Kratz
4c218db1fb add popup windows to readme 2021-12-19 22:57:39 +01:00
Felix Kratz
f8c5d107b6 align property for popup menus 2021-12-19 22:31:39 +01:00
Felix Kratz
7363b011b8 popup menu property for horizontal arrangement 2021-12-19 22:02:18 +01:00
Felix Kratz
77367e4e10 draw popup only on active display 2021-12-19 21:06:37 +01:00
Felix Kratz
086fd93939 fix align issues 2021-12-19 20:20:59 +01:00
Felix Kratz
a93c7ea50d catch uninitialized use of adid 2021-12-19 19:26:54 +01:00
Felix Kratz
62357cc8b6 mirror popup menus for bottom bars 2021-12-19 18:08:51 +01:00
Felix Kratz
b3146aecf4 keep right popup menus always on screen 2021-12-19 18:00:41 +01:00
Felix Kratz
98756c9d5c popup items respect drawing property 2021-12-19 17:42:12 +01:00
Felix Kratz
e45a74da57 adaptive size popup menus 2021-12-19 17:37:19 +01:00
Felix Kratz
84ea2e19f2 only work with whole points for drawing 2021-12-18 23:19:33 +01:00
Felix Kratz
48140bb8f8 fix bounding rects for popup menus 2021-12-18 23:11:03 +01:00
Felix Kratz
cde65125be expose popup menu syntax (documentation following soon) 2021-12-18 22:12:25 +01:00
Felix Kratz
588c553f66 popup menu backend working 2021-12-18 19:10:21 +01:00
Felix Kratz
036d440f11 preparing popup menus (#132) 2021-12-18 15:38:34 +01:00
Felix Kratz
64c522eb45 fix freeze on reordering unknown item 2021-12-17 11:22:23 +01:00
Felix Kratz
df0017d277 keep data ref for next comparison 2021-12-15 23:31:31 +01:00
Felix Kratz
a4f5a96b57 fix small leak 2021-12-15 02:07:07 +01:00
Felix Kratz
ddceaf3ac4 release image after comparison 2021-12-14 00:45:18 +01:00
Felix Kratz
80c4a964a7 significantly reduce cpu usage with many aliases. Closes #123 2021-12-12 16:43:57 +01:00
Felix Kratz
13c3655da4 fix underflow in text length 2021-12-12 15:32:16 +01:00
Felix Kratz
4e2ab9b2b7 clear env vars on item destroy 2021-12-12 14:29:51 +01:00
Felix Kratz
8d06ba429c trigger events with environment variables. Closes #105 2021-12-12 14:17:29 +01:00
Felix Kratz
ab4de8651d fix segfault with new env_var system 2021-12-12 13:27:39 +01:00
Felix Kratz
a455b44529 new environment variable system 2021-12-12 13:22:41 +01:00
Felix Kratz
338b7ea514 better key value pair handling 2021-12-12 11:46:33 +01:00
Felix Kratz
4357fd19f4 better default menu query output 2021-12-09 17:57:03 +01:00