/Albert-X-Window-Switcher

QtPlugin for the Albert Launcher that allows Albert to switch between open windows on an X11 system

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Albert X Window Switcher

Description

QPlugin for the Albert Launcher that allows Albert to switch to open windows. This utility is designed for systems that use the X11 window system. As of the time that this was written, this functionality does exist in Albert via a python wrapper for the wmctrl utility, however this implementation aims to have better performance as it removes any of the added overhead of python and pybind11 because the functionality is implemented natively.

Dependencies

This plugin also shares the same dependencies that are needed to build Albert from sources. Information about building Albert from sources and its dependencies can be found here.

Installation

Option 1: Compile alongside Albert

git clone --recursive https://github.com/albertlauncher/albert.git
cd albert/plugins
git submodule add https://github.com/jbwong05/Albert-X-Window-Switcher.git
./Albert-X-Window-Switcher/updateCMakeLists.sh
cd ..
mkdir albert-build
cd albert-build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make
sudo make install

Option 2: Compile separately from Albert

git clone https://github.com/jbwong05/Albert-X-Window-Switcher.git
cd Albert-X-Window-Switcher
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SEPARATELY=ON ..
make
sudo make install

Uninstallation

sudo rm -f /usr/lib/albert/plugins/libxwindowswitcher.so