polybar-dwm/include/modules
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
..
meta Add dwm module 2020-12-19 19:43:01 -05:00
alsa.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
backlight.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
battery.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
bspwm.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
counter.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
cpu.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
date.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
dwm.hpp dwm: Add click handlers to label-layout 2020-12-19 19:43:05 -05:00
fs.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
github.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
i3.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
ipc.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
memory.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
menu.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
mpd.hpp Load rgba from config instead of strings. 2020-11-27 22:08:03 +01:00
network.hpp feat(network): Ability to change speed unit text (B/s) (#2068) 2020-11-29 14:15:27 +01:00
pulseaudio.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
script.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
systray.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
temperature.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
text.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
unsupported.hpp Add dwm module to unsupported.hpp 2020-12-19 19:30:00 -05:00
xbacklight.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
xkeyboard.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
xwindow.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
xworkspaces.hpp fix(xworkspaces): Never swallow updates (#2275) 2020-12-05 23:28:48 +01:00