summaryrefslogtreecommitdiff
path: root/patch2.diff
blob: b80632f9889c12f91152ca6cd19e49139cda144d (plain)
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
diff --git a/config.h b/config.h
index e37feca..cea96be 100644
--- a/config.h
+++ b/config.h
@@ -15,15 +15,15 @@ static const int showbar            = 1;        /* 0 means no bar */
 static const int topbar             = 1;        /* 0 means bottom bar */
 static const char *fonts[]          = { "mononoki Nerd Font Mono:size=10", "JoyPixels:size=9" };
 static const char dmenufont[]       = "mononoki Nerd Font Mono:size=10";
-static const char col_gray1[]       = "#222222";
-static const char col_gray2[]       = "#444444";
+static const char col_gray1[]       = "#000000";
+static const char col_gray2[]       = "#000000";
 static const char col_gray3[]       = "#bbbbbb";
 static const char col_gray4[]       = "#eeeeee";
-static const char col_cyan[]        = "#750000";
+static const char col_cyan[]        = "#ffffff";
 static const char *colors[][3]      = {
 	/*               fg         bg         border   */
 	[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
-	[SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
+	[SchemeSel]  = { col_gray1, col_cyan,  col_cyan  },
 };
 
 typedef struct {
@@ -32,17 +32,21 @@ typedef struct {
 } Sp;
 const char *spcmd1[] = { "st", "-g", "150x50", "-c", "sphtop", "-e", "htop", NULL };
 const char *spcmd2[] = { "st", "-g", "150x50", "-c", "spterm", NULL };
-const char *spcmd3[] = { "st", "-g", "150x50", "-c", "sppm", "-e", "pulsemixer", NULL };
-const char *spcmd4[] = { "st", "-g", "150x50", "-c", "spncmp", "-e", "ncmpcpp", NULL };
-const char *spcmd5[] = { "st", "-g", "150x50", "-c", "spmutt", "-e", "neomutt", NULL };
-const char *spcmd6[] = { "st", "-g", "150x50", "-c", "spping", "-e", "ping", "1.1.1.1", NULL };
+const char *spcmd3[] = { "st", "-g", "150x50", "-c", "sppmxr", "-e", "pulsemixer", NULL };
+const char *spcmd4[] = { "st", "-g", "150x50", "-c", "spxmrw", "-e", "xmrzachir", NULL };
+const char *spcmd5[] = { "st", "-g", "150x50", "-c", "spncmp", "-e", "ncmpcpp", NULL };
+const char *spcmd6[] = { "st", "-g", "150x50", "-c", "spmutt", "-e", "zsh", "-c", "neomutt", NULL };
+const char *spcmd7[] = { "st", "-g", "150x50", "-c", "spxmpp", "-e", "profanity", NULL };
+const char *spcmd8[] = { "st", "-g", "150x50", "-c", "spircc", "-e", "irssi", NULL };
 static Sp scratchpads[] = {
   { "sphtop",     spcmd1 },
   { "spterm",     spcmd2 },
-  { "sppm",       spcmd3 },
-  { "spncmp",     spcmd4 },
-  { "spmutt",     spcmd5 },
-  { "spping",     spcmd6 },
+  { "sppmxr",     spcmd3 },
+  { "spxmrw",     spcmd4 },
+  { "spncmp",     spcmd5 },
+  { "spmutt",     spcmd6 },
+  { "spxmpp",     spcmd7 },
+  { "spircc",     spcmd8 },
 };
 
 /* tagging */
@@ -80,10 +84,12 @@ static const Rule rules[] = {
         { "lutris",	NULL,   NULL,           2,        0,          0,          0,          -1 },
         { "sphtop",     NULL,   NULL,           SPTAG(0), 1,          1,          1,          -1 },
         { "spterm",     NULL,   NULL,           SPTAG(1), 1,          1,          1,          -1 },
-        { "sppm",       NULL,   NULL,           SPTAG(2), 1,          1,          1,          -1 },
-        { "spncmp",     NULL,   NULL,           SPTAG(3), 1,          1,          1,          -1 },
-        { "spmutt",     NULL,   NULL,           SPTAG(4), 1,          1,          1,          -1 },
-        { "spping",     NULL,   NULL,           SPTAG(5), 1,          1,          1,          -1 },
+        { "sppmxr",     NULL,   NULL,           SPTAG(2), 1,          1,          1,          -1 },
+        { "spxmrw",     NULL,   NULL,           SPTAG(3), 1,          1,          1,          -1 },
+        { "spncmp",     NULL,   NULL,           SPTAG(4), 1,          1,          1,          -1 },
+        { "spmutt",     NULL,   NULL,           SPTAG(5), 1,          1,          1,          -1 },
+        { "spxmpp",     NULL,   NULL,           SPTAG(6), 1,          1,          1,          -1 },
+        { "spircc",     NULL,   NULL,           SPTAG(7), 1,          1,          1,          -1 },
         { NULL, "monero-wallet-gui",NULL,       256,      1,          0,          0,          -1 },
 };
 
@@ -103,7 +109,7 @@ static const Layout layouts[] = {
 };
 
 /* key definitions */
-#define MODKEY Mod3Mask
+#define MODKEY Mod1Mask
 #define TAGKEYS(KEY,TAG) \
 	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
 	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
@@ -118,7 +124,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
 /* static const char *rmenucmd[] = { "/usr/sbin/j4-dmenu-desktop", NULL }; */
 /* static const char *passmenu[] = { "passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; */
-static const char *termcmd[]  = { "urxvtc", NULL };
+static const char *termcmd[]  = { "st", NULL };
 /* static const char *termcmd[]  = { "alacritty", NULL }; */
 static const char *sxhkdsig[] = { "pkill", "-USR1", "sxhkd", NULL };
 /* static const char *mpdtoggle[] = { "playerctl", "--player=mpd,mpv,%any", "play-pause", NULL }; */
@@ -148,28 +154,32 @@ static Key keys[] = {
         { MODKEY|ControlMask,           XK_z,       togglescratch,  {.ui = 0 } },
         { MODKEY|ControlMask,           XK_x,       togglescratch,  {.ui = 1 } },
         { MODKEY|ControlMask,           XK_c,       togglescratch,  {.ui = 2 } },
-        { MODKEY|ControlMask,           XK_b,       togglescratch,  {.ui = 3 } },
-        { MODKEY|ControlMask,           XK_a,       togglescratch,  {.ui = 4 } },
-        { MODKEY|ControlMask,           XK_s,       togglescratch,  {.ui = 5 } },
-        { MODKEY,                       XK_Escape,  spawn,            {.v = sxhkdsig } },
-     	// { 0,                     XF86XK_AudioPlay,  spawn,          {.v = mpdtoggle } },
-  	// { 0,                     XF86XK_AudioNext,  spawn,          {.v = mpdnext } },
-  	// { 0,                     XF86XK_AudioPrev,  spawn,          {.v = mpdprev } },
-  	// { ShiftMask,             XF86XK_AudioPlay,  spawn,          {.v = plytoggle } },
-  	// { ShiftMask,             XF86XK_AudioNext,  spawn,          {.v = plyfwd } },
-  	// { ShiftMask,             XF86XK_AudioPrev,  spawn,          {.v = plybck } },
-  	// { 0,               XF86XK_MonBrightnessUp,  spawn,          {.v = blightup } },
-  	// { 0,             XF86XK_MonBrightnessDown,  spawn,          {.v = blightdown } },
-  	// { 0,              XF86XK_AudioLowerVolume,  spawn,          {.v = audiodown } },
-  	// { 0,              XF86XK_AudioRaiseVolume,  spawn,          {.v = audioup } },
-  	// { 0,                     XF86XK_AudioMute,  spawn,          {.v = audiomute } },
-  	// { 0,                  XF86XK_AudioMicMute,  spawn,          {.v = micmute } },
-  	// { Mod4Mask,                     XK_l,       spawn,          {.v = lockscr } },
+        { MODKEY|ControlMask,           XK_v,       togglescratch,  {.ui = 3 } },
+        { MODKEY|ControlMask,           XK_b,       togglescratch,  {.ui = 4 } },
+        { MODKEY|ControlMask,           XK_a,       togglescratch,  {.ui = 5 } },
+        { MODKEY|ControlMask,           XK_s,       togglescratch,  {.ui = 6 } },
+        { MODKEY|ControlMask,           XK_d,       togglescratch,  {.ui = 7 } },
+        { MODKEY,                       XK_Escape,  spawn,          {.v = sxhkdsig } },
+     	// { 0,                     XF86XK_AudioPlay,  spawn,       {.v = mpdtoggle } },
+  	// { 0,                     XF86XK_AudioNext,  spawn,       {.v = mpdnext } },
+  	// { 0,                     XF86XK_AudioPrev,  spawn,       {.v = mpdprev } },
+  	// { ShiftMask,             XF86XK_AudioPlay,  spawn,       {.v = plytoggle } },
+  	// { ShiftMask,             XF86XK_AudioNext,  spawn,       {.v = plyfwd } },
+  	// { ShiftMask,             XF86XK_AudioPrev,  spawn,       {.v = plybck } },
+  	// { 0,               XF86XK_MonBrightnessUp,  spawn,       {.v = blightup } },
+  	// { 0,             XF86XK_MonBrightnessDown,  spawn,       {.v = blightdown } },
+  	// { 0,              XF86XK_AudioLowerVolume,  spawn,       {.v = audiodown } },
+  	// { 0,              XF86XK_AudioRaiseVolume,  spawn,       {.v = audioup } },
+  	// { 0,                     XF86XK_AudioMute,  spawn,       {.v = audiomute } },
+  	// { 0,                  XF86XK_AudioMicMute,  spawn,       {.v = micmute } },
+  	// { Mod4Mask,                     XK_l,       spawn,       {.v = lockscr } },
         { MODKEY,                       XK_b,       togglebar,      {0} },
         { MODKEY,                       XK_j,       focusstack,     {.i = +1 } },
         { MODKEY,                       XK_k,       focusstack,     {.i = -1 } },
         { MODKEY|ShiftMask,             XK_j,       pushdown,       {.i = +1 } },
         { MODKEY|ShiftMask,             XK_k,       pushup,         {.i = -1 } },
+        { MODKEY|Mod4Mask,              XK_j,       pushmdown,       {.i = +1 } },
+        { MODKEY|Mod4Mask,              XK_k,       pushmup,         {.i = -1 } },
 	{ MODKEY|ControlMask,           XK_k,       setcfact,       {.f = +0.25} },
 	{ MODKEY|ControlMask,           XK_j,       setcfact,       {.f = -0.25} },
 	{ MODKEY|ControlMask,           XK_o,       setcfact,       {.f =  0.00} },
diff --git a/dwm.c b/dwm.c
index 603497c..aa637c0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1662,6 +1662,50 @@ pushup(const Arg *arg) {
 	arrange(selmon);
 }
 
+void
+pushmdown(const Arg *arg) {
+	Client *sel = selmon->sel, *c;
+
+	if(!sel || sel->isfloating || sel == nexttiled(selmon->clients))
+		return;
+	if((c = nexttiled(sel->next))) {
+		detach(sel);
+		sel->next = c->next;
+		c->next = sel;
+        } else {
+                detach(sel);
+                attach(sel);
+	}
+	focus(sel);
+	arrange(selmon);
+}
+
+void
+pushmup(const Arg *arg) {
+	Client *sel = selmon->sel, *c;
+
+	if(!sel || sel->isfloating)
+		return;
+	if((c = prevtiled(sel))) {
+		detach(sel);
+		sel->next = c;
+                if(selmon->clients == c)
+                        selmon->clients = sel;
+                else {
+                        for(c = selmon->clients; c->next != sel->next; c = c->next);
+		        c->next = sel;
+                }
+        } else {
+                for(c = sel; c->next; c = c->next);
+                detach(sel);
+                sel->next = NULL;
+                c->next = sel;
+	}
+	focus(sel);
+	arrange(selmon);
+}
+
+
 void
 quit(const Arg *arg)
 {