polybar-dwm/include/modules
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
..
meta Universal Visibility Action (#2320 cont'd) (#2426) 2021-07-07 21:43:49 +02:00
alsa.hpp module: Implement action router (#2336) 2021-01-04 10:25:52 +01:00
backlight.hpp feat(backlight): add use-actual-brightness option (#2380) 2021-02-16 10:02:33 +01:00
battery.hpp Add compiler warning for missing override specifier (#2341) 2021-01-04 10:38:43 +01:00
bspwm.hpp feat(bspwm): Option to scroll through occupied desktops only (#2428) 2021-05-13 12:59:13 +02: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 module: Implement action router (#2336) 2021-01-04 10:25:52 +01:00
fs.hpp Remove undefined behaviors and clean code (#1769) 2021-02-15 23:32:56 +01:00
github.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
i3.hpp feat(conf): Option to always show urgent workspaces in i3 (#2378) 2021-02-15 21:31:34 +01:00
ipc.hpp feat(ipc): allow receiving arbitrary text on IPC socket (#2463) 2021-07-11 20:42:28 +02:00
memory.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
menu.hpp module: Implement action router (#2336) 2021-01-04 10:25:52 +01:00
mpd.hpp module: Implement action router (#2336) 2021-01-04 10:25:52 +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 module: Implement action router (#2336) 2021-01-04 10:25:52 +01:00
script.hpp Add compiler warning for missing override specifier (#2341) 2021-01-04 10:38:43 +01:00
systray.hpp module: Implement action router (#2336) 2021-01-04 10:25:52 +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 Universal Visibility Action (#2320 cont'd) (#2426) 2021-07-07 21:43:49 +02:00
xbacklight.hpp Add compiler warning for missing override specifier (#2341) 2021-01-04 10:38:43 +01:00
xkeyboard.hpp Add compiler warning for missing override specifier (#2341) 2021-01-04 10:38:43 +01:00
xwindow.hpp Add compiler warning for missing override specifier (#2341) 2021-01-04 10:38:43 +01:00
xworkspaces.hpp fix(xworkspaces): Segfault for wrong _NET_CURRENT_DESKTOP 2021-03-03 22:34:38 +01:00