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 (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 use
12 these function, since no internal changes are needed other than to add the
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.c"`
18
19
20 Whenever I say `next/prev` I'm describing the function with argument `+1/-1`,
21 default and generally what you will use. Changing these do make a difference on
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 client,
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 view
30 the next/prev tag.
31 * **shiftboth** - move the active window to the next/prev tag and view it's new
32 tag.
33 * **shiftswaptags** - swaps "tags" (all the clients on it) with the next/prev
34 tag.
35
36 * helpers:
37 * **swaptags** - used on shiftswaptags, original code on [swaptags](../swaptags).
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 (the
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/branch/patches/dwm-shif-tools-6.2.diff)
48 * [shift-tools.c](shift-tools.c)
49 * [shift-tools-scratchpads.c](shift-tools-scratchpads.c)
50
51 Author
52 ------
53 * explosion-mental - <explosion0mental@gmail.com>