Coder Social home page Coder Social logo

jolivares / gala-alternate-alt-tab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tom95/gala-alternate-alt-tab

0.0 1.0 0.0 107 KB

Plugin for alternative alt-tab window switcher for the Gala WM

License: GNU General Public License v3.0

Vala 100.00%

gala-alternate-alt-tab's Introduction

Gala Window Manager Alternative Window Switcher

This is an alternative to the stock libplank window switcher.

Current status

Warning! This is still very alpha and in progress.

The plugin uses an unreleased Gala API for plugins. Until it is ready, the project status will not change.

Hacking

You will need the most recent snapshot of gala project from bzr.

Inside the repo, you will need to create a new folder in the plugins folder and symlink the Makefile.am and src/Main.vala files.

Now update the gala plugins/Makefile.am and append the new plugin folder to the SUBDIRS variable.

And update the gala configure.ac file to include the new path plugins/alternate-alt-tab/Makefile in its AC_CONFIG_FILES.

Last thing you will need to install the schema file. You can just symlink the file and run glib-compile-schemas.

Next, continue with the normal gala build instructions.

$ ./autogen.sh --prefix=$PWD/build
$ make
$ make install

Testing

Running gala directly from ./build/src/gala could result into a broken desktop. To avoid this, consider using Xephyr (apt-get install xerver-xephyr).

You will need to start Xephyr and tell gala to use it.

$ Xepyr :1 &
$ ./build/bin/gala -d :1 &

Note: :1 is just an ID, it can be a different number if 1 is already being used. Consider increasing the number.

Now that you have gala build running in a virtual X server, you can launch applications with the DISPLAY=:1 environment variable set.

$ DISPLAY=:1 xterm &

Now switching to the Xephyr window, you can capture the mouse and keyboard and test your build.

Alternatively, if you prefer running gala in your main session, you can just run ./src/gala --replace. If you break something and the wm crashes you will most likely not be able to anything anywhere. To get yourself back running you can switch to a different tty, login and run a different wm of your choice with the display set to :0. For metacity that'd be for example metacity -d :0.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

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.