From bd524f38f4d73a72fbbdb186b98c345f29b7dc31 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 20:15:02 +0100 Subject: [PATCH 01/50] adding config --- config.def.h | 98 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 67 insertions(+), 31 deletions(-) diff --git a/config.def.h b/config.def.h index 1c0b587..0224351 100644 --- a/config.def.h +++ b/config.def.h @@ -1,11 +1,14 @@ /* See LICENSE file for copyright and license details. */ +/* for media keys */ +#include + /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; +static const char *fonts[] = { "Symbola:size=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -26,9 +29,10 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 1, -1 }, }; /* layout(s) */ @@ -44,7 +48,7 @@ static const Layout layouts[] = { }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -56,34 +60,67 @@ static const Layout layouts[] = { /* commands */ 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 *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *browsercmd[] = { "firefox", NULL }; +static const char *filecmd[] = {"st", "-e", "vifm", NULL }; +static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; +static const char *mailcmd[] = {"thunderbird", NULL }; +static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; +static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; +static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; +static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; static Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, togglebar, {0} }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XK_space, setlayout, {0} }, - { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + /* modifier key function argument */ + { MODKEY|ShiftMask, XK_Escape, quit, {0} }, + { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, spawn, {.v = browsercmd } }, + { MODKEY|ShiftMask, XK_b, togglebar, {0} }, + { MODKEY, XK_d, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_f, spawn, {.v = filecmd } }, + { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_h, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_h, zoom, {0} }, + { MODKEY, XK_i, spawn, {.v = javaidecmd } }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY|ShiftMask, XK_j, zoom, {0} }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_k, zoom, {0} }, + { MODKEY, XK_l, focusstack, {.i = +1 } }, + { MODKEY, XK_m, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, + { MODKEY, XK_p, spawn, {.v = musiccmd } }, + { MODKEY, XK_q, killclient, {0} }, + { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, + { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_z, setmfact, {.f = -0.05} }, + { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, + { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, + { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, + { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, + { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, + { MODKEY, XK_F10, spawn, {.v = lockcmd } }, + { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, + { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, + { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, + { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, + //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, + //{ MODKEY|ShiftMask, XK_d, togglefloating, {0} }, + //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, + //{ MODKEY, XK_space, setlayout, {0} }, + //{ MODKEY, XK_0, view, {.ui = ~0 } }, + //{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + //{ MODKEY, XK_comma, focusmon, {.i = -1 } }, + //{ MODKEY, XK_period, focusmon, {.i = +1 } }, + //{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + //{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + //{ MODKEY, XK_F5, xrdb, {.v = NULL } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -93,7 +130,6 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, }; /* button definitions */ From 41598088e8d9391e4856b5ef9d57a66271e6ca0d Mon Sep 17 00:00:00 2001 From: Marten Kante <43725244+TiynGER@users.noreply.github.com> Date: Sat, 28 Mar 2020 23:16:11 +0100 Subject: [PATCH 02/50] Delete README --- README | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index 95d4fd0..0000000 --- a/README +++ /dev/null @@ -1,48 +0,0 @@ -dwm - dynamic window manager -============================ -dwm is an extremely fast, small, and dynamic window manager for X. - - -Requirements ------------- -In order to build dwm you need the Xlib header files. - - -Installation ------------- -Edit config.mk to match your local setup (dwm is installed into -the /usr/local namespace by default). - -Afterwards enter the following command to build and install dwm (if -necessary as root): - - make clean install - - -Running dwm ------------ -Add the following line to your .xinitrc to start dwm using startx: - - exec dwm - -In order to connect dwm to a specific display, make sure that -the DISPLAY environment variable is set correctly, e.g.: - - DISPLAY=foo.bar:1 exec dwm - -(This will start dwm on display :1 of the host foo.bar.) - -In order to display status info in the bar, you can do something -like this in your .xinitrc: - - while xsetroot -name "`date` `uptime | sed 's/.*,//'`" - do - sleep 1 - done & - exec dwm - - -Configuration -------------- -The configuration of dwm is done by creating a custom config.h -and (re)compiling the source code. From eb34580110143172aa12bec3e50d8002a2225111 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 23:29:31 +0100 Subject: [PATCH 03/50] changing font --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 0224351..8af5d02 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Symbola:size=10" }; +static const char *fonts[] = { "monospace:size=10", "Joypixels:pixelsize=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From a862f8559997561fc91ceb9fdee83f5a75aae96d Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 23:34:46 +0100 Subject: [PATCH 04/50] emoji font --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 8af5d02..5d56c69 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10", "Joypixels:pixelsize=10" }; +static const char *fonts[] = { "emoji:size=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From 5e34669153c601d1dec540654ea6e212209f0089 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 23:36:49 +0100 Subject: [PATCH 05/50] no emoji font --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 5d56c69..89db6d1 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "emoji:size=10" }; +static const char *fonts[] = { "monospace:size=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From fd2380004321c736f8c220d1c95b8b2a3c56293e Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 23:42:18 +0100 Subject: [PATCH 06/50] maybe inconsolata --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 89db6d1..ea239a2 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; +static const char *fonts[] = { "Inconsolata Mono:size=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From b7c7db8d3d49619d5fc206b05fea7baa7ca4defc Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 28 Mar 2020 23:46:13 +0100 Subject: [PATCH 07/50] bigger? --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index ea239a2..bd8b21c 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Inconsolata Mono:size=10" }; +static const char *fonts[] = { "Inconsolata Mono:size=12" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From 66c73c08ab506e78370028faf5437f4dca461137 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 00:07:43 +0100 Subject: [PATCH 08/50] change colors --- config.def.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index bd8b21c..1a202d1 100644 --- a/config.def.h +++ b/config.def.h @@ -10,11 +10,11 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "Inconsolata Mono:size=12" }; static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; +static const char col_gray1[] = "#000000"; +static const char col_gray2[] = "#000000"; +static const char col_gray3[] = "#a5a2a2"; +static const char col_gray4[] = "#a5a2a2"; +static const char col_cyan[] = "#ffa500"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, From 71a8ed6bb0fd64cef08ebd24fa2cd04d31a70253 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 00:21:38 +0100 Subject: [PATCH 09/50] friendship with cyan over, orange is my new best friend --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 1a202d1..4f4d1cd 100644 --- a/config.def.h +++ b/config.def.h @@ -10,10 +10,10 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "Inconsolata Mono:size=12" }; static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#000000"; -static const char col_gray2[] = "#000000"; -static const char col_gray3[] = "#a5a2a2"; -static const char col_gray4[] = "#a5a2a2"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const char col_gray3[] = "#f7f7f7"; +static const char col_gray4[] = "#000000"; static const char col_cyan[] = "#ffa500"; static const char *colors[][3] = { /* fg bg border */ From ed5afc2a288c34684e3b7461a26970d4695805b5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 00:28:34 +0100 Subject: [PATCH 10/50] minor fixes in shortcuts --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 4f4d1cd..84cc436 100644 --- a/config.def.h +++ b/config.def.h @@ -77,7 +77,7 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - { MODKEY, XK_d, setlayout, {.v = &layouts[1]} }, + { MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_f, spawn, {.v = filecmd } }, { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, @@ -94,7 +94,7 @@ static Key keys[] = { { MODKEY, XK_q, killclient, {0} }, { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, From 9e0818634f71a9ffc094d7542698bb1c3a95fb50 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 00:31:40 +0100 Subject: [PATCH 11/50] new border --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 84cc436..92f93ed 100644 --- a/config.def.h +++ b/config.def.h @@ -18,7 +18,7 @@ static const char col_cyan[] = "#ffa500"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, }; /* tagging */ From d1fb53de7d34c84e953b15c8e55196311667a9ac Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 11:23:44 +0200 Subject: [PATCH 12/50] enable color emojis --- drw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drw.c b/drw.c index 8fd1ca4..0d2bfcb 100644 --- a/drw.c +++ b/drw.c @@ -139,11 +139,11 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 * and lots more all over the internet. */ - FcBool iscol; + /*FcBool iscol; if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { XftFontClose(drw->dpy, xfont); return NULL; - } + }*/ font = ecalloc(1, sizeof(Fnt)); font->xfont = xfont; From d4c979c649e2986b1700b6b8e6757bd316cd8194 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 11:34:27 +0200 Subject: [PATCH 13/50] new font --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 92f93ed..fb7e6ef 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Inconsolata Mono:size=12" }; +static const char *fonts[] = { "monospace:size=10" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; From 643db6de4ce5f62c4effee305ff21fd41878a4ea Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 16:19:37 +0200 Subject: [PATCH 14/50] toggle floating added --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index fb7e6ef..4ee82cc 100644 --- a/config.def.h +++ b/config.def.h @@ -77,7 +77,7 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - { MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[1]} }, + { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, { MODKEY, XK_f, spawn, {.v = filecmd } }, { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, From 1eb5dafe1d84521a02be13a932d149883a627eef Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 16:21:22 +0200 Subject: [PATCH 15/50] removing unneeded line --- config.def.h | 1 - 1 file changed, 1 deletion(-) diff --git a/config.def.h b/config.def.h index 4ee82cc..c89dbf3 100644 --- a/config.def.h +++ b/config.def.h @@ -111,7 +111,6 @@ static Key keys[] = { { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_d, togglefloating, {0} }, //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, //{ MODKEY, XK_space, setlayout, {0} }, //{ MODKEY, XK_0, view, {.ui = ~0 } }, From 4c2c587c0a2edf7d8f745a45d916d6ade57c09a9 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 16:23:15 +0200 Subject: [PATCH 16/50] adding README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1dd58aa --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# dwm +This is my patched version of dwm. The base version is directly from suckless.org. +This belongs to my larbs installation script and depends heavily on its scripts and programs. +It is supposed to work in the environment after the larbs-base-installation. + +## Patches +The list below shows the currently applied patches to the master branch. +- dwm-alpha-6.2.diff From 08c631234ce47650afcc692463b7e15c5a230ffd Mon Sep 17 00:00:00 2001 From: Marten Kante <43725244+TiynGER@users.noreply.github.com> Date: Sun, 29 Mar 2020 17:30:57 +0200 Subject: [PATCH 17/50] Update README.md --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.md b/README.md index 1dd58aa..5e3a1e8 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,45 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff + +## Hotkeys +There are various shortcuts and hotkeys used in this version. Included in my build are the following. +``` +Super + Shift + Escape -> Quit dwm +Super + Return -> Spawn st +Super + b -> Spawn firefox +Super + Shift + b -> Toggle dwmbar +Super + Shift + d -> Toggle floating/tiled for selected window +Super + f -> Spawn vifm in st +Super + Shift + f -> Enable fullscreen layout +Super + h -> (Tiling) Focus window higher in stack than current +Super + Shift + h -> (Tiling) Make current window the master window +Super + i -> Spawn intellij-idea-ultimate-edition +Super + j -> (Tiling) Focus window lower in stack than current +Super + Shift + j -> (Tiling) Make current window the master window +Super + k -> (Tiling) Focus window higher in stack than current +Super + Shift + k -> (Tiling) Make current window the master window +Super + l -> (Tiling) Focus window lower in stack than current +Super + m -> Spawn thunderbird +Super + Shift + o -> (Tiling) Increase master window size +Super + p -> Spawn ncmpcpp in st +Super + q -> Close current window +Super + Shift + r -> (dmenu) dmenu_run +Super + s -> (dmenu) startpagesearch +Super + Shift + t -> Enable tiling layout +Super + z -> (Tiling) Decrease master window size +Super + F5 -> enable 2 Screen Monitor +Super + F6 -> toggle touchpad +Super + F7 -> (dmenu) mounting drives +Super + F8 -> (dmenu) unmounting drives +Super + F9 -> Restart NetworkManager +Super + F10 -> (dmenu) prompt, if yes: slock +Super + F11 -> (dmenu) prompt, if yes: reboot +Super + F12 -> (dmenu) prompt, if yes: shutdown + AudioMute -> Volume mute + AudioMicMute -> Mic Mute + AudioLowerVolume -> Volume lower + AudioRaiseVolume -> Volume raise + MonBrightnessDown -> Brightness decrease + MonBrightnessUp -> Brightness increase +``` From fb9efccff1a3e470d9d851fdcff578f5d87f5296 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 21:57:52 +0200 Subject: [PATCH 18/50] minor changes to config.h --- README.md | 2 +- config.def.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5e3a1e8..21da4f6 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Super + q -> Close current window Super + Shift + r -> (dmenu) dmenu_run Super + s -> (dmenu) startpagesearch Super + Shift + t -> Enable tiling layout -Super + z -> (Tiling) Decrease master window size +Super + Shift + z -> (Tiling) Decrease master window size Super + F5 -> enable 2 Screen Monitor Super + F6 -> toggle touchpad Super + F7 -> (dmenu) mounting drives diff --git a/config.def.h b/config.def.h index c89dbf3..e50c3d4 100644 --- a/config.def.h +++ b/config.def.h @@ -36,7 +36,7 @@ static const Rule rules[] = { }; /* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ @@ -95,7 +95,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_z, setmfact, {.f = -0.05} }, + { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, From c40dc12e8ca9b0b207bd36370108526dcc0cde82 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 29 Mar 2020 22:05:42 +0200 Subject: [PATCH 19/50] enabling 0 tag --- README.md | 4 ++++ config.def.h | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 21da4f6..0125a64 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,10 @@ Super + Shift + r -> (dmenu) dmenu_run Super + s -> (dmenu) startpagesearch Super + Shift + t -> Enable tiling layout Super + Shift + z -> (Tiling) Decrease master window size +Super + 0 -> Show all tags +Super + Shift + 0 -> Add current window to all tag +Super + + 1/2/.../9 -> Shot tag 1/2/.../9 +Super + Shift + 1/2/.../9 -> Add current window to tag 1/2/.../9 Super + F5 -> enable 2 Screen Monitor Super + F6 -> toggle touchpad Super + F7 -> (dmenu) mounting drives diff --git a/config.def.h b/config.def.h index e50c3d4..6bb2361 100644 --- a/config.def.h +++ b/config.def.h @@ -96,6 +96,8 @@ static Key keys[] = { { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, @@ -113,13 +115,10 @@ static Key keys[] = { //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, //{ MODKEY, XK_space, setlayout, {0} }, - //{ MODKEY, XK_0, view, {.ui = ~0 } }, - //{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, //{ MODKEY, XK_comma, focusmon, {.i = -1 } }, //{ MODKEY, XK_period, focusmon, {.i = +1 } }, //{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, //{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - //{ MODKEY, XK_F5, xrdb, {.v = NULL } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) From c98f008b1e15b95f7563b35bedb33b88edd75a75 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 30 Mar 2020 15:14:18 +0200 Subject: [PATCH 20/50] thats the right one --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0125a64..d8faa6b 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff +- dwm-noborder-6.2.diff ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. From eb0271878bfa2739574ae88ec18ef8b7db1d6c42 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 30 Mar 2020 17:13:55 +0200 Subject: [PATCH 21/50] monitor keys added --- README.md | 8 ++++++-- config.def.h | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d8faa6b..b90ee23 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,12 @@ Super + Shift + t -> Enable tiling layout Super + Shift + z -> (Tiling) Decrease master window size Super + 0 -> Show all tags Super + Shift + 0 -> Add current window to all tag -Super + + 1/2/.../9 -> Shot tag 1/2/.../9 -Super + Shift + 1/2/.../9 -> Add current window to tag 1/2/.../9 +Super + + 1/2/.../9 -> Show tag 1/2/.../9 +Super + Shift + 1/2/.../9 -> Add current window to tag 1/2/.../9 +Super + + . -> Show monitor lower in stack +Super + Shift + . -> Add to monitor lower in stack +Super + + , -> Show monitor higher in stack +Super + Shift + , -> Add to monitor higher in stack Super + F5 -> enable 2 Screen Monitor Super + F6 -> toggle touchpad Super + F7 -> (dmenu) mounting drives diff --git a/config.def.h b/config.def.h index 6bb2361..99690a1 100644 --- a/config.def.h +++ b/config.def.h @@ -98,6 +98,10 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, @@ -115,10 +119,6 @@ static Key keys[] = { //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, //{ MODKEY, XK_space, setlayout, {0} }, - //{ MODKEY, XK_comma, focusmon, {.i = -1 } }, - //{ MODKEY, XK_period, focusmon, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - //{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) From 90d5ce64d7fa10de373b0896a239e65fc476df01 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 30 Mar 2020 21:19:19 +0200 Subject: [PATCH 22/50] fixing font for emojis --- config.def.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 99690a1..d7777fc 100644 --- a/config.def.h +++ b/config.def.h @@ -8,10 +8,12 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; +static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; +static const unsigned int baralpha = 0xd0; +static const unsigned int borderalpha = OPAQUE; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; static const char col_cyan[] = "#ffa500"; @@ -20,6 +22,11 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, }; +static const unsigned int alphas[][3] = { + /* fg bg border */ + [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, + [SchemeSel] = { OPAQUE, baralpha, borderalpha }, +}; /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; From b1d4290a008b0b8c45cf293582dca133c13586f4 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 09:57:22 +0200 Subject: [PATCH 23/50] update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b90ee23..1f08976 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ It is supposed to work in the environment after the larbs-base-installation. The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff - dwm-noborder-6.2.diff +- dwm-pertag-20170513-ceac8c9.diff ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. From 2314f013d83dde90d90bfdce2010b6305922db42 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:05:22 +0200 Subject: [PATCH 24/50] updating readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1f08976..f2909d0 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff +- dwm-fakefullscreen-20170508-ceac8c9.diff - dwm-noborder-6.2.diff - dwm-pertag-20170513-ceac8c9.diff From 685c69599ec27619534f57504ec58e264b9eee18 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:12:04 +0200 Subject: [PATCH 25/50] new config for new patch --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index d7777fc..256d912 100644 --- a/config.def.h +++ b/config.def.h @@ -36,10 +36,10 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, - { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 1, -1 }, + /* class instance title tags mask isCentered isfloating monitor */ + { "Gimp", NULL, NULL, 0, 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, + { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, }; /* layout(s) */ From 8c92c1941da0ffa871788808f5a5c2121d11600b Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:13:48 +0200 Subject: [PATCH 26/50] updating readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f2909d0..9343de2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff +- dwm-center-6.1.diff - dwm-fakefullscreen-20170508-ceac8c9.diff - dwm-noborder-6.2.diff - dwm-pertag-20170513-ceac8c9.diff From 9ea35a00a9131a79a87974c7122c1dd5a88e10bd Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:20:02 +0200 Subject: [PATCH 27/50] new option --- config.def.h | 1 + 1 file changed, 1 insertion(+) diff --git a/config.def.h b/config.def.h index 256d912..0426bca 100644 --- a/config.def.h +++ b/config.def.h @@ -84,6 +84,7 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, + { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[3]} }, { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, { MODKEY, XK_f, spawn, {.v = filecmd } }, { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[2]} }, From 37fa8a2f71d0e6737e8687909b33b9b7bd0e036a Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:20:57 +0200 Subject: [PATCH 28/50] updates for new deck layout --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9343de2..5953683 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ It is supposed to work in the environment after the larbs-base-installation. The list below shows the currently applied patches to the master branch. - dwm-alpha-6.2.diff - dwm-center-6.1.diff +- dwm-deck-6.0.diff - dwm-fakefullscreen-20170508-ceac8c9.diff - dwm-noborder-6.2.diff - dwm-pertag-20170513-ceac8c9.diff From 3807c7106dc9cf58696fd5de7c5a0e52f8018cc9 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 10:37:20 +0200 Subject: [PATCH 29/50] update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5953683..f6f93be 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Super + Shift + Escape -> Quit dwm Super + Return -> Spawn st Super + b -> Spawn firefox Super + Shift + b -> Toggle dwmbar +Super + Shift + c -> Enable deck(/card) layout Super + Shift + d -> Toggle floating/tiled for selected window Super + f -> Spawn vifm in st Super + Shift + f -> Enable fullscreen layout From 92abb3b3043edd5729b1b27e57fd5f7c027fa9c1 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 11:06:24 +0200 Subject: [PATCH 30/50] update readme --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f6f93be..b02258a 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. -- dwm-alpha-6.2.diff -- dwm-center-6.1.diff -- dwm-deck-6.0.diff -- dwm-fakefullscreen-20170508-ceac8c9.diff -- dwm-noborder-6.2.diff -- dwm-pertag-20170513-ceac8c9.diff +- dwm-alpha-6.2.diff (adds transparency) +- dwm-center-6.1.diff (adds ability to center floating windows at launch) +- dwm-deck-6.0.diff (adds deck layout) +- dwm-fakefullscreen-20170508-ceac8c9.diff (allows windows to only use their window as 'fullscreen') +- dwm-noborder-6.2.diff (removes border if there is only one window) +- dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. @@ -23,22 +23,22 @@ Super + Shift + c -> Enable deck(/card) layout Super + Shift + d -> Toggle floating/tiled for selected window Super + f -> Spawn vifm in st Super + Shift + f -> Enable fullscreen layout -Super + h -> (Tiling) Focus window higher in stack than current -Super + Shift + h -> (Tiling) Make current window the master window +Super + h -> (Tiling/Deck) Focus window higher in stack than current +Super + Shift + h -> (Tiling/Deck) Make current window the master window Super + i -> Spawn intellij-idea-ultimate-edition -Super + j -> (Tiling) Focus window lower in stack than current -Super + Shift + j -> (Tiling) Make current window the master window -Super + k -> (Tiling) Focus window higher in stack than current -Super + Shift + k -> (Tiling) Make current window the master window -Super + l -> (Tiling) Focus window lower in stack than current +Super + j -> (Tiling/Deck) Focus window lower in stack than current +Super + Shift + j -> (Tiling/Deck) Make current window the master window +Super + k -> (Tiling/Deck) Focus window higher in stack than current +Super + Shift + k -> (Tiling/Deck) Make current window the master window +Super + l -> (Tiling/Deck) Focus window lower in stack than current Super + m -> Spawn thunderbird -Super + Shift + o -> (Tiling) Increase master window size +Super + Shift + o -> (Tiling/Deck) Increase master window size Super + p -> Spawn ncmpcpp in st Super + q -> Close current window Super + Shift + r -> (dmenu) dmenu_run Super + s -> (dmenu) startpagesearch Super + Shift + t -> Enable tiling layout -Super + Shift + z -> (Tiling) Decrease master window size +Super + Shift + z -> (Tiling/Deck) Decrease master window size Super + 0 -> Show all tags Super + Shift + 0 -> Add current window to all tag Super + + 1/2/.../9 -> Show tag 1/2/.../9 From f0d878b8a23fdca4a5fe3c25ec5904fa77d28829 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 15:15:25 +0200 Subject: [PATCH 31/50] formatting readme --- README.md | 96 +++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index b02258a..50e751f 100644 --- a/README.md +++ b/README.md @@ -14,51 +14,51 @@ The list below shows the currently applied patches to the master branch. ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. -``` -Super + Shift + Escape -> Quit dwm -Super + Return -> Spawn st -Super + b -> Spawn firefox -Super + Shift + b -> Toggle dwmbar -Super + Shift + c -> Enable deck(/card) layout -Super + Shift + d -> Toggle floating/tiled for selected window -Super + f -> Spawn vifm in st -Super + Shift + f -> Enable fullscreen layout -Super + h -> (Tiling/Deck) Focus window higher in stack than current -Super + Shift + h -> (Tiling/Deck) Make current window the master window -Super + i -> Spawn intellij-idea-ultimate-edition -Super + j -> (Tiling/Deck) Focus window lower in stack than current -Super + Shift + j -> (Tiling/Deck) Make current window the master window -Super + k -> (Tiling/Deck) Focus window higher in stack than current -Super + Shift + k -> (Tiling/Deck) Make current window the master window -Super + l -> (Tiling/Deck) Focus window lower in stack than current -Super + m -> Spawn thunderbird -Super + Shift + o -> (Tiling/Deck) Increase master window size -Super + p -> Spawn ncmpcpp in st -Super + q -> Close current window -Super + Shift + r -> (dmenu) dmenu_run -Super + s -> (dmenu) startpagesearch -Super + Shift + t -> Enable tiling layout -Super + Shift + z -> (Tiling/Deck) Decrease master window size -Super + 0 -> Show all tags -Super + Shift + 0 -> Add current window to all tag -Super + + 1/2/.../9 -> Show tag 1/2/.../9 -Super + Shift + 1/2/.../9 -> Add current window to tag 1/2/.../9 -Super + + . -> Show monitor lower in stack -Super + Shift + . -> Add to monitor lower in stack -Super + + , -> Show monitor higher in stack -Super + Shift + , -> Add to monitor higher in stack -Super + F5 -> enable 2 Screen Monitor -Super + F6 -> toggle touchpad -Super + F7 -> (dmenu) mounting drives -Super + F8 -> (dmenu) unmounting drives -Super + F9 -> Restart NetworkManager -Super + F10 -> (dmenu) prompt, if yes: slock -Super + F11 -> (dmenu) prompt, if yes: reboot -Super + F12 -> (dmenu) prompt, if yes: shutdown - AudioMute -> Volume mute - AudioMicMute -> Mic Mute - AudioLowerVolume -> Volume lower - AudioRaiseVolume -> Volume raise - MonBrightnessDown -> Brightness decrease - MonBrightnessUp -> Brightness increase -``` +| ModKey | Shift | Key | Function | +| ------ | ----- | ----------------- | --------------------------------------------------------- | +| Super | Shift | Escape | Quit dwm | +| Super | | Return | Spawn st | +| Super | | b | Spawn firefox | +| Super | Shift | b | Toggle dwmbar | +| Super | Shift | c | Enable deck(/card) layout | +| Super | Shift | d | Toggle floating/tiled for selected window | +| Super | | f | Spawn vifm in st | +| Super | Shift | f | Enable fullscreen layout | +| Super | | h | (Tiling/Deck) Focus window higher in stack than current | +| Super | Shift | h | (Tiling/Deck) Make current window the master window | +| Super | | i | Spawn intellij-idea-ultimate-edition | +| Super | | j | (Tiling/Deck) Focus window lower in stack than current | +| Super | Shift | j | (Tiling/Deck) Make current window the master window | +| Super | | k | (Tiling/Deck) Focus window higher in stack than current | +| Super | Shift | k | (Tiling/Deck) Make current window the master window | +| Super | | l | (Tiling/Deck) Focus window lower in stack than current | +| Super | | m | Spawn thunderbird | +| Super | Shift | o | (Tiling/Deck) Increase master window size | +| Super | | p | Spawn ncmpcpp in st | +| Super | | q | Close current window | +| Super | Shift | r | (dmenu) dmenu_run | +| Super | | s | (dmenu) startpagesearch | +| Super | Shift | t | Enable tiling layout | +| Super | Shift | z | (Tiling/Deck) Decrease master window size | +| Super | | 0 | Show all tags | +| Super | Shift | 0 | Add current window to all tag | +| Super | | 1/2/.../9 | Show tag 1/2/.../9 | +| Super | Shift | 1/2/.../9 | Add current window to tag 1/2/.../9 | +| Super | | . | Show monitor lower in stack | +| Super | Shift | . | Add to monitor lower in stack | +| Super | | , | Show monitor higher in stack | +| Super | Shift | , | Add to monitor higher in stack | +| Super | | F5 | enable 2 Screen Monitor | +| Super | | F6 | toggle touchpad | +| Super | | F7 | (dmenu) mounting drives | +| Super | | F8 | (dmenu) unmounting drives | +| Super | | F9 | Restart NetworkManager | +| Super | | F10 | (dmenu) prompt, if yes: slock | +| Super | | F11 | (dmenu) prompt, if yes: reboot | +| Super | | F12 | (dmenu) prompt, if yes: shutdown | +| | | AudioMute | Volume mute | +| | | AudioMicMute | Mic Mute | +| | | AudioLowerVolume | Volume lower | +| | | AudioRaiseVolume | Volume raise | +| | | MonBrightnessDown | Brightness decrease | +| | | MonBrightnessUp | Brightness increase | From da3b3a372ca58226090ea15c09f8a26a4f015977 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 31 Mar 2020 20:20:57 +0200 Subject: [PATCH 32/50] its preview time --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 0426bca..532f8dc 100644 --- a/config.def.h +++ b/config.def.h @@ -70,7 +70,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; static const char *termcmd[] = { "st", NULL }; static const char *browsercmd[] = { "firefox", NULL }; -static const char *filecmd[] = {"st", "-e", "vifm", NULL }; +static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; static const char *mailcmd[] = {"thunderbird", NULL }; static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; From 483b197eb542e340222aa56e64b852e881f8f4c9 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Thu, 2 Apr 2020 01:23:47 +0200 Subject: [PATCH 33/50] new color --- config.def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 532f8dc..415e688 100644 --- a/config.def.h +++ b/config.def.h @@ -16,7 +16,7 @@ static const unsigned int baralpha = 0xd0; static const unsigned int borderalpha = OPAQUE; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; -static const char col_cyan[] = "#ffa500"; +static const char col_cyan[] = "#a62238"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, @@ -52,6 +52,7 @@ static const Layout layouts[] = { { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "[D]", deck }, }; /* key definitions */ From 2af267744cc6acc5dde3f90e7304fbccf127089f Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 5 Apr 2020 00:12:36 +0200 Subject: [PATCH 34/50] making Monocle the default layout --- config.def.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 415e688..df6e11f 100644 --- a/config.def.h +++ b/config.def.h @@ -49,10 +49,10 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "[]=", tile }, /* first entry is default */ { "[D]", deck }, + { "><>", NULL }, /* no layout function means floating behavior */ }; /* key definitions */ @@ -85,10 +85,10 @@ static Key keys[] = { { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[3]} }, + { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, { MODKEY, XK_f, spawn, {.v = filecmd } }, - { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[2]} }, + { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_h, zoom, {0} }, { MODKEY, XK_i, spawn, {.v = javaidecmd } }, @@ -103,7 +103,7 @@ static Key keys[] = { { MODKEY, XK_q, killclient, {0} }, { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, - { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, From e94c3b8bcded3ab1f2d2b1dc81c661d1ff918f13 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 6 Apr 2020 01:34:20 +0200 Subject: [PATCH 35/50] lets try qutebrowser --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index df6e11f..7eb5003 100644 --- a/config.def.h +++ b/config.def.h @@ -70,7 +70,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "firefox", NULL }; +static const char *browsercmd[] = { "qutebrowser", NULL }; static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; static const char *mailcmd[] = {"thunderbird", NULL }; From a3cbe17ccf43fe067a24ffe326095a206c86be3d Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 6 Apr 2020 19:08:23 +0200 Subject: [PATCH 36/50] firefox --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 7eb5003..df6e11f 100644 --- a/config.def.h +++ b/config.def.h @@ -70,7 +70,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "qutebrowser", NULL }; +static const char *browsercmd[] = { "firefox", NULL }; static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; static const char *mailcmd[] = {"thunderbird", NULL }; From 9170e1e2f2393fd072e323135449fcbbfa1cb91c Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 7 Apr 2020 22:07:27 +0200 Subject: [PATCH 37/50] missing --- config.h | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 config.h diff --git a/config.h b/config.h new file mode 100644 index 0000000..df6e11f --- /dev/null +++ b/config.h @@ -0,0 +1,158 @@ +/* See LICENSE file for copyright and license details. */ + +/* for media keys */ +#include + +/* appearance */ +static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const unsigned int baralpha = 0xd0; +static const unsigned int borderalpha = OPAQUE; +static const char col_gray3[] = "#f7f7f7"; +static const char col_gray4[] = "#000000"; +static const char col_cyan[] = "#a62238"; +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, +}; +static const unsigned int alphas[][3] = { + /* fg bg border */ + [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, + [SchemeSel] = { OPAQUE, baralpha, borderalpha }, +}; + +/* tagging */ +static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; + +static const Rule rules[] = { + /* xprop(1): + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ + /* class instance title tags mask isCentered isfloating monitor */ + { "Gimp", NULL, NULL, 0, 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, + { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, +}; + +/* layout(s) */ +static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ +static const int nmaster = 1; /* number of clients in master area */ +static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ + +static const Layout layouts[] = { + /* symbol arrange function */ + { "[M]", monocle }, + { "[]=", tile }, /* first entry is default */ + { "[D]", deck }, + { "><>", NULL }, /* no layout function means floating behavior */ +}; + +/* key definitions */ +#define MODKEY Mod4Mask +#define TAGKEYS(KEY,TAG) \ + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + +/* helper for spawning shell commands in the pre dwm-5.0 fashion */ +#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* commands */ +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ +static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; +static const char *termcmd[] = { "st", NULL }; +static const char *browsercmd[] = { "firefox", NULL }; +static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; +static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; +static const char *mailcmd[] = {"thunderbird", NULL }; +static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; +static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; +static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; +static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; + +static Key keys[] = { + /* modifier key function argument */ + { MODKEY|ShiftMask, XK_Escape, quit, {0} }, + { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, spawn, {.v = browsercmd } }, + { MODKEY|ShiftMask, XK_b, togglebar, {0} }, + { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, + { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, + { MODKEY, XK_f, spawn, {.v = filecmd } }, + { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_h, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_h, zoom, {0} }, + { MODKEY, XK_i, spawn, {.v = javaidecmd } }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY|ShiftMask, XK_j, zoom, {0} }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_k, zoom, {0} }, + { MODKEY, XK_l, focusstack, {.i = +1 } }, + { MODKEY, XK_m, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, + { MODKEY, XK_p, spawn, {.v = musiccmd } }, + { MODKEY, XK_q, killclient, {0} }, + { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, + { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, + { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, + { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, + { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, + { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, + { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, + { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, + { MODKEY, XK_F10, spawn, {.v = lockcmd } }, + { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, + { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, + { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, + { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, + //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, + //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, + //{ MODKEY, XK_space, setlayout, {0} }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) +}; + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static Button buttons[] = { + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, +}; + From 0e09a836d346bd620d96b820b30f7f4d4a86e5b3 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 7 Apr 2020 22:09:01 +0200 Subject: [PATCH 38/50] rm config.h --- config.h | 158 ------------------------------------------------------- 1 file changed, 158 deletions(-) delete mode 100644 config.h diff --git a/config.h b/config.h deleted file mode 100644 index df6e11f..0000000 --- a/config.h +++ /dev/null @@ -1,158 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -/* for media keys */ -#include - -/* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; -static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const unsigned int baralpha = 0xd0; -static const unsigned int borderalpha = OPAQUE; -static const char col_gray3[] = "#f7f7f7"; -static const char col_gray4[] = "#000000"; -static const char col_cyan[] = "#a62238"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, -}; -static const unsigned int alphas[][3] = { - /* fg bg border */ - [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, - [SchemeSel] = { OPAQUE, baralpha, borderalpha }, -}; - -/* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; - -static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - /* class instance title tags mask isCentered isfloating monitor */ - { "Gimp", NULL, NULL, 0, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, - { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, -}; - -/* layout(s) */ -static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ - -static const Layout layouts[] = { - /* symbol arrange function */ - { "[M]", monocle }, - { "[]=", tile }, /* first entry is default */ - { "[D]", deck }, - { "><>", NULL }, /* no layout function means floating behavior */ -}; - -/* key definitions */ -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "firefox", NULL }; -static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; -static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; -static const char *mailcmd[] = {"thunderbird", NULL }; -static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; -static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; -static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; -static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; - -static Key keys[] = { - /* modifier key function argument */ - { MODKEY|ShiftMask, XK_Escape, quit, {0} }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, spawn, {.v = browsercmd } }, - { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, - { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, - { MODKEY, XK_f, spawn, {.v = filecmd } }, - { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_h, focusstack, {.i = -1 } }, - { MODKEY|ShiftMask, XK_h, zoom, {0} }, - { MODKEY, XK_i, spawn, {.v = javaidecmd } }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY|ShiftMask, XK_j, zoom, {0} }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY|ShiftMask, XK_k, zoom, {0} }, - { MODKEY, XK_l, focusstack, {.i = +1 } }, - { MODKEY, XK_m, spawn, {.v = mailcmd } }, - { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, - { MODKEY, XK_p, spawn, {.v = musiccmd } }, - { MODKEY, XK_q, killclient, {0} }, - { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, - { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, - { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, - { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, - { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, - { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, - { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, - { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, - { MODKEY, XK_F10, spawn, {.v = lockcmd } }, - { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, - { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, - { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, - { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, - { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, - { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, - { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, - { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, - //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, - //{ MODKEY, XK_space, setlayout, {0} }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - From 0edb06f6774c011283c44657e894ad4b8a5761a5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 7 Apr 2020 22:27:48 +0200 Subject: [PATCH 39/50] new config --- README.md | 3 ++- config.def.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50e751f..6fcbf44 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | Super | Shift | c | Enable deck(/card) layout | | Super | Shift | d | Toggle floating/tiled for selected window | | Super | | f | Spawn vifm in st | -| Super | Shift | f | Enable fullscreen layout | +| Super | Shift | f | Toggle fullscreen | | Super | | h | (Tiling/Deck) Focus window higher in stack than current | | Super | Shift | h | (Tiling/Deck) Make current window the master window | | Super | | i | Spawn intellij-idea-ultimate-edition | @@ -33,6 +33,7 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | Super | Shift | k | (Tiling/Deck) Make current window the master window | | Super | | l | (Tiling/Deck) Focus window lower in stack than current | | Super | | m | Spawn thunderbird | +| Super | Shift | m | Enable monocle layout | | Super | Shift | o | (Tiling/Deck) Increase master window size | | Super | | p | Spawn ncmpcpp in st | | Super | | q | Close current window | diff --git a/config.def.h b/config.def.h index df6e11f..3c04e2f 100644 --- a/config.def.h +++ b/config.def.h @@ -88,7 +88,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, { MODKEY, XK_f, spawn, {.v = filecmd } }, - { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[0]} }, + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_h, zoom, {0} }, { MODKEY, XK_i, spawn, {.v = javaidecmd } }, @@ -98,6 +98,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_k, zoom, {0} }, { MODKEY, XK_l, focusstack, {.i = +1 } }, { MODKEY, XK_m, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[0]} }, { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, { MODKEY, XK_p, spawn, {.v = musiccmd } }, { MODKEY, XK_q, killclient, {0} }, From e173a53c7f3bbc4ffb8ef3f8d5bece782c1e8b55 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 7 Apr 2020 22:32:13 +0200 Subject: [PATCH 40/50] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fcbf44..c75d189 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. +- dwm-actualfullscreen-20191112-cb3f58a.diff (enables true fullscreen) - dwm-alpha-6.2.diff (adds transparency) - dwm-center-6.1.diff (adds ability to center floating windows at launch) - dwm-deck-6.0.diff (adds deck layout) -- dwm-fakefullscreen-20170508-ceac8c9.diff (allows windows to only use their window as 'fullscreen') - dwm-noborder-6.2.diff (removes border if there is only one window) - dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) From 8fc905a914bb0409726b529207f08b800c1e3f35 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 18 Apr 2020 22:23:36 +0200 Subject: [PATCH 41/50] disabled alpha tmp --- config.def.h | 4 +- config.h | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 config.h diff --git a/config.def.h b/config.def.h index 3c04e2f..1f12ffd 100644 --- a/config.def.h +++ b/config.def.h @@ -12,8 +12,8 @@ static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:s static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; -static const unsigned int baralpha = 0xd0; -static const unsigned int borderalpha = OPAQUE; +static const unsigned int baralpha = 0xff; +static const unsigned int borderalpha = 0xff; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; static const char col_cyan[] = "#a62238"; diff --git a/config.h b/config.h new file mode 100644 index 0000000..1f12ffd --- /dev/null +++ b/config.h @@ -0,0 +1,159 @@ +/* See LICENSE file for copyright and license details. */ + +/* for media keys */ +#include + +/* appearance */ +static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; +static const char dmenufont[] = "monospace:size=10"; +static const char col_gray1[] = "#222222"; +static const char col_gray2[] = "#444444"; +static const unsigned int baralpha = 0xff; +static const unsigned int borderalpha = 0xff; +static const char col_gray3[] = "#f7f7f7"; +static const char col_gray4[] = "#000000"; +static const char col_cyan[] = "#a62238"; +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, +}; +static const unsigned int alphas[][3] = { + /* fg bg border */ + [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, + [SchemeSel] = { OPAQUE, baralpha, borderalpha }, +}; + +/* tagging */ +static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; + +static const Rule rules[] = { + /* xprop(1): + * WM_CLASS(STRING) = instance, class + * WM_NAME(STRING) = title + */ + /* class instance title tags mask isCentered isfloating monitor */ + { "Gimp", NULL, NULL, 0, 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, + { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, +}; + +/* layout(s) */ +static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ +static const int nmaster = 1; /* number of clients in master area */ +static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ + +static const Layout layouts[] = { + /* symbol arrange function */ + { "[M]", monocle }, + { "[]=", tile }, /* first entry is default */ + { "[D]", deck }, + { "><>", NULL }, /* no layout function means floating behavior */ +}; + +/* key definitions */ +#define MODKEY Mod4Mask +#define TAGKEYS(KEY,TAG) \ + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + +/* helper for spawning shell commands in the pre dwm-5.0 fashion */ +#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } + +/* commands */ +static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ +static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; +static const char *termcmd[] = { "st", NULL }; +static const char *browsercmd[] = { "firefox", NULL }; +static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; +static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; +static const char *mailcmd[] = {"thunderbird", NULL }; +static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; +static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; +static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; +static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; + +static Key keys[] = { + /* modifier key function argument */ + { MODKEY|ShiftMask, XK_Escape, quit, {0} }, + { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, spawn, {.v = browsercmd } }, + { MODKEY|ShiftMask, XK_b, togglebar, {0} }, + { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, + { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, + { MODKEY, XK_f, spawn, {.v = filecmd } }, + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, + { MODKEY, XK_h, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_h, zoom, {0} }, + { MODKEY, XK_i, spawn, {.v = javaidecmd } }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY|ShiftMask, XK_j, zoom, {0} }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY|ShiftMask, XK_k, zoom, {0} }, + { MODKEY, XK_l, focusstack, {.i = +1 } }, + { MODKEY, XK_m, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[0]} }, + { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, + { MODKEY, XK_p, spawn, {.v = musiccmd } }, + { MODKEY, XK_q, killclient, {0} }, + { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, + { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, + { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, + { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, + { MODKEY, XK_0, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_comma, focusmon, {.i = -1 } }, + { MODKEY, XK_period, focusmon, {.i = +1 } }, + { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, + { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, + { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, + { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, + { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, + { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, + { MODKEY, XK_F10, spawn, {.v = lockcmd } }, + { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, + { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, + { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, + { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, + //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, + //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, + //{ MODKEY, XK_space, setlayout, {0} }, + TAGKEYS( XK_1, 0) + TAGKEYS( XK_2, 1) + TAGKEYS( XK_3, 2) + TAGKEYS( XK_4, 3) + TAGKEYS( XK_5, 4) + TAGKEYS( XK_6, 5) + TAGKEYS( XK_7, 6) + TAGKEYS( XK_8, 7) + TAGKEYS( XK_9, 8) +}; + +/* button definitions */ +/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ +static Button buttons[] = { + /* click event mask button function argument */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, +}; + From ce8e36d874c2e8cbf7c50d21834d64170659d4b5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 10 May 2020 00:03:08 +0200 Subject: [PATCH 42/50] removing a bunch of shortcuts --- config.def.h | 32 -------------------------------- config.h | 32 -------------------------------- 2 files changed, 64 deletions(-) diff --git a/config.def.h b/config.def.h index 1f12ffd..ef13d20 100644 --- a/config.def.h +++ b/config.def.h @@ -69,41 +69,24 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "firefox", NULL }; -static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; -static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; -static const char *mailcmd[] = {"thunderbird", NULL }; -static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; -static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; -static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; -static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY|ShiftMask, XK_Escape, quit, {0} }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, - { MODKEY, XK_f, spawn, {.v = filecmd } }, { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_h, zoom, {0} }, - { MODKEY, XK_i, spawn, {.v = javaidecmd } }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY|ShiftMask, XK_j, zoom, {0} }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_k, zoom, {0} }, { MODKEY, XK_l, focusstack, {.i = +1 } }, - { MODKEY, XK_m, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[0]} }, { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, - { MODKEY, XK_p, spawn, {.v = musiccmd } }, { MODKEY, XK_q, killclient, {0} }, - { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, - { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_0, view, {.ui = ~0 } }, @@ -112,20 +95,6 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, - { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, - { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, - { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, - { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, - { MODKEY, XK_F10, spawn, {.v = lockcmd } }, - { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, - { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, - { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, - { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, - { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, - { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, - { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, - { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, //{ MODKEY, XK_space, setlayout, {0} }, @@ -147,7 +116,6 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, diff --git a/config.h b/config.h index 1f12ffd..ef13d20 100644 --- a/config.h +++ b/config.h @@ -69,41 +69,24 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *browsercmd[] = { "firefox", NULL }; -static const char *filecmd[] = {"st", "-e", "vifmrun", NULL }; -static const char *javaidecmd[] = {"intellij-idea-ultimate-edition", NULL }; -static const char *mailcmd[] = {"thunderbird", NULL }; -static const char *musiccmd[] = {"st", "-e", "ncmpcpp", NULL }; -static const char *lockcmd[] = {"prompt", "Lock computer?", "slock", NULL }; -static const char *rebootcmd[] = {"prompt", "Reboot computer?", "sudo -A shutdown -h now", NULL }; -static const char *shutdowncmd[] = {"prompt", "Shutdown computer?", "sudo -A shutdown -h now", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY|ShiftMask, XK_Escape, quit, {0} }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_b, togglebar, {0} }, { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, - { MODKEY, XK_f, spawn, {.v = filecmd } }, { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_h, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_h, zoom, {0} }, - { MODKEY, XK_i, spawn, {.v = javaidecmd } }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY|ShiftMask, XK_j, zoom, {0} }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY|ShiftMask, XK_k, zoom, {0} }, { MODKEY, XK_l, focusstack, {.i = +1 } }, - { MODKEY, XK_m, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[0]} }, { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, - { MODKEY, XK_p, spawn, {.v = musiccmd } }, { MODKEY, XK_q, killclient, {0} }, - { MODKEY|ShiftMask, XK_r, spawn, {.v = dmenucmd } }, - { MODKEY, XK_s, spawn, SHCMD("startpagesearch") }, { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, { MODKEY, XK_0, view, {.ui = ~0 } }, @@ -112,20 +95,6 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_F5, spawn, SHCMD("togglemonitor") }, - { MODKEY, XK_F6, spawn, SHCMD("toggletouchpad") }, - { MODKEY, XK_F7, spawn, SHCMD("dmenumount") }, - { MODKEY, XK_F8, spawn, SHCMD("dmenuumount") }, - { MODKEY, XK_F9, spawn, SHCMD("sudo -A systemctl restart NetworkManager") }, - { MODKEY, XK_F10, spawn, {.v = lockcmd } }, - { MODKEY, XK_F11, spawn, {.v = rebootcmd } }, - { MODKEY, XK_F12, spawn, {.v = shutdowncmd } }, - { 0, XF86XK_AudioMute, spawn, SHCMD("lmc m; refbar") }, - { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute 1 toggle") }, - { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down 5; refbar") }, - { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up 5; refbar") }, - { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 15") }, - { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 15") }, //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, //{ MODKEY, XK_space, setlayout, {0} }, @@ -147,7 +116,6 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, From b5bb901feacbcdacc96dc60d228a8b3c3b935fa5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 10 May 2020 00:20:55 +0200 Subject: [PATCH 43/50] shortcuts specified in readme --- README.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/README.md b/README.md index c75d189..28603ca 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,9 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | ModKey | Shift | Key | Function | | ------ | ----- | ----------------- | --------------------------------------------------------- | | Super | Shift | Escape | Quit dwm | -| Super | | Return | Spawn st | -| Super | | b | Spawn firefox | | Super | Shift | b | Toggle dwmbar | | Super | Shift | c | Enable deck(/card) layout | | Super | Shift | d | Toggle floating/tiled for selected window | -| Super | | f | Spawn vifm in st | | Super | Shift | f | Toggle fullscreen | | Super | | h | (Tiling/Deck) Focus window higher in stack than current | | Super | Shift | h | (Tiling/Deck) Make current window the master window | @@ -32,13 +29,9 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | Super | | k | (Tiling/Deck) Focus window higher in stack than current | | Super | Shift | k | (Tiling/Deck) Make current window the master window | | Super | | l | (Tiling/Deck) Focus window lower in stack than current | -| Super | | m | Spawn thunderbird | | Super | Shift | m | Enable monocle layout | | Super | Shift | o | (Tiling/Deck) Increase master window size | -| Super | | p | Spawn ncmpcpp in st | | Super | | q | Close current window | -| Super | Shift | r | (dmenu) dmenu_run | -| Super | | s | (dmenu) startpagesearch | | Super | Shift | t | Enable tiling layout | | Super | Shift | z | (Tiling/Deck) Decrease master window size | | Super | | 0 | Show all tags | @@ -49,17 +42,3 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | Super | Shift | . | Add to monitor lower in stack | | Super | | , | Show monitor higher in stack | | Super | Shift | , | Add to monitor higher in stack | -| Super | | F5 | enable 2 Screen Monitor | -| Super | | F6 | toggle touchpad | -| Super | | F7 | (dmenu) mounting drives | -| Super | | F8 | (dmenu) unmounting drives | -| Super | | F9 | Restart NetworkManager | -| Super | | F10 | (dmenu) prompt, if yes: slock | -| Super | | F11 | (dmenu) prompt, if yes: reboot | -| Super | | F12 | (dmenu) prompt, if yes: shutdown | -| | | AudioMute | Volume mute | -| | | AudioMicMute | Mic Mute | -| | | AudioLowerVolume | Volume lower | -| | | AudioRaiseVolume | Volume raise | -| | | MonBrightnessDown | Brightness decrease | -| | | MonBrightnessUp | Brightness increase | From 8c87d02376242ae426c56eaf1b9d01ed288748ef Mon Sep 17 00:00:00 2001 From: Marten Kante <43725244+Tiyn@users.noreply.github.com> Date: Thu, 14 May 2020 19:20:17 +0000 Subject: [PATCH 44/50] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 28603ca..2d7f1a5 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ There are various shortcuts and hotkeys used in this version. Included in my bui | Super | Shift | f | Toggle fullscreen | | Super | | h | (Tiling/Deck) Focus window higher in stack than current | | Super | Shift | h | (Tiling/Deck) Make current window the master window | -| Super | | i | Spawn intellij-idea-ultimate-edition | | Super | | j | (Tiling/Deck) Focus window lower in stack than current | | Super | Shift | j | (Tiling/Deck) Make current window the master window | | Super | | k | (Tiling/Deck) Focus window higher in stack than current | From 0da1eba5daa2dec15a2816539c076f913486bbd6 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Thu, 28 May 2020 01:48:32 +0200 Subject: [PATCH 45/50] statuscmd added --- README.md | 1 + config.def.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28603ca..23c26aa 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ The list below shows the currently applied patches to the master branch. - dwm-deck-6.0.diff (adds deck layout) - dwm-noborder-6.2.diff (removes border if there is only one window) - dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) +- dwm-statuscmd-6.2.diff (enables dwmblocks compatibility) ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. diff --git a/config.def.h b/config.def.h index ef13d20..8737574 100644 --- a/config.def.h +++ b/config.def.h @@ -49,10 +49,10 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "[M]", monocle }, { "[]=", tile }, /* first entry is default */ - { "[D]", deck }, { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "[D]", deck }, }; /* key definitions */ @@ -116,6 +116,9 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} }, + { ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} }, + { ClkStatusText, 0, Button3, sigdwmblocks, {.i = 3} }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, From 2ab6d4df920d72a5655b112ee9d3e7160d377aa4 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Thu, 28 May 2020 02:15:58 +0200 Subject: [PATCH 46/50] fixing layouts --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 8737574..90c2ee0 100644 --- a/config.def.h +++ b/config.def.h @@ -49,10 +49,10 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "[]=", tile }, /* first entry is default */ { "[D]", deck }, + { "><>", NULL }, /* no layout function means floating behavior */ }; /* key definitions */ From fbd7aa146842de523b3c9ebd93366efd8d59ead5 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 28 May 2020 21:03:11 +0000 Subject: [PATCH 47/50] firefox better now --- config.def.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/config.def.h b/config.def.h index 90c2ee0..09d2a5d 100644 --- a/config.def.h +++ b/config.def.h @@ -37,8 +37,6 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isCentered isfloating monitor */ - { "Gimp", NULL, NULL, 0, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, }; From 116548d4a1b3caeb86030b51013f031e77c76cdf Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 29 May 2020 14:12:14 +0200 Subject: [PATCH 48/50] removing alpha patch --- README.md | 2 +- config.def.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 15a7cab..0542743 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ It is supposed to work in the environment after the larbs-base-installation. ## Patches The list below shows the currently applied patches to the master branch. - dwm-actualfullscreen-20191112-cb3f58a.diff (enables true fullscreen) -- dwm-alpha-6.2.diff (adds transparency) - dwm-center-6.1.diff (adds ability to center floating windows at launch) - dwm-deck-6.0.diff (adds deck layout) - dwm-noborder-6.2.diff (removes border if there is only one window) - dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) - dwm-statuscmd-6.2.diff (enables dwmblocks compatibility) +- dwm-status2d-6.2.diff (enables drawing in statusbar) ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. diff --git a/config.def.h b/config.def.h index 09d2a5d..c3423e7 100644 --- a/config.def.h +++ b/config.def.h @@ -12,8 +12,6 @@ static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:s static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; -static const unsigned int baralpha = 0xff; -static const unsigned int borderalpha = 0xff; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; static const char col_cyan[] = "#a62238"; @@ -22,11 +20,6 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, }; -static const unsigned int alphas[][3] = { - /* fg bg border */ - [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, - [SchemeSel] = { OPAQUE, baralpha, borderalpha }, -}; /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -36,7 +29,6 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isCentered isfloating monitor */ { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, }; From 5a92ec48073915920fbbcae62222fd3f8a8f30f4 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 29 May 2020 16:53:56 +0200 Subject: [PATCH 49/50] update config --- README.md | 1 - config.def.h | 2 +- config.h | 127 --------------------------------------------------- 3 files changed, 1 insertion(+), 129 deletions(-) delete mode 100644 config.h diff --git a/README.md b/README.md index 0542743..36319e3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ The list below shows the currently applied patches to the master branch. - dwm-noborder-6.2.diff (removes border if there is only one window) - dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) - dwm-statuscmd-6.2.diff (enables dwmblocks compatibility) -- dwm-status2d-6.2.diff (enables drawing in statusbar) ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. diff --git a/config.def.h b/config.def.h index c3423e7..2bc8121 100644 --- a/config.def.h +++ b/config.def.h @@ -14,7 +14,7 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; -static const char col_cyan[] = "#a62238"; +static const char col_cyan[] = "#dddddd"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, diff --git a/config.h b/config.h deleted file mode 100644 index ef13d20..0000000 --- a/config.h +++ /dev/null @@ -1,127 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -/* for media keys */ -#include - -/* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; -static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const unsigned int baralpha = 0xff; -static const unsigned int borderalpha = 0xff; -static const char col_gray3[] = "#f7f7f7"; -static const char col_gray4[] = "#000000"; -static const char col_cyan[] = "#a62238"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, -}; -static const unsigned int alphas[][3] = { - /* fg bg border */ - [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, - [SchemeSel] = { OPAQUE, baralpha, borderalpha }, -}; - -/* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; - -static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - /* class instance title tags mask isCentered isfloating monitor */ - { "Gimp", NULL, NULL, 0, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, - { NULL, "de.uol.swp.client.ClientApp", NULL, 0, 0, 1, -1 }, -}; - -/* layout(s) */ -static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ - -static const Layout layouts[] = { - /* symbol arrange function */ - { "[M]", monocle }, - { "[]=", tile }, /* first entry is default */ - { "[D]", deck }, - { "><>", NULL }, /* no layout function means floating behavior */ -}; - -/* key definitions */ -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-c", "-l", "20", NULL }; - -static Key keys[] = { - /* modifier key function argument */ - { MODKEY|ShiftMask, XK_Escape, quit, {0} }, - { MODKEY|ShiftMask, XK_b, togglebar, {0} }, - { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[2]} }, - { MODKEY|ShiftMask, XK_d, togglefloating, {0} }, - { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, - { MODKEY, XK_h, focusstack, {.i = -1 } }, - { MODKEY|ShiftMask, XK_h, zoom, {0} }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY|ShiftMask, XK_j, zoom, {0} }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY|ShiftMask, XK_k, zoom, {0} }, - { MODKEY, XK_l, focusstack, {.i = +1 } }, - { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[0]} }, - { MODKEY|ShiftMask, XK_o, setmfact, {.f = +0.05} }, - { MODKEY, XK_q, killclient, {0} }, - { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[1]} }, - { MODKEY|ShiftMask, XK_z, setmfact, {.f = -0.05} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, - //{ MODKEY, XK_space, setlayout, {0} }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - From 1e28cca03dc28d950a43fe36511431f26b8c13d9 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 29 May 2020 17:33:58 +0200 Subject: [PATCH 50/50] new icons --- config.def.h | 1 + dwm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 2bc8121..c710bf3 100644 --- a/config.def.h +++ b/config.def.h @@ -23,6 +23,7 @@ static const char *colors[][3] = { /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; +static const char *alttags[] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" }; static const Rule rules[] = { /* xprop(1): diff --git a/dwm.c b/dwm.c index 4465af1..c2348a5 100644 --- a/dwm.c +++ b/dwm.c @@ -1110,7 +1110,7 @@ monocle(Monitor *m) if (ISVISIBLE(c)) n++; if (n > 0) /* override layout symbol */ - snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); + snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d", n); for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); }