Commit Graph

78 Commits

Author SHA1 Message Date
mihirlad55
4a230d362a [PATCH] Add IPC support through a unix socket
This patch currently supports the following requests:
* Run custom commands with arguments (similar to key bind functions)
* Get monitor properties
* Get all available layouts
* Get available tags
* Get client properties
* Subscribe to tag change, client focus change, and layout change,
  monitor focus change, focused title change, and client state change
  events

This patch includes a dwm-msg cli program that supports all of the
above requests for easy integration into shell scripts.

The messages are sent in a JSON format to promote integration to
increase scriptability in languages like Python/JavaScript.

The patch requires YAJL for JSON parsing and a system with epoll
support. Portability is planned to be increased in the future.

This patch is best applied after all other patches to avoid merge
conflicts.

For more info on the IPC implementation and how to send/receive
messages, documentation can be found at
https://github.com/mihirlad55/dwm-ipc
2023-08-04 21:33:07 +02:00
f8030a0859 Add makefile target for reloading dwm 2021-09-27 22:26:48 +02:00
Hiltjo Posthuma
e78b4a9207 Makefile: just show the compiler output
Don't be fancy and just show the actual output so debugging is simpler.
2018-06-02 17:10:28 +02:00
Hiltjo Posthuma
10dfa65860 remove old TODO and BUGS entries
the bug in the dwm man page is an (ancient) Java issue.

Thanks David and quinq for the patches and feedback!
2018-05-12 19:14:19 +02:00
Hiltjo Posthuma
42cf1c7d8f Makefile: package all files with make dist 2015-11-08 16:52:53 +01:00
Anselm R Garbe
f2544a3318 renamed draw into drw 2013-04-17 21:21:47 +02:00
Anselm R Garbe
f21d46ea7d continued with draw.c abstraction, also started util.{h,c} implementation, that will be used by draw.c as well 2012-12-08 10:13:01 +01:00
anselm@garbe.us
d456617f0e basic draw.c structure 2012-11-18 12:04:29 +01:00
anselm@anselm1
f806a17692 reverted dist target in Makefile 2008-05-19 20:08:31 +01:00
Anselm R Garbe
14d8d828ab removed the exact focus mechanism of next/prev window 2008-05-17 14:41:41 +01:00
anselm@anselm1
d26c28c1e7 this is the correct way 2008-04-20 19:09:30 +01:00
anselm@anselm1
b6335776e4 copyright notice is in LICENSE 2008-04-20 19:09:00 +01:00
Anselm R Garbe
d477fb6927 some cleanup changes 2008-04-03 14:38:58 +01:00
Anselm R Garbe
95eae7b9d2 removed all defines of geoms, implemented setgeoms() instead, added config.anselm.h to show how I'd like to see that people edit their geoms 2008-03-13 10:11:02 +00:00
arg@suckless.org
e94774dd69 thx to Toni Lainson 2007-10-19 09:56:51 +02:00
arg@suckless.org
cd7ebaad25 removed dwm.h, just include C-files in config.h if you extend dwm, that's simplier and most flexible than all other possibilities 2007-10-18 10:28:41 +02:00
Anselm R. Garbe
0453c1d180 recreated dwm.h 2007-10-11 20:47:34 +02:00
Anselm R. Garbe
17d39ee014 renamed config.h into config.def.h, config.h will be created if not present, this seems less annoying after all 2007-09-23 11:24:12 +02:00
arg@suckless.org
fe2775a15b made all stuff non-static - so you can choose wether to use dwm the static or the extern way when extending it 2007-09-17 16:42:37 +02:00
Anselm R. Garbe
0235a84ef2 micromizing dwm step 1 2007-09-15 22:25:27 +02:00
Anselm R. Garbe
7e476fb86b moved bar-related stuff to bar.c (merged draw.c into that) 2007-09-15 13:16:54 +02:00
Anselm R. Garbe
5d831eaa94 renamed config.default.h into config.h 2007-09-15 10:35:18 +02:00
Anselm R. Garbe
e0a6dee30d dist target only needs to add config.default.h 2007-09-15 10:31:28 +02:00
Anselm R. Garbe
47765f7286 added screen.c, removed layout.c and tag.c 2007-08-19 10:57:02 +02:00
Anselm R. Garbe
10d13f01ff fififi 2007-08-15 19:27:32 +02:00
Anselm R. Garbe
2d81b78b85 separated layout-specific stuff into separate .h and .c files which are included in config.h resp. config.mk - this allows writing layouts for dwm without any need to patch existing code 2007-08-11 12:11:50 +02:00
Anselm R. Garbe
b896b58d6d removed strip, added -s to LDFLAGS 2007-05-15 13:44:04 +02:00
Anselm R. Garbe
a730213c3b yet another fix of copyright compactisition 2007-04-13 11:40:09 +02:00
Anselm R. Garbe
ad4962c7eb fixed quoting and a comment 2007-02-21 11:04:33 +01:00
Anselm R. Garbe
e7508783e8 added draw.c again (except getcolor and setfont which are helpers in main.c) 2007-02-20 13:46:21 +01:00
Anselm R. Garbe
8012fcf333 split screen.c into layout.c and tag.c (because the view is an implicit mixture of both) 2007-02-20 10:49:53 +01:00
Anselm R. Garbe
f8415019d4 draw.c is useless (belongs to main.c now) 2007-02-19 15:17:31 +01:00
Anselm R. Garbe
238dd5d2b1 renamed view.c into screen.c 2007-02-19 15:05:29 +01:00
Anselm R. Garbe
4cdbd523e5 merged tag.c, view.c and tile.c to manage.c 2007-02-19 14:44:05 +01:00
Anselm R. Garbe
5cc27f1b3c introduced tile.c, some refactoring of functions 2007-02-19 13:00:29 +01:00
Anselm R. Garbe
8fcd1bfda8 fixed copyright notice in Makefile 2007-02-08 14:09:52 +01:00
Anselm R. Garbe
3d48f33025 got rid of LD (inspired by JGs patch to wmii) 2007-02-05 11:09:53 +01:00
arg@mig29
cb4aa5bc35 next version will contain updated copyright notice 2007-01-02 15:37:58 +01:00
Anselm R. Garbe
aa13727067 separated several functions into view.c 2006-08-22 16:50:21 +02:00
Anselm R.Garbe
d26ffc7fa3 removed finished message 2006-08-14 16:11:54 +02:00
Anselm R.Garbe
95766d6241 applied Sanders LD and resize patches 2006-08-14 08:43:19 +02:00
Anselm R.Garbe
42277b1110 applied Sanders tiny patches 2006-08-08 09:30:45 +02:00
arg@10ksloc.org
d9386a0c07 typo fix 2006-08-07 11:58:46 +02:00
arg@10ksloc.org
66e16c92d3 applied Sanders man page/Makefile patch 2006-08-07 11:57:05 +02:00
arg@10ksloc.org
82064af2d7 added stripping to dwm target in Makefile 2006-08-07 08:46:11 +02:00
arg@10ksloc.org
99b126d0af removed CONFIG 2006-08-03 17:08:43 +02:00
arg@10ksloc.org
a2d56f6dce make config.h not a time dependence 2006-08-03 15:36:13 +02:00
arg@10ksloc.org
db876f9fb0 removed rm config.h from clean 2006-08-03 15:29:28 +02:00
arg@10ksloc.org
05a618b06e added gmake compliance 2006-08-03 15:21:08 +02:00
arg@10ksloc.org
bba044de4f applied Jukka's diff 2006-08-03 15:05:34 +02:00