bc16268d30
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. |
||
---|---|---|
.. | ||
meta | ||
alsa.hpp | ||
backlight.hpp | ||
battery.hpp | ||
bspwm.hpp | ||
counter.hpp | ||
cpu.hpp | ||
date.hpp | ||
dwm.hpp | ||
fs.hpp | ||
github.hpp | ||
i3.hpp | ||
ipc.hpp | ||
memory.hpp | ||
menu.hpp | ||
mpd.hpp | ||
network.hpp | ||
pulseaudio.hpp | ||
script.hpp | ||
systray.hpp | ||
temperature.hpp | ||
text.hpp | ||
unsupported.hpp | ||
xbacklight.hpp | ||
xkeyboard.hpp | ||
xwindow.hpp | ||
xworkspaces.hpp |