polybar-dwm/include
Mihir Lad bc16268d30 dwm: Add click handlers to label-layout
secondary-layout-symbol is the symbol of the layout to switch to when the layout
symbol is left-clicked. This symbol is used to look up the memory address of the
layout to set. The default is the monocle layout.

setlayoutsafe is the dwm command name for setting layouts. The argument is the
layout memory address. Left-clicking switches to the layout represented by
secondary-layout-symbol, and right-clicking switches to the previous layout
(specified by an argument of 0).

To keep track of the different layouts, the layouts are retrieved in the
constructor if the layout label is included and stored in m_layouts.
m_current_layout is updated with the address of the current layout.
m_default_layout is updated in the constructor to the first layout in the array
which is the default layout in dwm. m_secondary_layout is updated to the address
of the layout identified by secondary-layout-symbol.

The builder adds click handlers (if layout label is included) to the layout
symbol as described above. Left-clicking toggles between the secondary layout
and the default layout. Right-clicking toggles between the previous layout and
the current layout.

find_layout are a pair of functions for finding a layout by address or symbol
from the m_layouts array.
2020-12-19 19:43:05 -05:00
..
adapters Merge branch 'hotfix/3.5.1' 2020-12-12 13:28:57 +01:00
cairo feat(conf) Properties for {bottom,top}-{left,right} radius 2020-12-13 17:02:23 +01:00
components New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
drawtypes feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
events New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
modules dwm: Add click handlers to label-layout 2020-12-19 19:43:05 -05:00
tags New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
utils New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
x11 feat(xkeyboard): Add variant support to layout label (#2163) 2020-12-19 18:22:27 +01:00
CMakeLists.txt build: remove xdamage extension 2019-06-03 00:46:12 +02:00
common.hpp refactor(build): Remove version number namespace 2019-05-17 16:49:47 +02:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp Add missing <stdexcept> header 2019-12-25 01:00:29 +01:00
settings.hpp.cmake Update cmake/config files to include dwmipcpp 2020-12-19 19:28:34 -05:00