Commit graph

1051 commits

Author SHA1 Message Date
Felix Kratz
9bcbb81b22 schedule mach messages with the CFRunLoop instead of using a thread 2023-07-19 16:11:46 +02:00
Felix Kratz
931edf128c add reload domain
The new domain --reload [optional: <path>] allows to reload the current config or reload a different config where the path to the sketchybarrc file of the config is supplied as an optional argument
2023-07-19 12:16:51 +02:00
Felix Kratz
b91c61a520 add hotload functionality
The hotload feature is disabled by default and can be controlled via --hotload <boolean>.
When enabled, a change to any file in the CONFIG_DIR will lead to an automatic reload of the config.
When a hotload event occurs, all items are removed and all settings/defaults are reset.
Then the sketchybarrc is executed again, which gives the same effect as restarting the program manually.
2023-07-18 16:36:35 +02:00
Felix Kratz
bfceb847dd use CONFIG_DIR variable in default config 2023-07-17 15:11:36 +02:00
Felix Kratz
61eacaeb45 simplify function to generate the window id from a CGEvent 2023-07-04 18:25:46 +02:00
Felix Kratz
464b5f25cb clean up libraries and remove Cocoa
cleanup
2023-06-28 22:52:17 +02:00
Felix Kratz
f0c1d8a2b6 adapt mouse scroll events
fixup
2023-06-28 22:14:13 +02:00
Revan Sopher
30a66a6d03 Scroll wheel events 2023-06-28 22:14:13 +02:00
Felix Kratz
cde3bc2fd4 implement a faster method to get the window id from a CGEvent and clean up mouse event handling 2023-06-28 21:56:39 +02:00
Felix Kratz
5b820d3b5d remove unused includes 2023-06-26 14:18:09 +02:00
Felix Kratz
ced353079d adapt makefile for new color system 2023-06-14 23:14:41 +02:00
Felix Kratz
781ee63a8d add new color subdomains
i.e. it is now possible to set (and animate) specific color channels:
color.alpha=<float>
color.red=<float>
color.green=<float>
color.blue=<float>
The current way of setting colors with full argb-hex strings is of course still possible
2023-06-14 23:13:39 +02:00
Felix Kratz
bdc19bd994 push version to 2.15.2 2023-06-01 09:10:26 +02:00
Felix Kratz
4058ffef0b fix aliases not updating properly when the parent application is restarted (#377) 2023-06-01 09:01:49 +02:00
Felix Kratz
14c6381aa8 properly escape single quotes 2023-06-01 08:48:54 +02:00
Felix Kratz
7b0f41bddf replace clock icon because NerdFonts did a breaking change... 2023-05-05 14:48:52 +02:00
Felix Kratz
0b14989379 fix space_change events not occuring when leaving fullscreen (#367) 2023-05-03 10:14:31 +02:00
Felix Kratz
8a31469211 add topmost=window option for --bar domain (#368) 2023-05-03 09:59:38 +02:00
Felix Kratz
e022372a30 fix problems with mouse events when popups have negative offset (#368) 2023-05-03 08:05:36 +02:00
Felix Kratz
dc3d7701f1 fix bug where setting the background height to 25 would behave strangely 2023-05-03 07:33:44 +02:00
Felix Kratz
2721fb5431 small fix for media_change event 2023-04-26 12:45:47 +02:00
Felix Kratz
3144ec6752 add media_change event via MediaRemote framework, delivers now playing info for all apps that support the macOS media remote 2023-04-26 00:45:44 +02:00
Felix Kratz
ae94d6a4ba fix $INFO variable being permanently overwritten 2023-04-24 07:15:03 +02:00
Felix Kratz
03c6bee037 push version to 2.15.0 2023-04-23 00:21:50 +02:00
Felix Kratz
d28734d918 revert bracket padding changes for now (#351) 2023-04-22 23:28:21 +02:00
Felix Kratz
ddba0b7f85 add alias.scale=<float> property (#361) 2023-04-22 22:30:39 +02:00
Felix Kratz
4f0a754f7f use kCGBackingStoreBuffered enum value 2023-04-21 20:47:39 +02:00
Felix Kratz
a8012ff3d9 animate text width when setting the string value in a --animate context 2023-04-21 20:15:05 +02:00
Felix Kratz
084c9b642e add possibility for comma separated integer list in --bar display=... (#354) 2023-04-13 22:23:37 +02:00
Yu-Fu Fu
3fcab887f6
mouse button code in INFO environment varaible (#356) (#358)
* mouse button code in INFO environment varaible (#356)

* add JSON $INFO variable to mouse.clicked event

---------

Co-authored-by: Felix Kratz <felix.kratz@tu-dortmund.de>
2023-04-13 21:31:08 +02:00
Felix Kratz
1e1778fe9c add JSON $INFO variable to mouse.clicked event 2023-04-13 21:27:22 +02:00
Yu-Fu Fu
2cd868a8ee mouse button code in INFO environment varaible (#356) 2023-04-13 21:27:22 +02:00
Felix Kratz
e442ac8515 fix group padding (#351) 2023-04-06 07:44:41 +02:00
Felix Kratz
44cb73e94a respect bracket paddings 2023-04-05 19:58:09 +02:00
Felix Kratz
d8c11b653b remove prints 2023-04-05 19:11:51 +02:00
Felix Kratz
ff96bd76b8 binary name determines lock-file, bootstrap name and default config folder 2023-04-05 19:10:55 +02:00
Felix Kratz
bfded17e5e exclude brackets in centering calculation (#351) 2023-04-05 18:13:23 +02:00
Felix Kratz
5bf36c407e do not set bracket position (#351) 2023-04-05 18:07:29 +02:00
Felix Kratz
05bf71db18 push version to 2.14.4 2023-04-01 13:35:52 +02:00
Felix Kratz
e7461b4bb5 add font.family=<string>, font.style=<string>, font.size=<float> subdomains to texts for better font handling 2023-03-26 23:44:00 +02:00
Felix Kratz
6d2b3c2a34 less aggressive display event handling (#336) 2023-03-23 12:16:23 +01:00
Felix Kratz
e704e95d04 acquire realpath from user input 2023-03-22 16:53:51 +01:00
Felix Kratz
2306e34172 guard objective c funtions with autoreleasepool 2023-03-22 15:59:01 +01:00
Felix Kratz
1327dbc12a fix error prints 2023-03-22 15:58:11 +01:00
Felix Kratz
b0f4730dda do not chdir 2023-03-22 09:14:18 +01:00
Felix Kratz
33f815ceea fix window retain problems (#336) 2023-03-22 08:56:18 +01:00
Felix Kratz
81ce6363fa set CONFIG_DIR env variable and chdir to config dir 2023-03-17 15:06:58 +01:00
Felix Kratz
d8dcf4ef76 push version to 2.14.3 2023-03-16 22:35:41 +01:00
Felix Kratz
2f01d41d4d disable alias capture during system animations (#341) 2023-03-16 22:09:22 +01:00
Oli Sturm
db9fc50a68
add --help startup option (#337)
* add --help startup option

* slight refactoring

---------

Co-authored-by: Felix Kratz <felix.kratz@tu-dortmund.de>
2023-03-10 19:37:42 +01:00