annotate config.h @ 787:eecb13b34511 default tip

Put floating windows on random starting positions
author markus schnalke <meillo@marmaro.de>
date Fri, 18 Oct 2024 23:42:20 +0200
parents 5fa2cf6026e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
2 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
3 * See LICENSE file for license details.
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
4 */
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
5
766
3f7c68a720b5 undone naming change: "group" is "tag" again (but without plural)
meillo@marmaro.de
parents: 765
diff changeset
6 #define NAMETAGGED "Das Alles"
3f7c68a720b5 undone naming change: "group" is "tag" again (but without plural)
meillo@marmaro.de
parents: 765
diff changeset
7 #define NAMEUNTAGGED "Das Nichts"
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
8
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
9 #define BORDERPX 1
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
10 #define DEFMODE domax /* dotile */
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
11
780
257703c696b4 larger font and keybinding for slock
meillo@marmaro.de
parents: 779
diff changeset
12 #define FONT "-*-terminus-medium-*-*-*-19-*-*-*-*-*-*-*"
781
1ec698ca43c5 added sxiv
markus schnalke <meillo@marmaro.de>
parents: 780
diff changeset
13 /*#define FONT "fixed"*/
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
14 #define NORMBGCOLOR "#333333"
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
15 #define NORMFGCOLOR "#bbbbbb"
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
16 #define SELBGCOLOR "#eec900"
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
17 #define SELFGCOLOR "#000000"
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
18
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
19 #define MODKEY Mod1Mask
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
20 #define NMASTER 1 /* clients in master area */
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
21 #define SNAP 5 /* pixel */
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
22
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
23 #define KEYS \
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
24 static Key key[] = { \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
25 /* modifier key function argument */ \
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
26 { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, \
782
f1e806b34697 created separated floating space; added per space mode
markus schnalke <meillo@marmaro.de>
parents: 781
diff changeset
27 { MODKEY, XK_F1, toggleview, "" }, \
f1e806b34697 created separated floating space; added per space mode
markus schnalke <meillo@marmaro.de>
parents: 781
diff changeset
28 { MODKEY, XK_F2, toggleview, "" }, \
f1e806b34697 created separated floating space; added per space mode
markus schnalke <meillo@marmaro.de>
parents: 781
diff changeset
29 { MODKEY, XK_F3, floattoggle, "" }, \
785
5fa2cf6026e8 Reordered lines in config.h; removed 3s delay for shutdown.
markus schnalke <meillo@marmaro.de>
parents: 782
diff changeset
30 { MODKEY|ShiftMask, XK_F4, spawn, "sudo /sbin/shutdown -h now" }, \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
31 { MODKEY, XK_Tab, focusnext, "" }, \
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
32 { MODKEY, XK_asciicircum, spawn, "dmenu_run -fn '"FONT"' "\
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
33 "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
34 { MODKEY, XK_1, zoom, "" }, \
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
35 { MODKEY, XK_2, killclient, "" }, \
785
5fa2cf6026e8 Reordered lines in config.h; removed 3s delay for shutdown.
markus schnalke <meillo@marmaro.de>
parents: 782
diff changeset
36 { MODKEY, XK_3, toggletag, "" }, \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
37 { MODKEY|ShiftMask, XK_q, quit, "" }, \
780
257703c696b4 larger font and keybinding for slock
meillo@marmaro.de
parents: 779
diff changeset
38 { MODKEY|ShiftMask, XK_x, spawn, "exec slock" }, \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
39 { MODKEY, XK_space, togglemode, "" }, \
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
40 { MODKEY|ShiftMask, XK_space, togglefloat, "" }, \
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
41 { MODKEY, XK_plus, incnmaster, "" }, \
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
42 { MODKEY, XK_minus, decnmaster, "" }, \
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
43 };
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
44
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
45 /* Query class:instance:title for regex matching info with following command:
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
46 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
47 #define RULES \
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
48 static Rule rule[] = { \
767
706991d15451 removed rexexp for old strstr matching; simplifications
meillo@marmaro.de
parents: 766
diff changeset
49 /* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
769
49aa8ccceefa cleanups in domax and more
meillo@marmaro.de
parents: 767
diff changeset
50 { "URxvt", NULL, NULL, 0, False }, \
49aa8ccceefa cleanups in domax and more
meillo@marmaro.de
parents: 767
diff changeset
51 { "MPlayer", NULL, NULL, -1, True }, \
781
1ec698ca43c5 added sxiv
markus schnalke <meillo@marmaro.de>
parents: 780
diff changeset
52 { "sxiv", NULL, NULL, -1, False }, \
779
6f7f86762e0e changed some whitespace
meillo@marmaro.de
parents: 769
diff changeset
53 { NULL, NULL, "qiv", -1, False }, \
769
49aa8ccceefa cleanups in domax and more
meillo@marmaro.de
parents: 767
diff changeset
54 { "Gimp", NULL, NULL, 1, True }, \
49aa8ccceefa cleanups in domax and more
meillo@marmaro.de
parents: 767
diff changeset
55 { "", "", "", 1, False }, \
765
f1d4bc4afcd9 why is config.h not versioned ... it should be. Now it is
meillo@marmaro.de
parents:
diff changeset
56 };