Skip to content

Commit

Permalink
Add extra-animations plugin
Browse files Browse the repository at this point in the history
The extra-animations plugin adds four new animations - blinds, helix, shatter and vortex.
It requires animate and extra-animations plugins to be enabled. Currently, the new animations
will not show up in wcm animate plugin, the config file must be edited manually. The
animations are valid for open and close animation options.
  • Loading branch information
soreau committed Dec 20, 2024
1 parent b837395 commit d14241f
Show file tree
Hide file tree
Showing 9 changed files with 1,604 additions and 0 deletions.
58 changes: 58 additions & 0 deletions metadata/extra-animations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0"?>
<wayfire>
<plugin name="extra-animations">
<_short>Extra Animations</_short>
<_long>Extra animations to extend animate plugin</_long>
<category>Effects</category>
<subgroup>
<_short>Blinds Settings</_short>
<option name="blinds_duration" type="animation">
<_short>Blinds duration</_short>
<_long>Sets the duration for the blinds animation in milliseconds.</_long>
<default>700ms linear</default>
</option>
<option name="blinds_strip_height" type="int">
<_short>Blinds strip height</_short>
<_long>Height of each blinds strip in pixels.</_long>
<default>20</default>
<min>10</min>
</option>
</subgroup>
<subgroup>
<_short>Helix Settings</_short>
<option name="helix_duration" type="animation">
<_short>Helix duration</_short>
<_long>Sets the duration for the helix animation in milliseconds.</_long>
<default>700ms linear</default>
</option>
<option name="helix_rotations" type="int">
<_short>Helix rotations</_short>
<_long>Number of rotations for the helix animation.</_long>
<default>2</default>
<min>1</min>
</option>
<option name="helix_strip_height" type="int">
<_short>Helix strip height</_short>
<_long>Height of each helix strip in pixels.</_long>
<default>20</default>
<min>10</min>
</option>
</subgroup>
<subgroup>
<_short>Shatter Settings</_short>
<option name="shatter_duration" type="animation">
<_short>Shatter duration</_short>
<_long>Sets the duration for the shatter animation in milliseconds.</_long>
<default>1000ms linear</default>
</option>
</subgroup>
<subgroup>
<_short>Vortex Settings</_short>
<option name="vortex_duration" type="animation">
<_short>Vortex duration</_short>
<_long>Sets the duration for the vortex animation in milliseconds.</_long>
<default>1000ms linear</default>
</option>
</subgroup>
</plugin>
</wayfire>
1 change: 1 addition & 0 deletions metadata/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ install_data('annotate.xml', install_dir: wayfire.get_variable(pkgconfig: 'metad
install_data('autorotate-iio.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('bench.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('crosshair.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('extra-animations.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('focus-change.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('focus-steal-prevent.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
install_data('follow-focus.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
Expand Down
Loading

0 comments on commit d14241f

Please sign in to comment.