Giter Site home page Giter Site logo

crunchbox's Introduction

Dependencies

Python2
Scrot & ImageMagick (for saving + resizing screenshot)

What

A themes manager that saves your current programs
themes and easily loads them later.
Changes the look of your desktop on the fly.

programs supported: Any.

Out of the box, Crunchbox comes with the following plugins

  • Openbox
  • GTK2 theme and icon theme
  • Tint2
  • Conky
  • Nitrogen
  • Bash
  • Urxvt (.Xresources)
  • Weechat
  • Ncmpcpp

Screenshot

Screenshot

Instructions

1.How to start:
a. Extract the 'crunchbox' folder to anywhere you want. Assume it's in ~/downloads/crunchbox, just do:
$ cd downloads/crunchbox/src
$ python crunchbox.py

Some screenshots and more info can be found here: http://crunchbanglinux.org/forums/topic/17149/mmmcrunchbox/

HOW TO ADD SUPPORT FOR A PROGRAM (plugin)

It's extremely simple. All you have to do is tell Crunchbox where the program's config file is located. If you know minimal Python, you will figure out right away. If you know 0 python, follow steps below.

Look at plugins that ship with Crunchbox.

Say you want to add support for Openbox(which is there already. Just using for example).

1) Create file openbox.py inside the plugins directory
2) Copy the content of (ie, tint2.py) into openbox.py
3) Change the class name on line #4. So "class Tint2: " becomes "class Openbox: "
4) Change the line that is the path to the config file in your system.
So in our case, we would change the line
-> self.cfg = [ expanduser("/.config/tint2/tint2rc) ]
to make it look like
-> self.cfg = [ expanduser("
/.config/openbox/rc.xml") ]

5) Inside the load method, we tell Crunchbox what command to run to restart the program.
Notice that inside tint2.py, we have:
call('killall tint2; tint2 &') <--- this causes tint2 to restart, with the new cfg!
As another example, look inside openbox.py. We have
call('openbox --reconfigure')
You simply write just as you would if you were in a terminal

F A Q

Q) When i save, the program disappear for about a second, and then appears again.
A) This is intended. This is so the program itself isn't present in your screenshot.

crunchbox's People

Contributors

sqram avatar

Watchers

Jayvan J Santos 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.