From 6f976f043104edff8c52ea51bbe4abf341512abc Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 5 Jan 2021 15:09:37 +0100 Subject: [PATCH 1/4] Made floating mode default --- src/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index 5c742ea..b805ed0 100644 --- a/src/config.h +++ b/src/config.h @@ -59,8 +59,8 @@ 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 */ + { "><>", NULL }, /* first entry is default */ + { "[]=", tile }, { "[M]", monocle }, }; From 7e373854514a90a637e98b192d5bb13099bce7c5 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 5 Jan 2021 15:10:53 +0100 Subject: [PATCH 2/4] Binds fix --- src/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index b805ed0..c259664 100644 --- a/src/config.h +++ b/src/config.h @@ -104,8 +104,8 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_q, killclient, {0} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, From cf411a24afb1b9fa879329fafb8de0893fc903ff Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 5 Jan 2021 15:21:39 +0100 Subject: [PATCH 3/4] Switched to dmenu --- src/config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index c259664..af8ca26 100644 --- a/src/config.h +++ b/src/config.h @@ -11,7 +11,7 @@ static const char *altbarclass = "Polybar"; /* Alternate bar class name */ static const char *alttrayname = "tray"; /* Polybar tray instance name */ static const char *altbarcmd = "$HOME/.config/polybar/launch"; /* Alternate bar launch command */ static const char *fonts[] = { "Source Code Pro:size=10" }; -static const char dmenufont[] = "monospace:size=10"; +static const char dmenufont[] = "Source Code Pro:size=12"; static const char bg_color[] = "#111015"; static const char bg_color_bar[] = "#111015"; @@ -77,9 +77,9 @@ static const Layout layouts[] = { /* commands */ -/* Not using dmenu, but this needs to be here I guess */ 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", "-m", dmenumon, "-fn", dmenufont, "-nb", bg_color, "-nf", text_color, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *roficmd[] = { "rofi", "-show", "drun", "-lines", "4", "-eh", "2", "-width", "100", "-padding", "800", "-opacity", "75", "-bw", "0", "-bc", bg_color, "-bg", bg_color, "-fg", text_color, "-hlbg", bg_color, "-hlfg", "#9575cd", "-font", "System Ubuntu Mono Display 18", "-theme", "onedark" }; static const char *termcmd[] = { "urxvt", NULL }; @@ -92,7 +92,7 @@ static const char *cmuspausecmd[] = { "cmus-remote", "--pause" }; static Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_d, spawn, {.v = roficmd } }, + { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, From ecd689a8e6828679aad5bddde36a8ffca3272730 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 5 Jan 2021 15:26:35 +0100 Subject: [PATCH 4/4] Removed unused rofi crap --- src/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/config.h b/src/config.h index af8ca26..da0770a 100644 --- a/src/config.h +++ b/src/config.h @@ -81,7 +81,6 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", bg_color, "-nf", text_color, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *roficmd[] = { "rofi", "-show", "drun", "-lines", "4", "-eh", "2", "-width", "100", "-padding", "800", "-opacity", "75", "-bw", "0", "-bc", bg_color, "-bg", bg_color, "-fg", text_color, "-hlbg", bg_color, "-hlfg", "#9575cd", "-font", "System Ubuntu Mono Display 18", "-theme", "onedark" }; static const char *termcmd[] = { "urxvt", NULL }; static const char *betterlockscreencmd[] = { "betterlockscreen", "--lock", "blur" };