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. However,
the options for the animations can be adjusted in wcm extra animations plugin. The
animations are valid for open and close animation options.
  • Loading branch information
soreau committed Dec 20, 2024
1 parent b837395 commit 5dee8de
Show file tree
Hide file tree
Showing 10 changed files with 1,606 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
container: alpine:edge
steps:
- run: apk --no-cache add git gcc g++ binutils pkgconf meson ninja musl-dev wayland-dev wayland-protocols libinput-dev libevdev-dev libxkbcommon-dev pixman-dev glm-dev libdrm-dev mesa-dev cairo-dev pango-dev eudev-dev libxml2-dev glibmm-dev libseat-dev libdisplay-info-dev hwdata-dev nlohmann-json
- run: apk --no-cache add git gcc g++ binutils pkgconf meson ninja musl-dev wayland-dev wayland-protocols libinput-dev libevdev-dev libxkbcommon-dev pixman-dev glm-dev libdrm-dev mesa-dev cairo-dev pango-dev eudev-dev libxml2-dev glibmm-dev libseat-dev libdisplay-info-dev hwdata-dev nlohmann-json boost-dev
- name: Wayfire
uses: actions/checkout@v2
with:
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
container: alpine:edge
steps:
- run: apk --no-cache add git gcc g++ binutils pkgconf meson ninja musl-dev wayland-dev wayland-protocols libinput-dev libevdev-dev libxkbcommon-dev pixman-dev glm-dev libdrm-dev mesa-dev cairo-dev pango-dev eudev-dev libxml2-dev glibmm-dev libseat-dev libxcb-dev xcb-util-wm-dev xwayland libdisplay-info-dev hwdata-dev nlohmann-json
- run: apk --no-cache add git gcc g++ binutils pkgconf meson ninja musl-dev wayland-dev wayland-protocols libinput-dev libevdev-dev libxkbcommon-dev pixman-dev glm-dev libdrm-dev mesa-dev cairo-dev pango-dev eudev-dev libxml2-dev glibmm-dev libseat-dev libxcb-dev xcb-util-wm-dev xwayland libdisplay-info-dev hwdata-dev nlohmann-json boost-dev
- name: Wayfire
uses: actions/checkout@v2
with:
Expand Down
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 5dee8de

Please sign in to comment.