Felix Kratz
f757304bf8
clipping prototype
2022-10-28 12:44:08 +02:00
Felix Kratz
2d2ccfcc96
clean up background bounds calculation
2022-10-28 11:23:05 +02:00
izeau
f3d51570f2
add bar background clipping
...
Implements the features discussed in #274 . It allows the clipping of the
bar background to reveal what is underneath. The clipping shape is based
on the background dimensions & corner radius, and the clipping mask is a
float (0.f = no clipping, 1.f = fully clipped). The background.clip
property is fully animatable, and can be applied to items and brackets,
but not to the bar itself or to text items.
Floating point number properties can now be animated using the
ANIMATE_FLOAT macro.
Clipping should not affect performance when disabled, aside from an
additional loop in the bar_draw function. When enabled, there are at the
moment quite a few preventable bar redraws since the bar_needs_refresh
is naive and does not check if the bar actually needs a refresh (i.e.
the clipping value has changed, the item has moved or its dimensions
were changed). A less aggressive change detection may be implemented but
would require a bit of refactoring to the update functions.
2022-10-26 13:49:59 +02:00
Felix Kratz
32d85ffe9b
push version to 2.11.0
2022-10-26 08:32:32 +02:00
Felix Kratz
c944509888
Merge pull request #275 from izeau/fix-273
...
fix missing item separator in space_change info #273
2022-10-25 21:26:36 +02:00
Felix Kratz
c47bac42b4
fix window ordering for monterey
2022-10-25 21:20:32 +02:00
izeau
302e6928dc
fix missing item separator in space_change info #273
2022-10-25 18:44:46 +02:00
Felix Kratz
a502075856
experimental ventura patch
2022-10-25 18:13:21 +02:00
Felix Kratz
6244fb0155
push version to 2.10.1
2022-10-14 21:26:33 +02:00
Felix Kratz
f791cfaa98
cleanup
2022-10-14 21:23:48 +02:00
Felix Kratz
5ed920b78d
possibly fix #262
2022-10-14 18:30:57 +02:00
Felix Kratz
066096f382
possibly fix #262
2022-10-14 18:28:12 +02:00
Felix Kratz
ca15ea88fd
add brightness_change event using private DisplayServices framework
2022-10-13 18:32:20 +02:00
Felix Kratz
862951d39a
fix volume event memory leak
2022-10-13 18:26:24 +02:00
Felix Kratz
d8c9628cd2
push version to 2.10.0
2022-10-11 22:00:12 +02:00
Felix Kratz
078efc261b
animation system improvements: only property changes in the same command can be chained together, a new animation request cancels the current animation queue and immediatly starts the new animation from the current value
2022-10-11 21:44:31 +02:00
Felix Kratz
737c265334
allow negating boolean properties
2022-10-11 14:48:09 +02:00
Felix Kratz
93725bb8ee
cancel pending animations for property when receiving a non-animated --set command
2022-10-11 14:47:28 +02:00
Felix Kratz
06c7a0705e
finalize volume_change event
2022-10-10 22:00:08 +02:00
Felix Kratz
9b37667ee2
properly handle stereo volume events and device changes
2022-10-10 21:50:23 +02:00
Felix Kratz
69eb01491b
guard volume event setup
2022-10-09 17:15:17 +02:00
Felix Kratz
bc4de68167
pass volume as an integer to scripts
2022-10-09 16:35:09 +02:00
Felix Kratz
673259897d
add volume_change event
2022-10-09 16:21:22 +02:00
Felix Kratz
cf5e7ccaff
allow chaining dynamic width animations for texts
2022-10-09 13:38:07 +02:00
Felix Kratz
d2e6a36f6b
cleanup
2022-10-07 23:35:39 +02:00
Felix Kratz
faf1d22ca1
group height
2022-10-07 22:50:14 +02:00
Felix Kratz
189709bf5c
correctly center center items for left/right bars
2022-10-07 22:22:01 +02:00
Felix Kratz
7675f87222
enable popups for left/right bars
2022-10-07 22:13:49 +02:00
Felix Kratz
ac9f35edea
experimenting with left/right bar positions ( #240 )
2022-10-06 21:05:19 +02:00
Felix Kratz
1340a0a555
fix for text height
2022-10-06 20:39:09 +02:00
Felix Kratz
44c0915356
respect background in item height calculation
2022-10-06 20:20:48 +02:00
Felix Kratz
b4c6320b60
fix macOS menu bar bounds calculation on arm macs
2022-10-06 19:11:59 +02:00
Felix Kratz
51c1814b09
do not add notch_offset if bar is positioned at bottom
2022-10-06 18:34:50 +02:00
Felix Kratz
66f38d5c86
push version to 2.9.1
2022-10-01 01:21:35 +02:00
Felix Kratz
ba3a12f212
allow chaining of width animations
2022-10-01 01:13:15 +02:00
Felix Kratz
9951e25ccd
allow animating from/to dynamic width
2022-10-01 00:51:20 +02:00
Felix Kratz
44fd3a138d
allow animating to/from dynamic width
2022-09-29 18:18:31 +02:00
Felix Kratz
11da018290
more documentation for default config scripts
2022-09-28 16:15:14 +02:00
Felix Kratz
bf3d88da88
fix exit codes when there is no response
2022-09-28 15:27:58 +02:00
Felix Kratz
f6bc244bc1
allow triggering space_change and display_change events to force a refresh of all spaces
2022-09-28 15:20:48 +02:00
Felix Kratz
6dbe571227
make popup properties animatable ( #252 )
2022-09-26 07:46:00 +02:00
Felix Kratz
e93004a18d
fix space components not (de)selecting properly on display connect (remove)
2022-09-20 19:00:08 +02:00
Felix Kratz
8ffc4dc56f
new tanh animation function
2022-09-20 17:39:42 +02:00
Felix Kratz
2008f71c21
add mach_helper property to allow external helper programs to be notified directly via mach messages when an event occurs; added proper exit codes in the sketchybar client; push version to 2.9.0
2022-09-08 20:56:57 +02:00
Felix Kratz
1f4653e07b
add sticky property to default config
2022-09-05 12:50:54 +02:00
Felix Kratz
da7f94c70c
push version to 2.8.6
2022-08-26 09:30:48 +02:00
Felix Kratz
eda74de3dd
overhaul of the redraw detection logic
2022-08-24 13:42:37 +02:00
Felix Kratz
0e717ab34d
add associated_display=active option to associate items to only show on the active display
2022-08-24 09:28:07 +02:00
Felix Kratz
5c646aa7a6
push version to 2.8.5
2022-08-24 07:56:35 +02:00
Felix Kratz
e0e4000746
fix associated items dissapearing after switching spaces with sticky=off ( fixes #239 )
2022-08-24 07:54:45 +02:00