Giter Site home page Giter Site logo

pacwall-pywal's Introduction

screenshot

pacwall.sh is a shell script that changes your wallpaper to the dependency graph of installed by pacman packages. Each package is a node and each edge indicates a dependency between two packages. The explicitly installed packages have a distinct color (orange by default).

Changes in this fork

  • (optionally) parse pywal for color data
    • colors for nodes, etc can be exchanged for other colors exported by pywal
    • if pywal is not installed (~/.cache/wal does not exist), use default colors
  • feh removed, instead using hsetroot
    • hsetroot is more minimalistic (0.04MiB)
    • removes the dependency on imagemagic (9.72MiB)
    • removes the dependency on feh (0.17MiB)
    • removes the need to manually set SCREEN_SIZE

Requirements

  • graphviz
  • pacman-contrib
  • hsetroot
  • python-pywal (optional)

sudo pacman -S graphviz pacman-contrib hsetroot pywal

Customization

Any customizations should be performed by modifying the script itself. The code in the script is well-structured (should be). To discover the customization possibilities, read the man page of graphviz and twopi, particularly the section on GRAPH, NODE AND EDGE ATTRIBUTES.

Troubleshooting

If the graph is too large, add a -Gsize flag to the twopi invocation, like here:

twopi \
	-Gsize="7.5,7.5" \
	-Tpng pacwall.gv \
	-Gbgcolor=$BACKGROUND \
	-Ecolor=$EDGE\
	-Ncolor=$NODE \
	-Nshape=point \
	-Nheight=0.1 \
	-Nwidth=0.1 \
	-Earrowhead=normal \
	> pacwall.png

The flag forces the graph to be not wider nor higher than 7.5 inches.

An alternative method is to add a -Granksep flag. For example, -Granksep=0.3 means that the distance between the concentric circles of the graph will be 0.3 inch.

pacwall-pywal's People

Contributors

kharacternyk avatar quoteme 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.