clean config

This commit is contained in:
Bryson Steck 2022-03-03 15:54:08 -07:00
parent 1647a70ea6
commit 83ef57559a
3 changed files with 17 additions and 31 deletions

1
.gitignore vendored
View file

@ -3,4 +3,3 @@
dwm dwm
*.orig *.orig
*.rej *.rej
*.1

View file

@ -1,37 +1,22 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
/* appearance */ /* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */ static const unsigned int borderpx = 5; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */ static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */ static const int topbar = 0; /* 0 means bottom bar */
static const char *fonts[] = { "Roboto:size=14", "emoji:size=14" }; static const char *fonts[] = { "Inter-Bold:size=12", "emoji:size=12" };
static const char dmenufont[] = "Roboto:size=14"; static const char dmenufont[] = "Inter-Bold:size=12";
static const char col_turquoise[] = "#00776C"; //static const char *fonts[] = { "ComicMono:size=12", "emoji:size=12" };
//static const char dmenufont[] = "ComicMono:size=12";
static const char col_black[] = "#000000"; static const char col_black[] = "#000000";
static const char col_black_border[] = "#101010"; static const char col_black_border[] = "#101010";
static const char col_gray1[] = "#222222"; static const char col_gray1[] = "#222222";
static const char col_gray1_5[] = "#333333";
static const char col_gray2[] = "#444444"; static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb"; static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee"; static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char col_nord0[] = "#2e3440";
static const char col_nord1[] = "#3b4252";
static const char col_nord2[] = "#434c5e";
static const char col_nord3[] = "#4c566a";
static const char col_nord4[] = "#d8dee9"; static const char col_nord4[] = "#d8dee9";
static const char col_nord10[] = "#5e81ac";
static const char col_white1[] = "#DBDBDD";
static const char col_white2[] = "#FFFFFF";
static const char col_purple1[] = "#02060F";
static const char col_purple2[] = "#0D0224";
static const char col_blue[] = "#144982"; static const char col_blue[] = "#144982";
static const char col_blue2[] = "#143968";
static const char col_orange[] = "#F59549";
static const char col_other[] = "#191C21";
static const char col_yellow[] = "#D3AD66";
static const char col_warm_white[] = "#DCD6B8";
static const unsigned int gappx = 6; static const unsigned int gappx = 6;
/* Display modes of the tab bar: never shown, always shown, shown only in */ /* Display modes of the tab bar: never shown, always shown, shown only in */
/* monocle mode in the presence of several windows. */ /* monocle mode in the presence of several windows. */
@ -92,21 +77,23 @@ static const Layout layouts[] = {
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run_history", "-b", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_gray3, "-sb", col_blue, "-sf", col_gray4, NULL }; static const char *dmenucmd[] = { "dmenu_run_history", "-b", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_gray3, "-sb", col_blue, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "spawn-alacritty.sh", NULL }; static const char *termcmd[] = { "spawn-alacritty.sh", NULL };
static const char *brightnessup[] = { "brightness-up", NULL }; static const char *brightnessup[] = { "brightness-up", NULL };
static const char *brightnessdown[] = { "brightness-down", NULL }; static const char *brightnessdown[] = { "brightness-down", NULL };
static const char *screenshooter[] = { "xfce4-screenshooter", NULL }; static const char *screenshooter[] = { "screenshot.sh", NULL };
static const char *volup[] = { "volup.sh", NULL }; static const char *volup[] = { "volup.sh", NULL };
static const char *voldown[] = { "voldown.sh", NULL }; static const char *voldown[] = { "voldown.sh", NULL };
static const char *volmute[] = { "volmute.sh", NULL }; static const char *volmute[] = { "volmute.sh", NULL };
static const char *firefox[] = { "firefox", "--new-window", NULL }; static const char *firefox[] = { "firefox", "--new-window", NULL };
static const char *slock[] = { "slock", NULL };
static Key keys[] = { static Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_f, spawn, {.v = firefox } }, { MODKEY|ShiftMask, XK_f, spawn, {.v = firefox } },
{ MODKEY|ShiftMask, XK_Escape, spawn, {.v = slock } },
{ MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_w, tabmode, {-1} }, { MODKEY, XK_w, tabmode, {-1} },
{ MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } },

2
dwm.c
View file

@ -212,7 +212,7 @@ static void sendmon(Client *c, Monitor *m);
static void setclientstate(Client *c, long state); static void setclientstate(Client *c, long state);
static void setfocus(Client *c); static void setfocus(Client *c);
static void setfullscreen(Client *c, int fullscreen); static void setfullscreen(Client *c, int fullscreen);
static void setgaps(const Arg *arg); //static void setgaps(const Arg *arg);
static void setlayout(const Arg *arg); static void setlayout(const Arg *arg);
static void setmfact(const Arg *arg); static void setmfact(const Arg *arg);
static void setup(void); static void setup(void);