Skip to content
Window layout scripting utility for X11 (like devilspie2) which uses relative positions (percentages)
Branch: master
Clone or download
Oliver Anhuth
Oliver Anhuth Fix README example.
Latest commit 0cdf675 Jun 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Enhance make file. Apr 19, 2018
LICENSE
Makefile
README.md Fix README example. Jun 15, 2018
arg_parse.h
example.lua
logger.cpp
logger.h
lua.h
main.cpp Add version info. Apr 23, 2018
test.lua Check required Lua verison. Enhance print functions. Apr 23, 2018
winctl.cpp
winctl.h

README.md

winctl

Window layout scripting utility for X11 (like devilspie2) which uses relative positions (percentages)

How to build

Make sure to meet the requirements: Core utilities, Make, C++ compiler, pkg-config, Lua >= 5.2, gdk-3 and libwnck-3 development packages

make

How to install (to /usr/local/bin)

sudo make install

How to use

winctl my_script.lua &

Execute Lua script for every existing window, then keep running and execute script for every new window.

Example script

-- Make Firefox maximized
if window.type() == "normal" and window.application() == "Firefox" then
    window.maximized(true)
end

-- Make Google Chrome span 90% of the workspace area
if window.type() == "normal" and string.match(window.application(), "Google Chrome$") then
    window.rect(1, 1, 91, 91)
end
You can’t perform that action at this time.