Modular status panel for X11 and Wayland, inspired by https://github.com/jaagr/polybar
Find a file
Daniel Eklöf 1f182b862e particle/progress-bar: allow user to configure an on-click handler
Since we're typically interrested in *where* (on the progress-bar) the
user clicked, we need a way to pass the clicked position to the
handler.

Normally, the on-click handler is expanded when a particle
instantiates its exposable. At this point, we (obviously) don't have
the click position.

This is solved by expanding the handler a second time, when the bar is
clicked.

Thus, the user can use the "{where}" tag in the click handler. "where"
will be expanded to a percentage value (0-100).
2018-12-29 17:36:34 +01:00
decorations decoration: stack: stacks multiple decorations on top of each other 2018-12-26 15:59:48 +01:00
modules tags: break out string formatting from particle/string 2018-12-29 17:03:41 +01:00
particles particle/progress-bar: allow user to configure an on-click handler 2018-12-29 17:36:34 +01:00
.gitignore initial commit: wip 2018-11-17 11:30:33 +01:00
bar.c bar: reset cursor and return when mouse is at a border 2018-12-29 17:13:38 +01:00
bar.h bar: set_cursor(): new interface function, to set the X cursor 2018-12-26 17:16:54 +01:00
CMakeLists.txt particle/progress-bar: renders a progrss-bar-like thingy 2018-12-27 14:22:05 +01:00
color.h initial commit: wip 2018-11-17 11:30:33 +01:00
config.c particle/progress-bar: allow user to configure an on-click handler 2018-12-29 17:36:34 +01:00
config.h initial commit: wip 2018-11-17 11:30:33 +01:00
decoration.h decoration: configurable graphical effects, added to a particle 2018-12-26 15:30:47 +01:00
font.c initial commit: wip 2018-11-17 11:30:33 +01:00
font.h initial commit: wip 2018-11-17 11:30:33 +01:00
log.c log: add LOG_ERRNO() 2018-12-19 21:01:01 +01:00
log.h log: add LOG_ERRNO() 2018-12-19 21:01:01 +01:00
main.c main: no need for EFD_NONBLOCK 2018-12-28 12:41:21 +01:00
module.c module: add a refresh_in() interface function 2018-12-28 12:42:08 +01:00
module.h module: re-order function pointer declarations 2018-12-29 12:49:25 +01:00
particle.c particle: refactor 2018-12-29 17:04:39 +01:00
particle.h particle: add an 'on_click_template' to base constructor. 2018-12-29 14:36:18 +01:00
tag.c tag: tags_expand_template(): return NULL if template is NULL 2018-12-29 17:10:54 +01:00
tag.h tags: break out string formatting from particle/string 2018-12-29 17:03:41 +01:00
tllist.h tllist: cast away const in tll_{r,}foreach() 2018-12-15 11:46:34 +01:00
xcb.c xcb: use new log framework 2018-12-17 20:25:27 +01:00
xcb.h xcb: add xcb_init(): checks the x server + extensions, and caches atoms 2018-11-17 11:47:34 +01:00
yml.c yml: support multiple merge values 2018-12-29 16:06:04 +01:00
yml.h initial commit: wip 2018-11-17 11:30:33 +01:00