index.md - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
index.md (985B)
---
1 fsignal
2 =======
3
4 Description
5 -----------
6 Send "fake signals" to dwm for handling, using xsetroot. This will not conflict
7 with the status bar, which also is managed using xsetroot.
8
9 Usage areas can for example be setting layout through dmenu, or other external
10 applications.
11
12 Usage
13 -----
14 A signal can be sent for example in this way `xsetroot -name "fsignal:1"` to
15 send the signal '1'.
16
17 Signal handlers are defined in config.h as:
18
19 static Signal signals[] = {
20 /* signum function argument*/
21 { 1, setlayout, {.v = 0} },
22 ...
23 };
24
25 This can then be triggered through dmenu with this script:
26
27 #!/bin/bash
28 layouts="echo -e tiled\ncolumns\n..."
29 layout=$($layouts | dmenu "$@")
30
31 if [[ "$layout" == "tiled" ]];then xsetroot -name "fsignal:1"; fi
32 ...
33
34 ...or however you want to use it :)
35
36 Download
37 --------
38 * [dwm-fsignal-6.2.diff](dwm-fsignal-6.2.diff)
39
40 Authors
41 -------
42 * Chris Noxz - <chris@noxz.tech>
43 * Nihal Jere <nihal@nihaljere.xyz>