Commit graph

556 commits

Author SHA1 Message Date
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
Felix Kratz
56862e90dd ask for required permission when querying default menu items 2021-12-09 17:41:49 +01:00
Felix Kratz
6fba6e343d added 'left of notch' and 'right of notch' item positions 2021-12-05 20:25:24 +01:00
Felix Kratz
83690a3015 core logic cleanup 2021-12-05 19:43:51 +01:00
Felix Kratz
3a12d250eb updates=when_shown respected more consitently 2021-12-02 19:23:31 +01:00
FelixKratz
a8c112ccb8 off by one fixes
Co-authored-by: LeonHeidelbach <leon.heidelbach@hhu.de>
2021-12-02 00:06:51 +01:00
FelixKratz
741f749189 fixes to core logic
Co-authored-by: LeonHeidelbach <leon.heidelbach@hhu.de>
2021-12-01 22:35:53 +01:00
Felix Kratz
7498a9bd4e improved query system for components (#55) 2021-11-30 17:59:56 +01:00
Felix Kratz
bddc171816 align property for fixed width icons and labels 2021-11-29 18:24:09 +01:00
Felix Kratz
1ce288eca6 y_offset for brackets 2021-11-26 19:09:31 +01:00
Felix Kratz
dc0d6bf3ff core logic surgery -- hopefully fixes some bugs 2021-11-23 23:36:36 +01:00
Felix Kratz
bbd967a868 add brackets to brackets 2021-11-23 00:18:24 +01:00
Felix Kratz
786f19ed10 fix right bracket offset 2021-11-22 23:56:46 +01:00
Felix Kratz
f7bf1aefcb fix right brackets 2021-11-18 20:15:15 +01:00
Felix Kratz
e344ffc10f changed default window level to normal 2021-11-17 16:58:34 +01:00
Felix Kratz
2378cbdd6d
Merge pull request #111 from errose28/fix-remove
Fix memory issues when removing bar items
2021-11-14 21:17:50 +01:00
Ethan Rose
bbf45f7230 Fix json output when bar has no items 2021-11-13 18:02:57 -08:00
Ethan Rose
07b6b5c454 Fix remove when one item remains 2021-11-13 16:59:56 -08:00
Ethan Rose
eaf1bf4dc5 Fix typo causing double free on item remove 2021-11-13 13:57:46 -08:00
Felix Kratz
fc3db286b7 leaner default space script 2021-11-13 15:27:08 +01:00
Felix Kratz
c648823b9e system_will_sleep event and scripts are not executed during sleep 2021-11-13 13:56:26 +01:00
Felix Kratz
ac376fffe3 negative bar y_offset possible 2021-11-12 17:26:52 +01:00
Felix Kratz
3a831e4a46 inner paddings can be negative again 2021-11-12 17:19:18 +01:00
Felix Kratz
58fb08ee49 added individual backgrounds for label and icon 2021-11-11 18:35:28 +01:00
Felix Kratz
2815a6e325 further modularize core logic 2021-11-11 17:56:44 +01:00
Felix Kratz
28729302e3 modularize core bar logic 2021-11-11 01:34:29 +01:00
FelixKratz
766e3f6984 fixes #103 2021-11-07 23:27:44 +01:00
FelixKratz
8d7dad211d fix bricking typo in prev commit 2021-11-07 19:56:55 +01:00
FelixKratz
c24a682794 set timeouts for socket connection 2021-11-07 19:46:45 +01:00
FelixKratz
c6a35d5c3f timeout forks after 10s. Closes #71 2021-11-07 19:24:54 +01:00
FelixKratz
86e83d5277 push version to 2.2.0 2021-11-04 22:12:12 +01:00
FelixKratz
d221d0e948 new additional scripting properties for mouse events -> $BUTTON and $MODIFIER are accessible now. Closes #92 and #25 2021-11-04 21:51:43 +01:00
FelixKratz
4b1dec6814 item backgrounds now respect the y_offset if a custom height is specified. If a graph has a custom height background enabled the graph is drawn in the bounds of that background. Fixes #93 2021-11-04 21:03:26 +01:00
FelixKratz
e06b1a4a6b fixes #80 2021-11-04 20:24:29 +01:00
FelixKratz
7109724111 fixes #99 2021-11-03 20:55:16 +01:00
FelixKratz
8b7c82f4ed 64 events possible 2021-11-03 20:51:12 +01:00
Felix Kratz
54fbc9faa5 brackets respect inner background paddings 2021-11-02 17:48:29 +01:00
Felix Kratz
8598d4187c remove super sticky tag bit 2021-11-02 17:16:52 +01:00
Felix Kratz
58a53551ee correct bounding rects for aliases -> now clickable, etc 2021-11-02 11:28:04 +01:00
Felix Kratz
513fcbc37d
Merge pull request #95 from es183923/master
add missing comma
2021-11-02 11:02:18 +01:00
Felix Kratz
e31c55c32c fix much too agressive window reload 2021-11-02 10:59:09 +01:00
es183923
f9230f0ed1 add missing comma 2021-11-01 20:44:16 -04:00
FelixKratz
55f2b57421 restructuring, shadow property and event querying 2021-11-01 14:39:10 +01:00
FelixKratz
ac56af24da fix a rouge if statement 2021-11-01 12:20:03 +01:00
CHEN Xian-an
238b2ee5e0 Remove shadow on macOS 12 2021-10-30 10:48:18 +08:00
FelixKratz
71344a2712 fix double draw region inset and clamp corner radii 2021-10-29 16:56:00 +02:00
FelixKratz
f147562fd8 fix ghost bounding boxes 2021-10-29 16:15:16 +02:00
FelixKratz
2d37b39f51 hacky fix for broken sticky windows... bar will have shadow on monterey 2021-10-29 14:29:38 +02:00
FelixKratz
73f8f533ba optional modifiers for item cloning 2021-10-29 00:29:33 +02:00
FelixKratz
50d4da59da reverted insert clone after parent 2021-10-29 00:03:47 +02:00
Felix Kratz
a77644b109 cleaning up the window tags and clones are inserted after parent 2021-10-28 19:42:24 +02:00
FelixKratz
6e29e918f1 redraw after remove 2021-10-28 02:19:43 +02:00
FelixKratz
0a546229af fix obvious bug in new domains 2021-10-28 00:18:16 +02:00
FelixKratz
55e6547500 new domains: --move --remove --clone --rename 2021-10-26 17:42:26 +02:00
FelixKratz
7df664e441 y_offset in bounding rects 2021-10-26 00:32:13 +02:00
FelixKratz
b6c19f094b add --reorder domain and query fix 2021-10-25 21:34:39 +02:00
Felix Kratz
c333070c83 fixed inconsistent query syntax and setting space association resets previous flags 2021-10-25 18:30:39 +02:00
FelixKratz
cc28c04b44 fix query system invalid domain printouts 2021-10-24 20:02:19 +02:00
FelixKratz
d5e934bdba added POLLIN timeout 2021-10-24 19:58:45 +02:00
FelixKratz
efe9ca0346 fix event trigger 2021-10-24 18:51:34 +02:00
FelixKratz
727cb97c74 removed draw call print 2021-10-22 00:30:46 +02:00
FelixKratz
8daecea1b3 further syntax rework and update guide 2021-10-21 23:32:44 +02:00
Felix Kratz
960cdc45f4 prepared modifier key piping 2021-10-19 19:19:31 +02:00
Felix Kratz
c9ede90ee0 fix bar being unfrozen during inital configuration when setting topmost 2021-10-19 18:48:08 +02:00
Felix Kratz
83c3a7dfec fix compiler warning 2021-10-19 18:27:35 +02:00
Felix Kratz
9b2e2d787b added picky redraw prototype 2021-10-19 18:25:04 +02:00
FelixKratz
6fab04fadc modularize bar_item drawing 2021-10-19 00:42:45 +02:00
FelixKratz
4c3b5a50c8 started restructuring for picky redraw 2021-10-19 00:33:53 +02:00
FelixKratz
99be427720 syntax overhaul 2021-10-18 18:10:51 +02:00
FelixKratz
f4b3cd7b44 dynamic length mode 2021-10-17 18:09:27 +02:00
Felix Kratz
22fc9ecfbd added custom width feature for items 2021-10-15 16:31:29 +02:00
Felix Kratz
af35c54757 catch NULL bar_item earlier 2021-10-13 14:34:43 +02:00
FelixKratz
27db928fa6 new events and new scripting possibilities 2021-10-13 01:24:58 +02:00
FelixKratz
b53bd2bb28 fix ghost bounding boxes 2021-10-12 21:08:34 +02:00
FelixKratz
e157482375 skylight magic for mouse entered and exited events 2021-10-11 23:38:55 +02:00
FelixKratz
342ed8019e redraw bar when setting y_offset 2021-10-11 20:01:15 +02:00
FelixKratz
ee0d08c8db bracket optimization 2021-10-10 19:35:32 +02:00
FelixKratz
d308ac7888 first item bracketing prototype 2021-10-10 18:10:36 +02:00
FelixKratz
fb25459346 fix space highlighting 2021-10-09 19:13:50 +02:00
FelixKratz
21c2ae42cf added cmake system and fix compatibility quirks 2021-10-06 20:59:47 +02:00
FelixKratz
7640f620c6 restructuring and further item group preparation 2021-10-05 01:04:20 +02:00
FelixKratz
b4e9c707fd use vfork instead of fork for much better performance 2021-10-04 22:46:03 +02:00
FelixKratz
c5569d9600 readd scaled resolutions 2021-10-04 12:03:07 +02:00
FelixKratz
a547bdad12 fix graph flaw introduced in restructuring 2021-10-03 21:26:18 +02:00
FelixKratz
e0697d9879 preparing item grouping 2021-10-03 00:48:25 +02:00
FelixKratz
fcf5db0c07 better positioning of graphs and aliases 2021-10-02 17:21:36 +02:00
FelixKratz
82011a0ee5 new centering logic 2021-10-02 14:58:03 +02:00
FelixKratz
d4948c429f continued background refactoring 2021-10-02 14:10:28 +02:00
FelixKratz
968ef7464e continuation of text refactoring 2021-10-02 13:48:54 +02:00
FelixKratz
741b5cabac update README to reflect new features 2021-10-01 12:42:52 +02:00
FelixKratz
b761163536 new modifier to execute scripts only when the item is shown 2021-10-01 12:37:37 +02:00
FelixKratz
b9421137aa push version to 1.4.0 2021-09-27 23:57:40 +02:00
FelixKratz
a26e228d96 query defaults 2021-09-27 22:44:17 +02:00
FelixKratz
eedd84e98b remove debug print and nospace format fix 2021-09-27 21:51:56 +02:00
FelixKratz
1840deab3b unify background usage 2021-09-27 21:46:18 +02:00
FelixKratz
5629b88173 bar item refactoring 2021-09-27 21:34:01 +02:00
FelixKratz
088bcc618a added nospace to item query 2021-09-27 19:02:40 +02:00
FelixKratz
46c1ddf2c7 bounding rect display ids should be adids 2021-09-27 18:59:54 +02:00
FelixKratz
63f265c68d add bounding rects to item serialization 2021-09-27 18:49:23 +02:00
FelixKratz
808b737e35 add items to bar serialization 2021-09-27 18:24:03 +02:00
FelixKratz
0f309c1608 sid -> adid bounding rect logic 2021-09-27 18:06:36 +02:00