index.md - sites - public wiki contents of suckless.org | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
index.md (1870B) | |
--- | |
1 shift-tools | |
2 =========== | |
3 | |
4 Description | |
5 ----------- | |
6 A group of functions that shift. Inspired by | |
7 [shiftview](https://lists.suckless.org/dev/1104/7590.html), | |
8 [focusadjacenttag](../focusadjacenttag) and [swaptags](../swaptags). | |
9 | |
10 | |
11 Usually you just `#include "shift-tools.c"` before the `keys[]` array to… | |
12 these function, since no internal changes are needed other than to add t… | |
13 keybindings to `config.h`. | |
14 | |
15 | |
16 There is also a [version](shift-tools-scratchpads.c) compatible with the | |
17 [scratchpads](../scratchpads) patch: `#include "shift-tools-scratchpads.… | |
18 | |
19 | |
20 Whenever I say `next/prev` I'm describing the function with argument `+1… | |
21 default and generally what you will use. Changing these do make a differ… | |
22 how many tags the function should `shift`. | |
23 | |
24 | |
25 * **shifttag** - send a window to the next/prev tag. | |
26 * **shifttagclients** - send a window to the next/prev tag that has a cl… | |
27 else it moves it to the next/prev one. | |
28 * **shiftview** - view the next/prev tag. | |
29 * **shiftviewclients** - view the next/prev tag that has a client, else … | |
30 the next/prev tag. | |
31 * **shiftboth** - move the active window to the next/prev tag and view i… | |
32 tag. | |
33 * **shiftswaptags** - swaps "tags" (all the clients on it) with the next… | |
34 tag. | |
35 | |
36 * helpers: | |
37 * **swaptags** - used on shiftswaptags, original code on [swapta… | |
38 * **shift** - shift bits in acordance to the LENGTH of the `tags… | |
39 | |
40 | |
41 Remember that these functions _shift_, which means you can go from tag 1… | |
42 first tag) to 9 (or whatever is your last tag). | |
43 | |
44 Download | |
45 -------- | |
46 * [dwm-shif-tools-6.2.diff](dwm-shif-tools-6.2.diff) | |
47 * [codeberg mirror](https://codeberg.org/explosion-mental/demwm/src/bran… | |
48 * [shift-tools.c](shift-tools.c) | |
49 * [shift-tools-scratchpads.c](shift-tools-scratchpads.c) | |
50 | |
51 Author | |
52 ------ | |
53 * explosion-mental - <[email protected]> |