Go to file
Uli Schlachter c80bf6f46e wibox.layout.flex: Do not leave empty space behind
It is not possible to distribute 100px to three widgets equally. The
current version of wibox.layout.flex tries to do that anyway, by giving
each widget 33px and leaving one pixel outside of any widget. Thus, if
the widgets e.g. have a common background, this leads to a one pixel gap
in the background.

This patch changes the flex layout so that the extra pixel is assigned
to some widget instead. It does so by basically keeping a sum of
space_per_item for the widgets that was assigned so far. This sum is
rounded and when this leads to rounding, the corresponding child widget
gets an extra pixel.

More precisely, this tracks a pos as before. Widgets get their position
still assigned based on rounding pos. However, this now also remembers
this rounded position for the next iteration of the loop. This allows to
assign the size of widgets based on the difference between the current
and last rounded position.

(Possibly) fixes: https://github.com/awesomeWM/awesome/issues/2461
Signed-off-by: Uli Schlachter <psychon@znc.in>
2018-11-05 10:13:18 +01:00
build-utils gears.surface: Use GdkPixbuf 2018-01-18 18:19:07 +01:00
common Add support for motif wm hints 2018-08-03 19:19:43 +02:00
docs docs: update URL for vicious (#2446) 2018-10-20 15:15:01 -04:00
icons icons: remove invaders 2009-09-08 13:29:25 +02:00
lib wibox.layout.flex: Do not leave empty space behind 2018-11-05 10:13:18 +01:00
manpages Merge branch 'more-manpage-updates' of https://github.com/psychon/awesome 2018-02-10 20:10:05 +01:00
objects awful.rules: Add proper documentation to the extra client properties. 2018-10-10 01:58:18 -04:00
spec wibox.layout.flex: Do not leave empty space behind 2018-11-05 10:13:18 +01:00
tests Merge pull request #2360 from Elv13/add_awful_tag_layouts 2018-10-22 14:40:16 -04:00
themes themes/xresources/assets.lua: use raw=true with deprecation 2018-10-03 17:37:35 +02:00
utils Add examples and help text for awesome-client (#2162) 2018-01-21 17:40:38 -05:00
.busted tests: busted: add config file, use --verbose by default (#2076) 2017-10-22 18:05:00 +02:00
.editorconfig Add an EditorConfig file 2015-12-12 17:48:42 +01:00
.gitignore luacheck: enable cache (#2004) 2017-08-20 22:50:30 +02:00
.luacheckrc luacheck: enable cache (#2004) 2017-08-20 22:50:30 +02:00
.luacov luacov: include everything 2017-01-08 20:34:13 +01:00
.mergify.yml Migrate Mergify configuration to v2 2018-10-15 16:00:34 +02:00
.travis.yml tests/examples: Run example-tests in build phase, not configure phase 2018-08-06 16:50:46 +02:00
CMakeLists.txt build: Add more dependencies to the ldoc target 2018-10-12 14:03:33 -04:00
ISSUE_TEMPLATE.md Add an ISSUE_TEMPLATE.md file (#997) 2016-07-09 19:18:02 +02:00
LICENSE chance license to GPLv2 2007-09-12 14:29:51 +02:00
Makefile Makefile: distclean: do not try to rm `awesome` (#2077) 2017-10-23 22:25:18 +02:00
Packaging.cmake Packaging.cmake: cache CPACK_GENERATOR (#1924) 2017-07-21 01:06:59 +02:00
README.md Add README.md symlink 2015-02-28 23:14:13 +01:00
awesome-version-internal.h Add a vim modeline to all C source 2015-12-12 17:42:16 +01:00
awesome.c signal_child: use "(void) res" to silence compiler warning 2018-10-06 22:49:29 +02:00
awesome.desktop Remove deprecated Encoding key from awesome.desktop (#1394) 2017-01-13 22:21:50 +01:00
awesome.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
awesomeConfig.cmake doc: Add an index of valid properties to awful.spawn and awful.rules. 2018-10-12 14:19:25 -04:00
awesomerc.lua rc.lua: Move Motif hints example to generated docs 2018-08-26 19:26:19 +02:00
banning.c Fix recursive enterleave ignore (#1747) 2017-04-21 18:53:25 +02:00
banning.h Clean up header includes 2014-03-30 20:07:48 +02:00
color.c Merge pull request #2207 from psychon/alpha_borders 2018-04-22 02:02:10 -04:00
color.h Correctly convert colors with alpha to a Lua string 2018-03-03 10:57:48 +01:00
config.h Merge branch 'find-fallback-config' of https://github.com/psychon/awesome 2017-01-27 17:39:30 +01:00
dbus.c Use signal_array_getbyname() where appropriate 2018-01-24 09:13:35 +01:00
dbus.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
draw.c Add awesome.pixbuf_to_surface 2018-01-18 18:10:35 +01:00
draw.h Add awesome.pixbuf_to_surface 2018-01-18 18:10:35 +01:00
event.c event_handle_configurerequest: Add missing test 2018-08-20 10:40:58 +02:00
event.h Asynchronously update the keyboard state 2017-03-28 15:21:01 +02:00
ewmh.c client: Add request::geometry for client maximization 2017-05-23 22:33:26 +02:00
ewmh.h C code: save all instead of just one client icons 2017-03-07 22:45:49 +01:00
globalconf.h Asynchronously update the keyboard state 2017-03-28 15:21:01 +02:00
keygrabber.c keygrabber: Refactor to be an object instead of a function. 2018-08-06 19:03:25 -04:00
keygrabber.h Clean up header includes 2014-03-30 20:07:48 +02:00
luaa.c awesome.kill: allow negative PIDs (and 0) to support process groups 2018-07-04 14:55:51 +02:00
luaa.h luaA_warn: Balance stack (#2106) 2017-11-08 18:47:37 +01:00
mouse.c Reduce code duplication with luaA_*_call_handler (#2321) 2018-07-25 18:31:02 -04:00
mouse.h Revert "Support more than 5 mouse buttons" (FS#1082) 2013-03-29 16:07:13 +01:00
mousegrabber.c Remove @release @AWESOME_VERSION@ everywhere (#1157) 2016-10-09 22:36:20 +02:00
mousegrabber.h Revert "Support more than 5 mouse buttons" (FS#1082) 2013-03-29 16:07:13 +01:00
property.c Merge branch 'motif_wm_hints' of https://github.com/psychon/awesome 2018-08-22 12:26:26 +02:00
property.h Add support for motif wm hints 2018-08-03 19:19:43 +02:00
root.c doc: Add fake_inputs examples. 2018-08-06 19:03:25 -04:00
selection.c Remove @release @AWESOME_VERSION@ everywhere (#1157) 2016-10-09 22:36:20 +02:00
selection.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
spawn.c minor: spawn_child_exited: use "signal" for signals in warning (#2417) 2018-10-04 19:09:01 +02:00
spawn.h Handle SIGCHLD ourselves instead of through GLib 2018-08-21 15:30:07 +02:00
stack.c doc: fix warnings from doxygen 2015-02-14 20:17:13 +01:00
stack.h Clean up header includes 2014-03-30 20:07:48 +02:00
strut.c geometry: Use the relevant rounding functions instead of integers 2016-04-18 04:20:22 -04:00
strut.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
systray.c Make alpha work on window borders 2018-03-03 10:57:48 +01:00
systray.h Remove unused argument to systray_request_handle() 2016-05-29 14:33:23 +02:00
xkb.c Asynchronously update the keyboard state 2017-03-28 15:21:01 +02:00
xkb.h Asynchronously update the keyboard state 2017-03-28 15:21:01 +02:00
xrdb.c Don't print warnings for non-existing xrdb values 2017-05-24 10:06:24 +02:00
xrdb.h Add a vim modeline to all C source 2015-12-12 17:42:16 +01:00
xwindow.c xwindow_translate_for_gravity: Change instead of set argument 2018-08-17 09:58:30 +02:00
xwindow.h Set WM_CLASS and WM_NAME on all our windows (#551) 2015-11-19 22:23:25 +01:00

README.md

Readme

About Awesome

Awesome is a highly configurable, next generation framework window manager for X.

Building and installation

After extracting the dist tarball, run:

make

This will create a build directory, run cmake in it and build Awesome.

After building is finished, you can either install via make install:

make install  # you might need root permissions

or by auto-generating a .deb or .rpm package, for easy removal later on:

make package

sudo dpkg -i awesome-x.y.z.deb
# or
sudo rpm -Uvh awesome-x.y.z.rpm

NOTE: Awesome uses cmake to build. In case you want to pass arguments to cmake, please use the CMAKE_ARGS environment variable. For instance:

CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/opt/awesome" make

Build dependencies

Awesome has the following dependencies (besides a more-or-less standard POSIX environment):

Additionally, the following optional dependencies exist:

  • DBus for DBus integration and the awesome-client utility
  • asciidoctor for generating man pages
  • gzip for compressing man pages
  • ldoc >= 1.4.5 for generating the documentation
  • busted for running unit tests
  • luacheck for static code analysis
  • LuaCov for collecting code coverage information
  • libexecinfo on systems where libc does not provide backtrace_symbols() to generate slightly better backtraces on crashes
  • Xephyr or Xvfb for running integration tests
  • GTK+ >= 3.10 for ./themes/gtk/

Running Awesome

You can directly select Awesome from your display manager. If not, you can add the following line to your .xinitrc to start Awesome using startx or to .xsession to start Awesome using your display manager:

exec awesome

In order to connect Awesome to a specific display, make sure that the DISPLAY environment variable is set correctly, e.g.:

DISPLAY=foo.bar:1 exec awesome

(This will start Awesome on display :1 of the host foo.bar.)

Configuration

The configuration of Awesome is done by creating a $XDG_CONFIG_HOME/awesome/rc.lua file, typically ~/.config/awesome/rc.lua.

An example configuration named awesomerc.lua is provided in the source.

Troubleshooting

On most systems any message printed by Awesome (including warnings and errors) is written to ~/.xsession-errors.

If Awesome does not start or the configuration file is not producing the desired results the user should examine this file to gain insight into the problem.

Debugging tips

You can call awesome with gdb like this:

DISPLAY=:2 gdb awesome

Then in gdb set any args and run it:

(gdb) set arg --replace
(gdb) run

Reporting issues

Please report any issues you may find on our bugtracker. You can submit pull requests on the github repository. Please read the contributing guide for any coding, documentation or patch guidelines.

Status

Build Status

Documentation

Online documentation is available at https://awesomewm.org/apidoc/.

License

The project is licensed under GNU General Publice License v2 or later. You can read it online at (v2 or v3).