Coder Social home page Coder Social logo

gladrags's Introduction

Gladrags - an applet to smarten up your MATE panels

This applet allows you to apply effects to the backgrounds of your panels, so that the desktop wallpaper behind them appears e.g. blurred or pixellated. In other words, gratuitous eye-candy...

Examples:

Without Gladrags - a normal panel with black background and 50% transparency Without Gladrags

Gladrags and greyscale effect: greyscale

Gladrags with a medium blur effect: medium blur

Gladrags with a medium pixellation effect: medium pixellation

Gladrags with a medium smear effect: medium smear

Via the preferences dialog it is possible to specify the amount of the effect to apply and whether to apply the effect to all panels or just the panel containing the applet.

Gladrags preferences

Gladrags will also automatically update panel backgrounds whenever your desktop wallpaper changes.

Note: because Gladrags overrides the usual panel background settings, you now need to specify the panel background colour and transparency level from the applet preferences. Also, if you use the MATE dock applet, make sure that it isn't set to change the panel background colour according the wallpaper image - this will cause Gladrags and the dock applet to both try to alter the panel background settings at the same time. At best you may end up with an ugly panel, at worst one or both applets may crash.

How it works

Gladrags uses the wonderful ImageMagick for cropping images and applying effects. The process is as follows:

* Gladrags calculates what parts of the background image are behind the panel(s)
* ImageMagick is then used to:
    * Crop the parts of the background image which are behind the panel(s)
    * Apply the required effect at the required level to the cropped images
    * Apply the specified background colour at the specified transparency level to the cropped images
* Gladrags then sets the panels to use the these images as their background

Limitations

Currently there is no support for multi-monitor setups, but this is planned for the future. Gladrags may or may not work correctly in this situation - it is currently untested. Also, for Gladrags to work, you must change your wallpaper settings so that the style is set to either 'Zoom' or 'Stretch'. Gladrags only works with background images. It won't work if e.g. you have a colour gradient set as your background.

Installation

Installation is currently only from source. Dependencies are:

  • Python3
  • ImageMagick
  • Python 3 Cairo bindings

You'll also need autotools and libglib2 to compile the preferences schema (e.g on Ubuntu this is libglib2.0-dev)

then cd to the directory containing all of the development files and run:

aclocal

automake --add-missing

autoreconf

To build a GTK2 version of the applet:

./configure --prefix=/usr

To build a GTK3 version:

./configure --prefix=/usr --with-gtk3

Then enter the following commands:

make

sudo make install

Acknowledgements:

Thanks to the Variety wallpaper changer for giving me the idea of using ImageMagick to apply effects to panels backgrounds, and for being an awesome program!

ImageMagick (obviously...)

Finally, the Gladrags icon is by Freepik from Flaticon and is licensed under Creative Commons V3.0

gladrags's People

Contributors

robinsharma48 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.