polybar-dwm/include
Vincent Bernat 5f3462240c
feat(ipc): allow receiving arbitrary text on IPC socket (#2463)
This adds the 'send' action to the ipc module that can be used to send arbitrary text to the module:

    polybar-msg action "#ipc.send.%{F#4444ff}hello%{F-}"

* feat(ipc): allow receiving arbitrary text on IPC socket

Instead of just allowing hook numbers to be executed, the user can
send arbitrary text and the IPC module will put it in the bar. The IPC
payload format is extended to accept an arbitrary string if the first
character after the module name is ':'.

    polybar-msg hook test :'%{F#4444ff}hello%{F-}'

Fix #2455

* Use actions for sending data to ipc module

* ipc: Don't use exceptions when no hooks are defined

* Update src/modules/ipc.cpp

Co-authored-by: patrick96 <p.ziegler96@gmail.com>
2021-07-11 20:42:28 +02:00
..
adapters feat(net): interface discovery (#2025) 2021-01-03 11:48:15 +01:00
cairo Fixed issues with border corner radii 2021-03-29 20:17:48 +02:00
components Universal Visibility Action (#2320 cont'd) (#2426) 2021-07-07 21:43:49 +02:00
drawtypes feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
events Remove tag headers from signal.hpp 2021-02-12 20:01:22 +01:00
modules feat(ipc): allow receiving arbitrary text on IPC socket (#2463) 2021-07-11 20:42:28 +02:00
tags Finish action_context tests 2021-02-12 20:01:22 +01:00
utils fix: unbounded_percentage always rounded down 2021-03-03 22:48:17 +01:00
x11 Remove undefined behaviors and clean code (#1769) 2021-02-15 23:32:56 +01:00
CMakeLists.txt refactor(cmake): Allow targets to be enabled individually 2020-12-24 02:20:38 +01: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 cmake: Make xrandr and xcomposite required 2020-12-22 00:37:07 +01:00