-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdusk_config.h
858 lines (807 loc) · 70.4 KB
/
dusk_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 5; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int gappih = 5; /* horiz inner gap between windows */
static const unsigned int gappiv = 5; /* vert inner gap between windows */
static const unsigned int gappoh = 5; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 5; /* vert outer gap between windows and screen edge */
static const unsigned int gappfl = 5; /* gap between floating windows (when relevant) */
static const unsigned int smartgaps_fact = 0; /* smartgaps factor when there is only one client; 0 = no gaps, 3 = 3x outer gaps */
static unsigned int attachdefault = AttachAside; // AttachMaster, AttachAbove, AttachAside, AttachBelow, AttachBottom
static const int initshowbar = 1; /* 0 means no bar */
static const int bar_height = 14; /* 0 means derive from font, >= 1 explicit height */
static const int vertpad = borderpx; /* vertical (outer) padding of bar */
static const int sidepad = borderpx; /* horizontal (outer) padding of bar */
static const int iconsize = 16; /* icon size */
static const int iconspacing = 5; /* space between icon and title */
static const int scalepreview = 4; /* size of workspace previews compared to monitor size */
static int floatposgrid_x = 5; /* float grid columns */
static int floatposgrid_y = 5; /* float grid rows */
static const int horizpadbar = 2; /* horizontal (inner) padding for statusbar (increases lrpad) */
static const int vertpadbar = 0; /* vertical (inner) padding for statusbar (increases bh, overridden by bar_height) */
static const char slopspawnstyle[] = "-t 0 -c 0.92,0.85,0.69,0.3 -o"; /* do NOT define -f (format) here */
static const char slopresizestyle[] = "-t 0 -c 0.92,0.85,0.69,0.3"; /* do NOT define -f (format) here */
static const unsigned int systrayspacing = 2; /* systray spacing */
static const char *toggle_float_pos = "50% 50% 80% 80%"; // default floating position when triggering togglefloating
static const double defaultopacity = 0; /* client default opacity, e.g. 0.75. 0 means don't apply opacity */
static const double moveopacity = 0; /* client opacity when being moved, 0 means don't apply opacity */
static const double resizeopacity = 0; /* client opacity when being resized, 0 means don't apply opacity */
static const double placeopacity = 0; /* client opacity when being placed, 0 means don't apply opacity */
/* Indicators: see lib/bar_indicators.h for options */
static int wsindicatortype = INDICATOR_BOTTOM_BAR_SLIM;
static int wspinnedindicatortype = INDICATOR_NONE;
static int fakefsindicatortype = INDICATOR_PLUS;
static int floatfakefsindicatortype = INDICATOR_PLUS_AND_LARGER_SQUARE;
static int floatindicatortype = INDICATOR_TOP_LEFT_LARGER_SQUARE;
static int tiledindicatortype = INDICATOR_NONE;
/* Custom indicators using status2d markup, e.g. enabled via INDICATOR_CUSTOM_3 */
static char *custom_2d_indicator_1 = "^c#00A523^^r0,h,w,2^"; // green underline
static char *custom_2d_indicator_2 = "^c#55cdfc^^r3,3,4,4^^c#E72608^^r4,4,2,2^"; // blue rectangle
static char *custom_2d_indicator_3 = "^f-10^^c#E72608^𐄛"; // example using a character as an indicator
static char *custom_2d_indicator_4 = "^c#E26F0B^^r0,h,w,1^^r0,0,1,h^^r0,0,w,1^^rw,0,1,h^"; // orange box
static char *custom_2d_indicator_5 = "^c#CB9700^^r0,h,w,1^^r0,0,w,1^"; // top and bottom lines
static char *custom_2d_indicator_6 = "^c#F0A523^^r6,2,1,-4^^r-6,2,1,-4^"; // orange vertical bars
/* The below are only used if the WorkspaceLabels functionality is enabled */
static char *occupied_workspace_label_format = "%s: %s"; /* format of a workspace label */
static char *vacant_workspace_label_format = "%s"; /* format of an empty / vacant workspace */
static int lowercase_workspace_labels = 1; /* whether to change workspace labels to lower case */
/* See util.h for options */
static unsigned long functionality = 0
// |AutoReduceNmaster // automatically reduce the number of master clients if one is closed
// |SmartGaps // enables no or increased gaps if there is only one visible window
// |SmartGapsMonocle // enforces no gaps in monocle layout
|Systray // enables a systray in the bar
// |SystrayNoAlpha // disables the use of transparency for the systray, enable if you do not use a compositor
|Swallow // allows terminals to swallow X applications started from the command line
|SwallowFloating // means swallow floating windows by default
|CenteredWindowName // center the window titles on the bar
// |BarActiveGroupBorderColor // use border color of active group, otherwise title scheme is used
|BarMasterGroupBorderColor // use border color of master group, otherwise title scheme is used
|FlexWinBorders // use the SchemeFlex* color schemes, falls back to SchemeTitle* if disabled
|SpawnCwd // spawn applications in the currently selected client's working directory
|ColorEmoji // enables color emoji support (removes Xft workaround)
// |Status2DNoAlpha // option to not use alpha when drawing status2d status
|BarBorder // draw a border around the bar
|BarPadding // add vertical and side padding as per vertpad and sidepad variables above
// |NoBorders // as per the noborder patch, show no border when only one client in tiled mode
// |Warp // warp cursor to currently focused window
// |FocusedOnTop // allows focused window to stay on top of other windows
// |DecorationHints // omit drawing the window border if the applications asks not to
|FocusOnNetActive // allow windows demanding attention to receive focus automatically
|AllowNoModifierButtons // allow some window operations, like move and resize, to work without having to hold down a modifier key
|CenterSizeHintsClients // center tiled clients subject to size hints within their tiled area
// |ResizeHints // respect size hints also when windows are tiled
|SnapToWindows // snap to windows when moving floating clients
// |SortScreens // monitors are numbered from left to right
|ViewOnWs // follow a window to the workspace it is being moved to
|Xresources // add support for changing colours via Xresources
|Debug // enables additional debug output
// |AltWorkspaceIcons // show the workspace name instead of the icons
// |GreedyMonitor // disables swap of workspaces between monitors
|SmartLayoutConvertion // automatically adjust layout based on monitor orientation when moving a workspace from one monitor to another
// |AutoHideScratchpads // automatically hide open scratchpads when moving to another workspace
// |RioDrawIncludeBorders // indicates whether the area drawn using slop includes the window borders
// |RioDrawSpawnAsync // spawn the application alongside rather than after drawing area using slop
// |RestrictFocusstackToMonitor // restrict focusstack to only operate within the monitor, otherwise focus can drift between monitors
// |WinTitleIcons // adds application icons to window titles in the bar
|WorkspaceLabels // adds the class of the master client next to the workspace icon
// |WorkspacePreview // adds preview images when hovering workspace icons in the bar
;
static int flexwintitle_masterweight = 15; // master weight compared to hidden and floating window titles
static int flexwintitle_stackweight = 4; // stack weight compared to hidden and floating window titles
static int flexwintitle_hiddenweight = 0; // hidden window title weight
static int flexwintitle_floatweight = 0; // floating window title weight, set to 0 to not show floating windows
static int flexwintitle_separator = 0; // width of client separator
static const char *fonts[] = { "JetBrainsMono Nerd Font","Noto Color Emoji:style=Regular:size=14" };
static const char dmenufont[] = "monospace:size=14";
static char dmenunormfgcolor[] = "#BE89AE";
static char dmenunormbgcolor[] = "#180A13";
static char dmenuselfgcolor[] = "#FFF7D4";
static char dmenuselbgcolor[] = "#440000";
static const unsigned int baralpha = 0xc0;
static const unsigned int borderalpha = OPAQUE;
static const unsigned int alphas[][3] = {
/* fg bg border */
[SchemeNorm] = { OPAQUE, baralpha, borderalpha },
[SchemeSel] = { OPAQUE, baralpha, borderalpha },
[SchemeTitleNorm] = { OPAQUE, baralpha, borderalpha },
[SchemeTitleSel] = { OPAQUE, baralpha, borderalpha },
[SchemeWsNorm] = { OPAQUE, baralpha, borderalpha },
[SchemeWsVisible] = { OPAQUE, baralpha, borderalpha },
[SchemeWsSel] = { OPAQUE, baralpha, borderalpha },
[SchemeWsOcc] = { OPAQUE, baralpha, borderalpha },
[SchemeHidNorm] = { OPAQUE, baralpha, borderalpha },
[SchemeHidSel] = { OPAQUE, baralpha, borderalpha },
[SchemeUrg] = { OPAQUE, baralpha, borderalpha },
[SchemeMarked] = { OPAQUE, baralpha, borderalpha },
[SchemeScratchSel] = { OPAQUE, baralpha, borderalpha },
[SchemeScratchNorm] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActTTB] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActLTR] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActMONO] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActGRID] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActGRIDC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActGRD1] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActGRD2] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActGRDM] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActHGRD] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActDWDL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActDWDLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActSPRL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActSPRLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActTTMI] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActTTMIC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexActFloat] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaTTB] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaLTR] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaMONO] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaGRID] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaGRIDC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaGRD1] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaGRD2] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaGRDM] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaHGRD] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaDWDL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaDWDLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaSPRL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaSPRLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaTTMI] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaTTMIC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexInaFloat] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelTTB] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelLTR] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelMONO] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelGRID] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelGRIDC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelGRD1] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelGRD2] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelGRDM] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelHGRD] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelDWDL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelDWDLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelSPRL] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelSPRLC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelTTMI] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelTTMIC] = { OPAQUE, baralpha, borderalpha },
[SchemeFlexSelFloat] = { OPAQUE, baralpha, borderalpha },
};
static char *colors[SchemeLast][ColCount] = {
/* fg bg border resource prefix */
[SchemeNorm] = { "#BE89AE", "#180A13", "#444444", "norm" },
[SchemeSel] = { "#FFF7D4", "#440000", "#440000", "sel" },
[SchemeTitleNorm] = { "#C6BDBD", "#180A13", "#180A13", "titlenorm" },
[SchemeTitleSel] = { "#FFF7D4", "#440000", "#440000", "titlesel" },
[SchemeWsNorm] = { "#BE89AE", "#180A13", "#000000", "wsnorm" },
[SchemeWsVisible] = { "#BE89AE", "#5E294B", "#000000", "wsvis" },
[SchemeWsSel] = { "#D8B2CD", "#6F3A5C", "#000000", "wssel" },
[SchemeWsOcc] = { "#BE89AE", "#180A13", "#000000", "wsocc" },
[SchemeHidNorm] = { "#c278b6", "#222222", "#000000", "hidnorm" },
[SchemeHidSel] = { "#D288C6", "#111111", "#000000", "hidsel" },
[SchemeUrg] = { "#bbbbbb", "#222222", "#d10f3f", "urg" },
[SchemeMarked] = { "#615656", "#ECB820", "#ECB820", "marked" },
[SchemeScratchNorm] = { "#FFF7D4", "#664C67", "#77547E", "scratchnorm" },
[SchemeScratchSel] = { "#FFF7D4", "#77547E", "#894B9F", "scratchsel" },
[SchemeFlexActTTB] = { "#FFF7D4", "#440000", "#440000", "actTTB" },
[SchemeFlexActLTR] = { "#FFF7D4", "#440044", "#440044", "actLTR" },
[SchemeFlexActMONO] = { "#FFF7D4", "#000044", "#000044", "actMONO" },
[SchemeFlexActGRID] = { "#FFF7D4", "#004400", "#004400", "actGRID" },
[SchemeFlexActGRIDC] = { "#FFF7D4", "#004400", "#004400", "actGRIDC" },
[SchemeFlexActGRD1] = { "#FFF7D4", "#004400", "#004400", "actGRD1" },
[SchemeFlexActGRD2] = { "#FFF7D4", "#004400", "#004400", "actGRD2" },
[SchemeFlexActGRDM] = { "#FFF7D4", "#507711", "#507711", "actGRDM" },
[SchemeFlexActHGRD] = { "#FFF7D4", "#b97711", "#b97711", "actHGRD" },
[SchemeFlexActDWDL] = { "#FFF7D4", "#004444", "#004444", "actDWDL" },
[SchemeFlexActDWDLC] = { "#FFF7D4", "#004444", "#004444", "actDWDLC" },
[SchemeFlexActSPRL] = { "#FFF7D4", "#444400", "#444400", "actSPRL" },
[SchemeFlexActSPRLC] = { "#FFF7D4", "#444400", "#444400", "actSPRLC" },
[SchemeFlexActTTMI] = { "#FFF7D4", "#B81616", "#B81616", "actTTMI" },
[SchemeFlexActTTMIC] = { "#FFF7D4", "#B81616", "#B81616", "actTTMIC" },
[SchemeFlexActFloat] = { "#FFF7D4", "#4C314C", "#4C314C", "actfloat" },
[SchemeFlexInaTTB] = { "#C6BDBD", "#330000", "#330000", "normTTB" },
[SchemeFlexInaLTR] = { "#C6BDBD", "#330033", "#330033", "normLTR" },
[SchemeFlexInaMONO] = { "#C6BDBD", "#000033", "#000033", "normMONO" },
[SchemeFlexInaGRID] = { "#C6BDBD", "#003300", "#003300", "normGRID" },
[SchemeFlexInaGRIDC] = { "#C6BDBD", "#003300", "#003300", "normGRIDC" },
[SchemeFlexInaGRD1] = { "#C6BDBD", "#003300", "#003300", "normGRD1" },
[SchemeFlexInaGRD2] = { "#C6BDBD", "#003300", "#003300", "normGRD2" },
[SchemeFlexInaGRDM] = { "#C6BDBD", "#506600", "#506600", "normGRDM" },
[SchemeFlexInaHGRD] = { "#C6BDBD", "#b96600", "#b96600", "normHGRD" },
[SchemeFlexInaDWDL] = { "#C6BDBD", "#003333", "#003333", "normDWDL" },
[SchemeFlexInaDWDLC] = { "#C6BDBD", "#003333", "#003333", "normDWDLC" },
[SchemeFlexInaSPRL] = { "#C6BDBD", "#333300", "#333300", "normSPRL" },
[SchemeFlexInaSPRLC] = { "#C6BDBD", "#333300", "#333300", "normSPRLC" },
[SchemeFlexInaTTMI] = { "#C6BDBD", "#B32727", "#B32727", "normTTMI" },
[SchemeFlexInaTTMIC] = { "#C6BDBD", "#B32727", "#B32727", "normTTMIC" },
[SchemeFlexInaFloat] = { "#C6BDBD", "#4C314C", "#4C314C", "normfloat" },
[SchemeFlexSelTTB] = { "#FFF7D4", "#550000", "#550000", "selTTB" },
[SchemeFlexSelLTR] = { "#FFF7D4", "#550055", "#550055", "selLTR" },
[SchemeFlexSelMONO] = { "#FFF7D4", "#212171", "#212171", "selMONO" },
[SchemeFlexSelGRID] = { "#FFF7D4", "#005500", "#005500", "selGRID" },
[SchemeFlexSelGRIDC] = { "#FFF7D4", "#005500", "#005500", "selGRIDC" },
[SchemeFlexSelGRD1] = { "#FFF7D4", "#005500", "#005500", "selGRD1" },
[SchemeFlexSelGRD2] = { "#FFF7D4", "#005500", "#005500", "selGRD2" },
[SchemeFlexSelGRDM] = { "#FFF7D4", "#508822", "#508822", "selGRDM" },
[SchemeFlexSelHGRD] = { "#FFF7D4", "#b98822", "#b98822", "selHGRD" },
[SchemeFlexSelDWDL] = { "#FFF7D4", "#005555", "#005555", "selDWDL" },
[SchemeFlexSelDWDLC] = { "#FFF7D4", "#005555", "#005555", "selDWDLC" },
[SchemeFlexSelSPRL] = { "#FFF7D4", "#555500", "#555500", "selSPRL" },
[SchemeFlexSelSPRLC] = { "#FFF7D4", "#555500", "#555500", "selSPRLC" },
[SchemeFlexSelTTMI] = { "#FFF7D4", "#C91717", "#C91717", "selTTMI" },
[SchemeFlexSelTTMIC] = { "#FFF7D4", "#C91717", "#C91717", "selTTMIC" },
[SchemeFlexSelFloat] = { "#FFF7D4", "#5C415C", "#5C415C", "selfloat" },
};
static const char *const autostart[] = {
// "st", NULL,
NULL /* terminate */
};
/* There are two options when it comes to per-client rules:
* - a traditional struct table or
* - specifying the fields used
*
* A traditional struct table looks like this:
* // class role instance title wintype opacity flags floatpos scratchkey workspace
* { "Gimp", NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, "4" },
* { "Firefox", NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, "9" },
*
* Alternatively you can specify the fields that are relevant to your rule, e.g.
*
* { .class = "Gimp", .workspace = "5" },
* { .class = "Firefox", .workspace = "9" },
*
* Any fields that you do not specify will default to 0 or NULL.
*
* Refer to the Rule struct definition for the list of available fields.
*/
static const Rule clientrules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
* WM_WINDOW_ROLE(STRING) = role
* _NET_WM_WINDOW_TYPE(ATOM) = wintype
*/
{ .wintype = WTYPE "DESKTOP", .flags = Unmanaged|Lower },
{ .wintype = WTYPE "DOCK", .flags = Unmanaged|Raise },
{ .wintype = WTYPE "DIALOG", .flags = AlwaysOnTop|Centered|Floating },
{ .wintype = WTYPE "UTILITY", .flags = AlwaysOnTop|Centered|Floating },
{ .wintype = WTYPE "TOOLBAR", .flags = AlwaysOnTop|Centered|Floating },
{ .wintype = WTYPE "SPLASH", .flags = AlwaysOnTop|Centered|Floating },
{ .instance = "spterm (w)", .scratchkey = 'w', .flags = Floating },
{ .instance = "spterm (e)", .scratchkey = 'e', .flags = Floating },
// { .instance = "spacefm", .scratchkey = 'e', .flags = Floating },
{ .instance = "spfm (r)", .scratchkey = 'r', .flags = Floating },
// { .class = "Spacefm", .scratchkey = 't', .workspace = "7", .floatpos = "80% 80%", .flags = Centered|Floating|SemiScratchpad },
{ .class = "Spacefm", .scratchkey = 't', .floatpos = "80% 80%", .flags = Centered|Floating},
{ .class = "Slack", .scratchkey = 's', .floatpos = "50% 50% 80% 80%", .flags = Floating},
// { .class = "Slack", .scratchkey = 's', .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace|SemiScratchpad },
//
{ .instance = "ICE-SBB-evernote", .scratchkey = 'n', .floatpos = "80% 80%", .flags = Centered|Floating|SemiScratchpad },
{ .class = "fubar", .flags = IgnoreCfgReqPos|IgnoreCfgReqSize },
{ .class = "Gimp", .workspace = "5", .flags = Floating|SwitchWorkspace },
{ .class = "Steam", .flags = IgnoreCfgReqPos|Floating|Centered },
{ .class = "steam_app_", .flags = SteamGame|IgnoreCfgReqPos|Floating|Centered },
/* { .role = "browser", .workspace = "8", .flags = AttachBelow|OnlyModButtons|SwitchWorkspace }, */
{ .class = "Tweetdeck", .workspace = "1", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Element", .workspace = "1", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "VivRay", .workspace = "2", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Chrome", .workspace = "3", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Microsoft Teams - Preview", .workspace = "4", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "ICE-SBB-reddit", .workspace = "4", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "ICE-SSB-evernote", .workspace = "5", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Caprine", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Slack", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "discord", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
// { .title = "WhatsApp", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
// { .class = "ICE-SSB-whatsapp", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Whatsapp-for-linux", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Slack", .workspace = "6", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "TelegramDesktop", .workspace = "7", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "File-roller", .workspace = "7", .flags = Centered|Floating|SwitchWorkspace|RevertWorkspace },
{ .class = "VivMail", .workspace = "8", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
// { .class = "ramboxpro", .workspace = "8", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
// { .class = "Ferdi", .workspace = "8", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
{ .class = "Transmission", .workspace = "9", .flags = NoSwallow|SwitchWorkspace|RevertWorkspace },
// { .title = "tty-clock", .workspace = "1" , .flags = Floating|Sticky|NoSwallow|NoBorder},
{ .class = "MyFancyClock", .workspace = "1", .floatpos = "100% 0%", .flags = Floating|NoSwallow|Sticky|NoBorder},
{ .class = "Alacritty", .flags = Terminal },
{ .class = "st-256color", .flags = Terminal|AttachBottom },
{ .class = "XTerm", .flags = Terminal },
{ .class = "Xephyr", .flags = NoSwallow|Floating|Centered },
{ .title = "Event Tester", .flags = NoSwallow },
{ .role = "pop-up", .flags = AlwaysOnTop|Floating|Centered },
};
/* Bar settings, this defines what bars exists, their position, and what attributes they have.
*
* monitor - the exact monitor number the bar should be created on
* (0 - primary, 1 - secondary, 2 - tertiary)
* idx - the bar index, used in relation to bar rules below
* (bar indexes can be reused across monitors)
* vert - whether the bar is horizontal (0) or vertical (1), not
* all bar modules will have support for being displayed
* in a vertical bar
* name - this is just a reference that can be used for logging
* purposes
*
* Bar positioning consists of four values, x, y, w and h which,
* similarly to floatpos, can have different meaning depending on
* the characters used. Absolute positioning (as in cross-monitor)
* is not supported, but exact positions relative to the monitor
* can be used. Percentage values are recommended for portability.
*
* All values can be a percentage relative to the space available
* on the monitor or they can be exact values, here are some example
* values:
* x
* 0% - left aligned (default)
* 100% - right aligned
* 50% - bar is centered on the screen
* 0x - exact position relative to the monitor
* -1x - value < 0 means use default
* y
* 0% - top bar (default)
* 100% - bottom bar
* 0y - exact position relative to the monitor
* -1y - value < 0 means use default
* w
* 100% - bar takes up the full width of the screen (default)
* 20% - small bar taking a fifth of the width of the screen
* 500w - the bar is 500 pixels wide (including border)
* -1w - value <= 0 means use default
* h
* 100% - bar takes up the full height of the screen
* 20% - small bar taking a fifth of the height of screen
* 30h - the bar is 30 pixels high (including border)
* -1h - value <= 0 means use the default (deduced by font size)
*
* Note that vertical and horizontal side padding are controlled by the
* vertpad and sidepad variables towards the top of this configuration file.
*/
static const BarDef bars[] = {
/* monitor idx vert x y w h name */
{ 0, 0, 0, "0% 0% 100% -1h ", "Primary top" },
{ 0, 1, 0, "0% 100% 100% -1h ", "Primary bottom" },
{ 1, 0, 0, "0% 0% 100% -1h ", "Secondary top" },
{ 1, 1, 0, "0% 100% 100% -1h ", "Secondary bottom" },
{ 2, 0, 0, "0% 0% 100% -1h ", "Tertiary top" },
{ 2, 1, 0, "0% 100% 100% -1h ", "Tertiary bottom" },
};
/* Bar rules allow you to configure what is shown where on the bar, as well as
* introducing your own bar modules.
*
* monitor:
* -1 show on all monitors
* 0 show on monitor 0
* 'A' show on active monitor (i.e. focused / selected) (or just -1 for active?)
* bar - bar index, 0 is default, 1 is extrabar
* scheme - defines the default scheme for the bar module
* lpad - adds artificial spacing on the left hand side of the module
* rpad - adds artificial spacing on the right hand side of the module
* value - arbitrary value where the interpretation is module specific
* alignment - how the module is aligned compared to other modules
* sizefunc, drawfunc, clickfunc - providing bar module width, draw and click functions
* name - does nothing, intended for visual clue and for logging / debugging
*/
#define PWRL PwrlForwardSlash
static const BarRule barrules[] = {
/* monitor bar scheme lpad rpad value alignment sizefunc drawfunc clickfunc hoverfunc name */
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_LEFT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 7, BAR_ALIGN_LEFT, size_status, draw_status, click_status, NULL, "status7" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_LEFT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 0, 4, 0, 0, PWRL, BAR_ALIGN_LEFT, size_workspaces, draw_workspaces, click_workspaces, hover_workspaces, "workspaces" },
{ 'A', 0, 6, 5, 5, 0, BAR_ALIGN_RIGHT, size_systray, draw_systray, click_systray, NULL, "systray" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_LEFT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 0, 5, 0, 0, 0, BAR_ALIGN_LEFT, size_ltsymbol, draw_ltsymbol, click_ltsymbol, NULL, "layout" },
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_LEFT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 0, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status0" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 1, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status1" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 2, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status2" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 3, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status3" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 4, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status4" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 5, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status5" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 6, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status6" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ 0, 0, 0, 5, 5, 8, BAR_ALIGN_RIGHT, size_status, draw_status, click_status, NULL, "status8" },
{ 0, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 1, 0, 5, 5, 9, BAR_ALIGN_LEFT, size_status, draw_status, click_status, NULL, "status9" },
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_NONE, size_wintitle_sticky, draw_wintitle_sticky, click_wintitle_sticky, NULL, "wintitle_sticky" },
{ -1, 0, 0, 0, 0, PWRL, BAR_ALIGN_NONE, size_flexwintitle, draw_flexwintitle, click_flexwintitle, NULL, "flexwintitle" },
{ -1, 1, 0, 0, 0, PWRL, BAR_ALIGN_CENTER, size_pwrl_ifhidfloat, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 1, 0, 0, 0, PWRL, BAR_ALIGN_RIGHT_RIGHT, size_wintitle_hidden, draw_wintitle_hidden, click_wintitle_hidden, NULL, "wintitle_hidden" },
{ -1, 1, 0, 0, 0, PWRL, BAR_ALIGN_LEFT_RIGHT, size_powerline, draw_powerline, NULL, NULL, "powerline join" },
{ -1, 1, 0, 0, 0, PWRL, BAR_ALIGN_LEFT_LEFT, size_wintitle_floating, draw_wintitle_floating, click_wintitle_floating, NULL, "wintitle_floating" },
};
/* Workspace rules define what workspaces are available and their properties.
*
* name - the name of the workspace, this is a reference used for keybindings - see WSKEYS
* monitor - the monitor number the workspace starts on by default, -1 means assign freely
* pinned - whether the workspace is pinned on the assigned monitor
* layout - the layout index the workspace should start with, refer to the layouts array
* mfact - factor of master area size, -1 means use global config
* nmaster - number of clients in master area, -1 means use global config
* nstack - number of clients in primary stack area, -1 means use global config
* gaps - whether gaps are enabled for the workspace, -1 means use global config
*
* icons:
* def - the default icon shown for the workspace, if empty string then the workspace is
* hidden by default, if NULL then the workspace name is used for the icon
* vac - the vacant icon shows if the workspace is selected, the default icon is an empty
* string (hidden by default) and the workspace has no clients
* occ - the occupied icon shows if the workspace has clients
*
*/
static const WorkspaceRule wsrules[] = {
/* ------------------------------- schemes ------------------------------- ------ icons ------
name, monitor, pinned, layout, mfact, nmaster, nstack, gaps, default, visible, selected, occupied, def, vac, occ, */
{ "1", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "1", "", "[1]", },
{ "2", -1, 0, 9, .80, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "2", "", "[2]", },
{ "3", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "3", "", "[3]", },
{ "4", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "4", "", "[4]", },
{ "5", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "5", "", "[5]", },
{ "6", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "6", "", "[6]", },
{ "7", -1, 0, 10, .75, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "7", "", "[7]", },
{ "8", -1, 0, 1, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "8", "", "[8]", },
{ "9", -1, 0, 0, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "9", "", "[9]", },
{ "10", -1, 0, 15, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "E1", "", "[E1]",},
{ "11", -1, 0, 15, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "E2", "", "[E2]",},
{ "12", -1, 0, 15, -1, -1, -1, -1, SchemeWsNorm, SchemeWsVisible, SchemeWsSel, SchemeWsOcc, "E3", "", "[E3]",},
};
static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int nstack = 0; /* number of clients in primary stack area */
static const int enablegaps = 1; /* whether gaps are enabled by default or not */
/* layout(s) */
static const Layout layouts[] = {
/* symbol arrange function, { nmaster, nstack, layout, master axis, stack axis, secondary stack axis, symbol func } */
{ "[]=", flextile, { -1, -1, SPLIT_VERTICAL, TOP_TO_BOTTOM, TOP_TO_BOTTOM, 0, NULL } }, // default tile layout
{ "|||", flextile, { -1, -1, NO_SPLIT, LEFT_TO_RIGHT, LEFT_TO_RIGHT, 0, NULL } }, // columns
{ "===", flextile, { -1, -1, NO_SPLIT, TOP_TO_BOTTOM, TOP_TO_BOTTOM, 0, NULL } }, // rows
{ "[M]", flextile, { -1, -1, NO_SPLIT, MONOCLE, MONOCLE, 0, NULL } }, // monocle
{ "||=", flextile, { -1, -1, SPLIT_VERTICAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, 0, NULL } }, // columns (col) layout
{ ">M>", flextile, { -1, -1, FLOATING_MASTER, LEFT_TO_RIGHT, LEFT_TO_RIGHT, 0, NULL } }, // floating master
{ "[D]", flextile, { -1, -1, SPLIT_VERTICAL, TOP_TO_BOTTOM, MONOCLE, 0, NULL } }, // deck
{ "TTT", flextile, { -1, -1, SPLIT_HORIZONTAL, LEFT_TO_RIGHT, LEFT_TO_RIGHT, 0, NULL } }, // bstack
{ "===", flextile, { -1, -1, SPLIT_HORIZONTAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, 0, NULL } }, // bstackhoriz
{ "==#", flextile, { -1, -1, SPLIT_HORIZONTAL, TOP_TO_BOTTOM, GAPPLESSGRID_CFACTS, 0, NULL } }, // bstackgrid
{ "|M|", flextile, { -1, -1, SPLIT_CENTERED_VERTICAL, LEFT_TO_RIGHT, TOP_TO_BOTTOM, TOP_TO_BOTTOM, NULL } }, // centeredmaster
{ "-M-", flextile, { -1, -1, SPLIT_CENTERED_HORIZONTAL, TOP_TO_BOTTOM, LEFT_TO_RIGHT, LEFT_TO_RIGHT, NULL } }, // centeredmaster horiz
{ ":::", flextile, { -1, -1, NO_SPLIT, GAPPLESSGRID_CFACTS, GAPPLESSGRID_CFACTS, 0, NULL } }, // gappless grid
{ "[\\]", flextile, { -1, -1, NO_SPLIT, DWINDLE_CFACTS, DWINDLE_CFACTS, 0, NULL } }, // fibonacci dwindle
{ "(@)", flextile, { -1, -1, NO_SPLIT, SPIRAL_CFACTS, SPIRAL_CFACTS, 0, NULL } }, // fibonacci spiral
{ "[T]", flextile, { -1, -1, SPLIT_VERTICAL, LEFT_TO_RIGHT, TATAMI_CFACTS, 0, NULL } }, // tatami mats
{ "><>", NULL, {0} }, /* no layout function means floating behavior */
{ NULL, NULL, {0} }, /* end of layouts marker for cyclelayouts */
};
#define Shift ShiftMask
#define Ctrl ControlMask
#define Alt Mod1Mask
#define AltGr Mod3Mask
#define Super Mod4Mask
#define ShiftGr Mod5Mask
/* key definitions */
#define MODKEY Super
#define SCRATCHKEYS(MOD,KEY,CMD) \
{ KeyPress, MOD, KEY, togglescratch, {.v = CMD } }, \
{ KeyPress, MOD|Ctrl, KEY, setscratch, {.v = CMD } }, \
{ KeyPress, MOD|Ctrl|Shift, KEY, removescratch, {.v = CMD } }, \
#define WSKEYS(MOD,KEY,NAME) \
{ KeyPress, MOD, KEY, comboviewwsbyname, {.v = NAME} }, \
{ KeyPress, MOD|Shift, KEY, movetowsbyname, {.v = NAME} }, \
{ KeyPress, MOD|Ctrl|Shift, KEY, movealltowsbyname, {.v = NAME} }, \
{ KeyPress, MOD|Ctrl|Alt, KEY, moveallfromwsbyname, {.v = NAME} }, \
{ KeyPress, MOD|Ctrl, KEY, swapwsbyname, {.v = NAME} }, \
{ KeyPress, MOD|Alt, KEY, enablewsbyname, {.v = NAME} }, \
#define STACKKEYS(MOD,ACTION) \
{ KeyPress, MOD, XK_j, ACTION, {.i = INC(+1) } }, \
{ KeyPress, MOD, XK_k, ACTION, {.i = INC(-1) } }, \
{ KeyPress, MOD, XK_s, ACTION, {.i = PREVSEL } }, \
{ KeyPress, MOD, XK_w, ACTION, {.i = 0 } }, \
{ KeyPress, MOD, XK_e, ACTION, {.i = 1 } }, \
{ KeyPress, MOD, XK_a, ACTION, {.i = 2 } }, \
{ KeyPress, MOD, XK_z, ACTION, {.i = -1 } },
/* { KeyPress, MOD, XK_s, ACTION, {.i = PREVSEL } }, \ */
/* Helper macros for spawning commands */
#define SHCMD(cmd) { .v = (const char*[]){ NULL, "/bin/sh", "-c", cmd, NULL } }
#define CMD(...) { .v = (const char*[]){ NULL, __VA_ARGS__, NULL } }
/* Scratch/Spawn commands: NULL (scratchkey), command, argument, argument, ..., NULL */
static const char *termcmd[] = { NULL, "alacritty", NULL };
// static const char *firecmd[] = { NULL, "audacity", NULL };
static const char *dmenucmd[] = {
NULL,
"dmenu_run",
"-fn", dmenufont,
"-nb", dmenunormbgcolor,
"-nf", dmenunormfgcolor,
"-sb", dmenuselbgcolor,
"-sf", dmenuselfgcolor,
NULL
};
// static const char *spcmd1[] = {"w", "st", "-n", "spterm (w)", "-g", "120x34", NULL };
static const char *spcmd1[] = {"e", "edex-ui", "-n", "spterm (e)", NULL };
static const char *spcmd2[] = {"w", "st", "-n", "spterm (w)", "-g", "120x34", NULL };
static const char *spcmd3[] = {"r", "st", "-n", "spfm (r)", "-g", "144x41", "-e", "ranger", NULL };
static const char *spcmd4[] = {"t", "spacefm", NULL };
// static const char *spcmd5[] = {"s", "slack", NULL };
static const char *spcmd6[] = {"n", "/home/ray/scripts/evernote.sh", NULL };
static const char *statusclickcmd[] = { NULL, "/path/to/statusclick", NULL };
static Key keys[] = {
/* type modifier key function argument */
{ KeyPress, MODKEY, XK_d, spawn, {.v = dmenucmd } }, // spawn dmenu for launching other programs
{ KeyPress, MODKEY, XK_Return, spawn, {.v = termcmd } }, // spawn a terminal
{ KeyPress, MODKEY|Shift, XK_Return, riospawn, {.v = termcmd } }, // draw/spawn a terminal
{ KeyPress, MODKEY, XK_b, togglebar, {0} }, // toggles the display of the bar(s) on the current monitor
{ KeyPress, MODKEY, XK_j, focusstack, {.i = +1 } }, // focus on the next client in the stack
{ KeyPress, MODKEY, XK_k, focusstack, {.i = -1 } }, // focus on the previous client in the stack
{ KeyPress, MODKEY|Alt|Shift, XK_j, focusstack, {.i = +2 } }, // allows focusing on hidden clients
{ KeyPress, MODKEY|Alt|Shift, XK_k, focusstack, {.i = -2 } }, // allows focusing on hidden clients
{ KeyPress, MODKEY, XK_Left, focusdir, {.i = 0 } }, // focus on the client left of the currently focused client
{ KeyPress, MODKEY, XK_Right, focusdir, {.i = 1 } }, // focus on the client right of the currently focused client
{ KeyPress, MODKEY, XK_Up, focusdir, {.i = 2 } }, // focus on the client above the currently focused client
{ KeyPress, MODKEY, XK_Down, focusdir, {.i = 3 } }, // focus on the client below the currently focused client
{ KeyPress, MODKEY|ControlMask, XK_Left, placedir, {.i = 0 } }, // swap places with the client window on the immediate left of the current client
{ KeyPress, MODKEY|ControlMask, XK_Right, placedir, {.i = 1 } }, // swap places with the client window on the immediate right of the current client
{ KeyPress, MODKEY|ControlMask, XK_Up, placedir, {.i = 2 } }, // swap places with the client window on the immediate up of the current client
{ KeyPress, MODKEY|ControlMask, XK_Down, placedir, {.i = 3 } }, // swap places with the client window on the immediate down of the current client
{ KeyPress, MODKEY|Ctrl, XK_j, pushdown, {0} }, // move the selected client down the stack
{ KeyPress, MODKEY|Ctrl, XK_k, pushup, {0} }, // move the selected client up the stack
{ KeyPress, MODKEY, XK_i, incnmaster, {.i = +1 } }, // increase the number of clients in the master area
{ KeyPress, MODKEY, XK_u, incnmaster, {.i = -1 } }, // decrease the number of clients in the master area
{ KeyPress, MODKEY|Ctrl, XK_i, incnstack, {.i = +1 } }, // increase the number of clients in the primary (first) stack area
{ KeyPress, MODKEY|Ctrl, XK_u, incnstack, {.i = -1 } }, // increase the number of clients in the primary (first) stack area
{ KeyPress, MODKEY, XK_h, setmfact, {.f = -0.05} }, // decrease the size of the master area compared to the stack area(s)
{ KeyPress, MODKEY, XK_l, setmfact, {.f = +0.05} }, // increase the size of the master area compared to the stack area(s)
{ KeyPress, MODKEY|Shift, XK_h, setcfact, {.f = +0.25} }, // increase size respective to other windows within the same area
{ KeyPress, MODKEY|Shift, XK_l, setcfact, {.f = -0.25} }, // decrease client size respective to other windows within the same area
{ KeyPress, MODKEY|Shift, XK_o, setcfact, {0} },
{ KeyPress, MODKEY, XK_backslash, togglepinnedws, {0} }, // toggle pinning of currently selected workspace on the current monitor
{ KeyPress, MODKEY, XK_z, showhideclient, {0} }, // hide the currently selected client (or show if hidden)
{ KeyPress, MODKEY, XK_q, killclient, {0} }, // close the currently focused window
{ KeyPress, MODKEY|Shift, XK_q, restart, {0} }, // restart dusk
{ KeyPress, MODKEY|Ctrl|Alt, XK_q, quit, {0} }, // exit dusk
{ KeyPress, MODKEY, XK_v, group, {0} }, // groups floating clients together
{ KeyPress, MODKEY|Shift, XK_v, ungroup, {0} }, // ungroups floating clients
{ KeyPress, MODKEY, XK_a, markall, {0} }, // marks all clients on the selected workspace
{ KeyPress, MODKEY|Ctrl, XK_a, markall, {1} }, // marks all floating clients on the selected workspace
{ KeyPress, MODKEY|Alt, XK_a, markall, {2} }, // marks all hidden clients on the selected workspace
{ KeyPress, MODKEY|Shift, XK_a, unmarkall, {0} }, // unmarks all clients
{ KeyPress, MODKEY, XK_m, togglemark, {0} }, // marks or unmarks the selected client for group action
{ KeyPress, MODKEY, XK_n, zoom, {0} }, // moves the currently focused window to/from the master area (for tiled layouts)
{ KeyPress, MODKEY, XK_bracketleft, rotatelayoutaxis, {.i = -1 } }, // cycle through the available layout splits (horizontal, vertical, centered, no split, etc.)
{ KeyPress, MODKEY, XK_bracketright, rotatelayoutaxis, {.i = +1 } }, // cycle through the available layout splits (horizontal, vertical, centered, no split, etc.)
{ KeyPress, MODKEY|Alt, XK_bracketleft, rotatelayoutaxis, {.i = -2 } }, // cycle through the available tiling arrangements for the master area
{ KeyPress, MODKEY|Alt, XK_bracketright, rotatelayoutaxis, {.i = +2 } }, // cycle through the available tiling arrangements for the master area
{ KeyPress, MODKEY|Shift, XK_bracketleft, rotatelayoutaxis, {.i = -3 } }, // cycle through the available tiling arrangements for the primary (first) stack area
{ KeyPress, MODKEY|Shift, XK_bracketright, rotatelayoutaxis, {.i = +3 } }, // cycle through the available tiling arrangements for the primary (first) stack area
{ KeyPress, MODKEY|Ctrl, XK_bracketleft, rotatelayoutaxis, {.i = -4 } }, // cycle through the available tiling arrangements for the secondary stack area
{ KeyPress, MODKEY|Ctrl, XK_bracketright, rotatelayoutaxis, {.i = +4 } }, // cycle through the available tiling arrangements for the secondary stack area
{ KeyPress, MODKEY|Ctrl, XK_m, mirrorlayout, {0} }, // flip the master and stack areas
{ KeyPress, MODKEY|Ctrl|Shift, XK_m, layoutconvert, {0} }, // flip between horizontal and vertical layout
{ KeyPress, MODKEY, XK_space, setlayout, {0} }, // toggles between current and previous layout
{ KeyPress, MODKEY|Ctrl, XK_g, floatpos, {.v = "50% 50% 80% 80%" } }, // center client and take up 80% of the screen
{ KeyPress, MODKEY, XK_g, togglefloating, {0} }, // toggles between tiled and floating arrangement for the currently focused client
{ KeyPress, MODKEY, XK_f, togglefullscreen, {0} }, // toggles fullscreen for the currently selected client
{ KeyPress, MODKEY|Shift, XK_f, togglefakefullscreen, {0} }, // toggles "fake" fullscreen for the selected window
{ KeyPress, Ctrl|Alt, XK_Tab, togglenomodbuttons, {0} }, // disables / enables keybindings that are not accompanied by any modifier buttons for a client
{ KeyPress, MODKEY|ShiftMask, XK_plus, changeopacity, {.f = +0.05 } }, // increase the client opacity (for compositors that support _NET_WM_OPACITY)
{ KeyPress, MODKEY|ShiftMask, XK_minus, changeopacity, {.f = -0.05 } }, // decrease the client opacity (for compositors that support _NET_WM_OPACITY)
{ KeyPress, MODKEY|Shift, XK_comma, focusmon, {.i = -1 } }, // focus on the previous monitor, if any
{ KeyPress, MODKEY|Shift, XK_period, focusmon, {.i = +1 } }, // focus on the next monitor, if any
{ KeyPress, MODKEY|Alt, XK_comma, clienttomon, {.i = -1 } }, // sends the current client to an adjacent monitor
{ KeyPress, MODKEY|Alt, XK_period, clienttomon, {.i = +1 } }, // sends the current client to an adjacent monitor
{ KeyPress, MODKEY|Alt|Shift, XK_comma, clientstomon, {.i = +1 } }, // sends all clients to an adjacent monitor
{ KeyPress, MODKEY|Alt|Shift, XK_period, clientstomon, {.i = -1 } }, // sends all clients to an adjacent monitor
{ KeyPress, MODKEY|Ctrl, XK_0, viewallwsonmon, {0} }, // view all workspaces on the current monitor
{ KeyPress, MODKEY|Alt, XK_0, viewalloccwsonmon, {0} }, // view all workspaces on the current monitor that has clients
{ KeyPress, MODKEY, XK_o, viewselws, {0} }, // view the selected workspace (only relevant when viewing multiple workspaces)
{ KeyPress, MODKEY|Shift, XK_v, ungroup, {0} }, // ungroups floating clients
{ KeyPress, MODKEY|Ctrl, XK_comma, viewwsdir, {.i = -1 } }, // view the workspace on the immediate left of current workspace (on the current monitor)
{ KeyPress, MODKEY|Ctrl, XK_period, viewwsdir, {.i = +1 } }, // view the workspace on the immediate right of current workspace (on the current monitor)
{ KeyPress, MODKEY, XK_comma, viewwsdir, {.i = -2 } }, // view the next workspace left of current workspace that has clients (on the current monitor)
{ KeyPress, MODKEY, XK_period, viewwsdir, {.i = +2 } }, // view the next workspace right of current workspace that has clients (on the current monitor)
{ KeyPress, MODKEY|Shift, XK_Tab, viewwsdir, {.i = -2 } }, // view the next workspace left of current workspace that has clients (on the current monitor)
{ KeyPress, MODKEY, XK_Tab, viewwsdir, {.i = +2 } }, // view the next workspace right of current workspace that has clients (on the current monitor)
{ KeyPress, MODKEY|Ctrl|Alt, XK_comma, movewsdir, {.i = -1 } }, // move client to workspace on the immediate left of current workspace (on the current monitor)
{ KeyPress, MODKEY|Ctrl|Alt, XK_period, movewsdir, {.i = +1 } }, // move client to workspace on the immediate right of current workspace (on the current monitor)
// STACKKEYS(AltGr|Ctrl, stackfocus) // focus on the nth client in the stack, see the STACKKEYS macro for keybindings
// STACKKEYS(AltGr|Ctrl|Shift, stackpush) // move the currently focused client to the nth place in the stack
// STACKKEYS(AltGr|Ctrl, stackfocus) // focus on the nth client in the stack, see the STACKKEYS macro for keybindings
// STACKKEYS(AltGr|Ctrl|Shift, stackpush) // move the currently focused client to the nth place in the stack
SCRATCHKEYS(MODKEY, XK_e, spcmd1)
SCRATCHKEYS(MODKEY, XK_w, spcmd2)
SCRATCHKEYS(MODKEY, XK_r, spcmd3)
SCRATCHKEYS(MODKEY, XK_t, spcmd4)
// SCRATCHKEYS(MODKEY, XK_s, spcmd5)
SCRATCHKEYS(MODKEY, XK_n, spcmd6)
WSKEYS(MODKEY, XK_1, "1")
WSKEYS(MODKEY, XK_2, "2")
WSKEYS(MODKEY, XK_3, "3")
WSKEYS(MODKEY, XK_4, "4")
WSKEYS(MODKEY, XK_5, "5")
WSKEYS(MODKEY, XK_6, "6")
WSKEYS(MODKEY, XK_7, "7")
WSKEYS(MODKEY, XK_8, "8")
WSKEYS(MODKEY, XK_9, "9")
WSKEYS(MODKEY|Ctrl, XK_F10, "10")
WSKEYS(MODKEY|Ctrl, XK_F11, "11")
WSKEYS(MODKEY|Ctrl, XK_F12, "12")
/* Unassigned key bindings (available externally via the duskc command) */
// { KeyPress, MODKEY, XK_Control_R, showbar, {0} },
// { KeyRelease, MODKEY|AltGr, XK_Control_R, hidebar, {0} },
// { KeyPress, MODKEY, XK_, incrgaps, {.i = +1 } }, // increase all gaps (outer, inner, horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrgaps, {.i = -1 } }, // decrease all gaps (outer, inner, horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrigaps, {.i = +1 } }, // increase inner gaps (horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrigaps, {.i = -1 } }, // decrease inner gaps (horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrogaps, {.i = +1 } }, // increase outer gaps (horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrogaps, {.i = -1 } }, // decrease outer gaps (horizontal and vertical)
// { KeyPress, MODKEY, XK_, incrihgaps, {.i = +1 } }, // increase inner horizontal gaps
// { KeyPress, MODKEY, XK_, incrihgaps, {.i = -1 } }, // decrease inner horizontal gaps
// { KeyPress, MODKEY, XK_, incrivgaps, {.i = +1 } }, // increase inner vertical gaps
// { KeyPress, MODKEY, XK_, incrivgaps, {.i = -1 } }, // decrease inner vertical gaps
// { KeyPress, MODKEY, XK_, incrohgaps, {.i = +1 } }, // increase outer horizontal gaps
// { KeyPress, MODKEY, XK_, incrohgaps, {.i = -1 } }, // decrease outer horizontal gaps
// { KeyPress, MODKEY, XK_, incrovgaps, {.i = +1 } }, // increase outer vertical gaps
// { KeyPress, MODKEY, XK_, incrovgaps, {.i = -1 } }, // decrease outer vertical gaps
// { KeyPress, MODKEY, XK_, mark, {0} }, // marks the currently selected client
// { KeyPress, MODKEY, XK_, unmark, {0} }, // unmarks the currently selected client
// { KeyPress, MODKEY, XK_, togglegaps, {0} }, // enables and disables the rendering of gaps in tiled layouts
// { KeyPress, MODKEY, XK_, defaultgaps, {0} }, // revert gaps to the default settings
// { KeyPress, MODKEY, XK_, cyclelayout, {.i = -1 } }, // cycle through the available layouts
// { KeyPress, MODKEY, XK_, cyclelayout, {.i = +1 } }, // cycle through the available layouts (in reverse)
// { KeyPress, MODKEY, XK_, viewwsdir, {.i = -1 } }, // move to the workspace on the immediate left of the current workspace on the current monitor (wraps around)
// { KeyPress, MODKEY, XK_, viewwsdir, {.i = +1 } }, // move to the workspace on the immediate right of the current workspace on the current monitor (wraps around)
// { KeyPress, MODKEY, XK_, focusmaster, {0} }, // change focus to the first client in the stack (master)
// { KeyPress, MODKEY, XK_, transfer, {0} }, // move a client between the master and stack area automatically adjusting nmaster
// { KeyPress, MODKEY, XK_, transferall, {0} }, // swaps all clients in the stack area with all clients in the master area
{ KeyPress, MODKEY, XK_0, togglesticky, {0} }, // makes a client show on all workspaces)
// { KeyPress, MODKEY, XK_, focusurgent, {0} }, // focus on the client marked as urgent
// { KeyPress, MODKEY, XK_, inplacerotate, {.i = +1} }, // rotate clients within the respective area (master, primary stack, secondary stack) clockwise
// { KeyPress, MODKEY, XK_, inplacerotate, {.i = -1} }, // rotate clients within the respective area (master, primary stack, secondary stack) counter-clockwise
// { KeyPress, MODKEY, XK_, rotatestack, {.i = +1 } }, // rotate all clients (clockwise)
// { KeyPress, MODKEY, XK_, rotatestack, {.i = -1 } }, // rotate all clients (counter-clockwise)
// { KeyPress, MODKEY, XK_, riodraw, {0} }, // use slop to resize the currently selected client
// { KeyPress, MODKEY, XK_, unfloatvisible, {0} }, // makes all floating clients on the currently selected workspace tiled
// { KeyPress, MODKEY, XK_, switchcol, {0} }, // changes focus between the master and the primary stack area
{ KeyPress, MODKEY|Alt, XK_g, setlayout, {.v = &layouts[12]} }, // sets a specific layout, see the layouts array for indices
// { KeyPress, MODKEY, XK_, xrdb, {0 } }, // reloads colors from XResources
};
static const char *rootmenu[] = { NULL, "/home/ray/scripts/switch_dusk_theme.sh", NULL };
/* button definitions */
/* click can be ClkWorkspaceBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} }, // toggles between current and previous layout
{ ClkLtSymbol, 0, Button4, cyclelayout, {.i = +1 } }, // cycle through the available layouts
{ ClkLtSymbol, 0, Button5, cyclelayout, {.i = -1 } }, // cycle through the available layouts (in reverse)
{ ClkWinTitle, 0, Button1, focuswin, {0} }, // focus on the given client
{ ClkWinTitle, 0, Button3, showhideclient, {0} }, // hide the currently selected client (or show if hidden)
{ ClkWinTitle, 0, Button2, zoom, {0} }, // moves the currently focused window to/from the master area (for tiled layouts)
{ ClkStatusText, 0, Button1, statusclick, {.i = 1 } }, // sends mouse button presses to statusclick script when clicking on status modules
{ ClkStatusText, 0, Button2, statusclick, {.i = 2 } },
{ ClkStatusText, 0, Button3, statusclick, {.i = 3 } },
{ ClkStatusText, 0, Button4, statusclick, {.i = 4 } },
{ ClkStatusText, 0, Button5, statusclick, {.i = 5 } },
{ ClkStatusText, 0, Button6, statusclick, {.i = 6 } },
{ ClkStatusText, 0, Button7, statusclick, {.i = 7 } },
{ ClkStatusText, 0, Button8, statusclick, {.i = 8 } },
{ ClkStatusText, 0, Button9, statusclick, {.i = 9 } },
{ ClkStatusText, Shift, Button1, statusclick, {.i = 10 } },
{ ClkStatusText, Shift, Button2, statusclick, {.i = 11 } },
{ ClkStatusText, Shift, Button3, statusclick, {.i = 12 } },
{ ClkClientWin, MODKEY, Button8, markmouse, {1} }, // toggles marking of clients under the mouse cursor for group action
{ ClkClientWin, MODKEY, Button9, markmouse, {0} }, // unmarks clients under the mouse cursor
{ ClkClientWin, MODKEY, Button1, moveorplace, {1} }, // moves a client window into a floating or tiled position depending on floating state
{ ClkClientWin, MODKEY|Shift, Button1, movemouse, {0} }, // moves a floating window, if the window is tiled then it will snap out to become floating
{ ClkClientWin, MODKEY|Alt, Button2, togglefloating, {0} }, // toggles between tiled and floating arrangement for given client
{ ClkClientWin, MODKEY, Button3, resizeorcfacts, {0} }, // change the size of a floating client window or adjust cfacts (dragcfact) when tiled
{ ClkClientWin, MODKEY|Shift, Button3, resizemouse, {0} }, // change the size of a floating client window
{ ClkClientWin, 0, Button8, movemouse, {0} }, // move a client window using extra mouse buttons (previous)
{ ClkClientWin, 0, Button9, resizemouse, {0} }, // resize a client window using extra mouse buttons (next)
{ ClkClientWin, MODKEY, Button2, zoom, {0} }, // moves the currently focused window to/from the master area (for tiled layouts)
{ ClkClientWin, MODKEY|Ctrl, Button1, dragmfact, {0} }, // dynamically change the size of the master area compared to the stack area(s)
// { ClkRootWin, MODKEY|Ctrl, Button1, dragmfact, {0} }, // dynamically change the size of the master area compared to the stack area(s)
{ ClkRootWin, 0, Button1, spawn, {.v = rootmenu } }, // dynamically change the size of the master area compared to the stack area(s)
{ ClkClientWin, MODKEY, Button4, inplacerotate, {.i = +1 } }, // rotate clients within the respective area (master, primary stack, secondary stack) clockwise
{ ClkClientWin, MODKEY, Button5, inplacerotate, {.i = -1 } }, // rotate clients within the respective area (master, primary stack, secondary stack) counter-clockwise
{ ClkClientWin, MODKEY|Shift, Button4, rotatestack, {.i = +1 } }, // rotate all clients (clockwise)
{ ClkClientWin, MODKEY|Shift, Button5, rotatestack, {.i = -1 } }, // rotate all clients (counter-clockwise)
{ ClkWorkspaceBar, 0, Button1, viewws, {0} }, // view the workspace by clicking on workspace icon
{ ClkWorkspaceBar, MODKEY, Button1, movews, {0} }, // sends (moves) the currently focused client to given workspace
{ ClkWorkspaceBar, MODKEY|Shift|Ctrl, Button1, swapws, {0} }, // swaps all clients on current workspace with that of the given workspace
{ ClkWorkspaceBar, 0, Button3, enablews, {0} }, // enables the workspace in addition to other workspaces
{ ClkWorkspaceBar, 0, Button4, viewwsdir, {.i = +2 } }, // view the next workspace right of current workspace that has clients (on the current monitor)
{ ClkWorkspaceBar, 0, Button5, viewwsdir, {.i = -2 } }, // view the next workspace left of current workspace that has clients (on the current monitor)
{ ClkWorkspaceBar, MODKEY, Button2, togglepinnedws, {0} }, // toggles the pinning of a workspace to the current monitor
};
static const char *ipcsockpath = "/tmp/dusk.sock";
static IPCCommand ipccommands[] = {
IPCCOMMANDS( customlayout, 8, ARG_TYPE_SINT, ARG_TYPE_STR, ARG_TYPE_SINT, ARG_TYPE_SINT, ARG_TYPE_SINT, ARG_TYPE_SINT, ARG_TYPE_SINT, ARG_TYPE_SINT ),
IPCCOMMAND( changeopacity, ARG_TYPE_FLOAT ),
IPCCOMMAND( clienttomon, ARG_TYPE_SINT ),
IPCCOMMAND( clientstomon, ARG_TYPE_SINT ),
IPCCOMMAND( cyclelayout, ARG_TYPE_SINT ),
IPCCOMMAND( enable, ARG_TYPE_STR ),
IPCCOMMAND( enablewsbyname, ARG_TYPE_STR ),
IPCCOMMAND( defaultgaps, ARG_TYPE_NONE ),
IPCCOMMAND( disable, ARG_TYPE_STR ),
IPCCOMMAND( floatpos, ARG_TYPE_STR ),
IPCCOMMAND( focusdir, ARG_TYPE_SINT ),
IPCCOMMAND( focusmaster, ARG_TYPE_NONE ),
IPCCOMMAND( focusmon, ARG_TYPE_SINT ),
IPCCOMMAND( focusstack, ARG_TYPE_SINT ),
IPCCOMMAND( focusurgent, ARG_TYPE_NONE ),
IPCCOMMAND( hidebar, ARG_TYPE_NONE ),
IPCCOMMAND( incrgaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrigaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrogaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrihgaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrivgaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrohgaps, ARG_TYPE_SINT ),
IPCCOMMAND( incrovgaps, ARG_TYPE_SINT ),
IPCCOMMAND( incnmaster, ARG_TYPE_SINT ),
IPCCOMMAND( incnstack, ARG_TYPE_SINT ),
IPCCOMMAND( inplacerotate, ARG_TYPE_SINT ),
IPCCOMMAND( killclient, ARG_TYPE_NONE ),
IPCCOMMAND( killunsel, ARG_TYPE_NONE ),
IPCCOMMAND( layoutconvert, ARG_TYPE_NONE ),
IPCCOMMAND( mark, ARG_TYPE_NONE ),
IPCCOMMAND( markall, ARG_TYPE_SINT ), // 0 = mark all, 1 = mark floating, 2 = mark hidden
IPCCOMMAND( mirrorlayout, ARG_TYPE_NONE ),
IPCCOMMAND( movetowsbyname, ARG_TYPE_STR ),
IPCCOMMAND( movealltowsbyname, ARG_TYPE_STR ),
IPCCOMMAND( moveallfromwsbyname, ARG_TYPE_STR ),
IPCCOMMAND( movewsdir, ARG_TYPE_SINT ),
IPCCOMMAND( rotatelayoutaxis, ARG_TYPE_SINT ),
IPCCOMMAND( rotatestack, ARG_TYPE_SINT ),
IPCCOMMAND( placedir, ARG_TYPE_SINT ),
IPCCOMMAND( pushdown, ARG_TYPE_NONE ),
IPCCOMMAND( pushup, ARG_TYPE_NONE ),
IPCCOMMAND( quit, ARG_TYPE_NONE ),
IPCCOMMAND( restart, ARG_TYPE_NONE ),
IPCCOMMAND( rioresize, ARG_TYPE_NONE ),
IPCCOMMAND( setattachdefault, ARG_TYPE_STR),
IPCCOMMAND( setborderpx, ARG_TYPE_SINT ),
IPCCOMMAND( setlayoutaxisex, ARG_TYPE_SINT ),
IPCCOMMAND( setlayoutex, ARG_TYPE_SINT ),
IPCCOMMAND( setlayoutsafe, ARG_TYPE_PTR ),
IPCCOMMAND( setcfact, ARG_TYPE_FLOAT ),
IPCCOMMAND( setmfact, ARG_TYPE_FLOAT ),
IPCCOMMAND( setgapsex, ARG_TYPE_SINT ),
IPCCOMMANDS( setstatus, 2, ARG_TYPE_UINT, ARG_TYPE_STR ),
IPCCOMMAND( showbar, ARG_TYPE_NONE ),
IPCCOMMAND( showhideclient, ARG_TYPE_NONE ),
IPCCOMMAND( stackpush, ARG_TYPE_SINT ),
IPCCOMMAND( stackfocus, ARG_TYPE_SINT ),
IPCCOMMAND( switchcol, ARG_TYPE_NONE ),
IPCCOMMAND( swapwsbyname, ARG_TYPE_STR ),
IPCCOMMAND( toggle, ARG_TYPE_STR ), // toggle functionality on and off
IPCCOMMAND( togglebar, ARG_TYPE_NONE ),
IPCCOMMAND( togglebarpadding, ARG_TYPE_NONE ),
IPCCOMMAND( toggleclientflag, ARG_TYPE_STR ),
IPCCOMMAND( togglefakefullscreen, ARG_TYPE_NONE ),
IPCCOMMAND( togglefloating, ARG_TYPE_NONE ),
IPCCOMMAND( togglefullscreen, ARG_TYPE_NONE ),
IPCCOMMAND( togglegaps, ARG_TYPE_NONE ),
IPCCOMMAND( togglemark, ARG_TYPE_NONE ),
IPCCOMMAND( togglenomodbuttons, ARG_TYPE_NONE ),
IPCCOMMAND( togglepinnedws, ARG_TYPE_NONE ),
IPCCOMMAND( togglesticky, ARG_TYPE_NONE ),
IPCCOMMAND( transfer, ARG_TYPE_NONE ),
IPCCOMMAND( transferall, ARG_TYPE_NONE ),
IPCCOMMAND( unfloatvisible, ARG_TYPE_NONE ),
IPCCOMMAND( unmark, ARG_TYPE_NONE ),
IPCCOMMAND( unmarkall, ARG_TYPE_NONE ),
IPCCOMMAND( viewallwsonmon, ARG_TYPE_NONE ),
IPCCOMMAND( viewalloccwsonmon, ARG_TYPE_NONE ),
IPCCOMMAND( viewselws, ARG_TYPE_NONE ),
IPCCOMMAND( viewwsbyname, ARG_TYPE_STR ),
IPCCOMMAND( viewwsdir, ARG_TYPE_SINT ),
IPCCOMMAND( xrdb, ARG_TYPE_NONE ), // reload xrdb / Xresources
IPCCOMMAND( zoom, ARG_TYPE_NONE ),
};