From b93a5de5587432f21a850c2e86f8478433c30c8e Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 13 Aug 2022 16:24:48 +0200 Subject: [PATCH] Expose showhideclient to external tools (fsignal, IPC) ref #287 --- config.def.h | 6 ++++++ patch/dwmc | 1 + 2 files changed, 7 insertions(+) diff --git a/config.def.h b/config.def.h index a65e08dc..cfe41db0 100644 --- a/config.def.h +++ b/config.def.h @@ -1470,6 +1470,9 @@ static Signal signals[] = { { "viewall", viewallex }, { "viewex", viewex }, { "toggleview", toggleview }, + #if BAR_WINTITLEACTIONS_PATCH + { "showhideclient", showhideclient }, + #endif // BAR_WINTITLEACTIONS_PATCH #if SHIFTBOTH_PATCH { "shiftboth", shiftboth }, #endif // SHIFTBOTH_PATCH @@ -1673,6 +1676,9 @@ static IPCCommand ipccommands[] = { #if SETBORDERPX_PATCH IPCCOMMAND( setborderpx, 1, {ARG_TYPE_SINT} ), #endif // SETBORDERPX_PATCH + #if BAR_WINTITLEACTIONS_PATCH + IPCCOMMAND( showhideclient, 1, {ARG_TYPE_NONE} ), + #endif // BAR_WINTITLEACTIONS_PATCH #if SHIFTBOTH_PATCH IPCCOMMAND( shiftboth, 1, {ARG_TYPE_SINT} ), #endif // SHIFTBOTH_PATCH diff --git a/patch/dwmc b/patch/dwmc index 763927c9..c2ddbe89 100755 --- a/patch/dwmc +++ b/patch/dwmc @@ -16,6 +16,7 @@ case $# in self_restart) ;& setlayout) ;& setcfact) ;& + showhideclient) ;& switchcol) ;& view) ;& viewall) ;&