/wayfire-shadows

Wayfire plugin that adds window shadows

Primary LanguageC++MIT LicenseMIT

winshadows

Window Shadows Plugin for Wayfire

This is a plugin for wayfire that adds window shadows. The code was initially a fork of https://gitlab.com/wayfireplugins/windecor but only a small part of that remains in the code.

Install

  1. Get the sources
    git clone https://github.com/timgott/wayfire-shadows.git
    cd wayfire-shadows
  2. ⚠️ Switch to the backport0.7 branch if you use wayfire version 0.7 (last stable release)
    git checkout backport0.7 # (if necessary)
  3. Configure with meson and build & install with ninja.
    meson build --buildtype=release
    cd build
    # meson configure --prefix=... # if wayfire is not installed in /usr/local
    ninja
    sudo ninja install

Install with wfplug

As above, you have to change the branch on wayfire 0.7.

source ~/wfplug/activate  # edit path if necessary
wfplug-goto-plugins
git clone https://github.com/timgott/wayfire-shadows.git winshadows
wfplug-build winshadows

Try a testconfig with

wfplug-test winshadows bluelight

Screenshots

By default, the plugin will add fast and nice shadows around windows that use server side decorations. image

Bonus: The plugin can additionally make the focused window glow. image

Config used in last screenshot
[decoration]
active_color = \#A8A0C9A4
border_size = 4
inactive_color = \#20252338
title_height = 0

[winshadows]
glow_color = \#97AFCD26
glow_radius = 40
shadow_color = \#00000033
shadow_radius = 20