diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 84 |
1 files changed, 58 insertions, 26 deletions
@@ -1,14 +1,19 @@ /* See LICENSE file for copyright and license details. */ +/* Constants */ +#define TERMINAL "st" +#define BROWSER "srch" + /* appearance */ static const unsigned int borderpx = 3; /* border pixel of windows */ static const unsigned int snap = 16; /* snap pixel */ +static const unsigned int minwsz = 20; /* Minimum height of a client for smfact */ static const int swallowfloating = 1; -static const int showbar = 1; /* 0 means no bar */ +static const int showbar = 0; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Inconsolata:size=12" }; -static const char dmenufont[] = "Inconsolata:size=12"; -static const char col_gray1[] = "#222222"; +static const char *fonts[] = { "BigBlueTerm437NerdFontMono-Regular:pixelsize=12:autohint=true, fontawesome:size=16" }; +static const char dmenufont[] = "BigBlueTerm437NerdFontMono-Regular:pixelsize=12:autohint=true, fontawesome:size=16"; +static const char col_gray1[] = "#000000"; static const char col_gray2[] = "#000000"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; @@ -20,9 +25,9 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_cyan }, [SchemeStatus] = { col_gray3, col_gray1, "#000000" }, // Statusbar right {text,background,not used but cannot be empty} - [SchemeTagsSel] = { col_cyan, col_gray1, "#000000" }, // Tagbar left selected {text,background,not used but cannot be empty} - [SchemeTagsNorm] = { col_gray3, col_gray1, "#000000" }, // Tagbar left unselected {text,background,not used but cannot be empty} - [SchemeInfoSel] = { col_gray1, col_cyan, "#000000" }, // infobar middle selected {text,background,not used but cannot be empty} + [SchemeTagsSel] = { col_gray3, col_cyan, "#000000" }, // Tagbar left selected {text,background,not used but cannot be empty} + [SchemeTagsNorm] = { col_cyan, col_gray1, "#000000" }, // Tagbar left unselected {text,background,not used but cannot be empty} + [SchemeInfoSel] = { col_gray3, col_cyan, "#000000" }, // infobar middle selected {text,background,not used but cannot be empty} [SchemeInfoNorm] = { col_cyan, col_gray1, "#000000" }, // infobar middle unselected {text,background,not used but cannot be empty} }; @@ -36,7 +41,6 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating isterminal noswallow monitor */ { "Thunar", "thunar", NULL, 0, 1, 0, 0, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, 0, 0, -1 }, { "steam", "steamwebhelper", NULL, 0, 1, 0, 0, -1 }, { "Steam", "Steam", NULL, 0, 1, 0, 0, -1 }, { "steam", "steamwebhelper", "Steam", 0, 0, 0, 0, -1 }, @@ -47,16 +51,18 @@ static const Rule rules[] = { { "qBittorrent", "qbittorrent", NULL, 0, 0, 0, 0, -1 }, { "St", "st", NULL, 0, 0, 1, 1, -1 }, { "stfloat", "st", NULL, 0, 1, 1, 1, -1 }, - { "Mpv", NULL, NULL, 0, 1, 0, 0, -1 }, + { "mpv", NULL, NULL, 0, 1, 0, 0, -1 }, + { "Nsxiv", NULL, NULL, 0, 1, 0, 0, -1 }, { "scrcpy", NULL, NULL, 0, 1, 0, 0, -1 }, { "Pamac-manager", "pamac-manager",NULL, 0, 1, 0, 0, -1 }, - { "Floorp", "Alert", NULL, 0, 1, 0, 0, -1 }, - { "Floorp", "Places", "Library", 0, 1, 0, 0, -1 }, +// { "Floorp", "Alert", NULL, 0, 1, 0, 0, -1 }, +// { "Floorp", "Places", "Library", 0, 1, 0, 0, -1 }, { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, }; /* layout(s) */ static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ +static const float smfact = 0.00; /* factor of tiled clients [0.00..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 int lockfullscreen = 0; /* 1 will force focus on the fullscreen window */ @@ -82,21 +88,25 @@ 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 *termcmd[] = { "st", NULL }; -static const char *floattermcmd[] = { "st", "-c", "stfloat", NULL }; +static const char *termcmd[] = { TERMINAL, NULL }; +#include <X11/XF86keysym.h> static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_space, spawn, {.v = termcmd } }, - { Mod1Mask, XK_space, spawn, {.v = floattermcmd } }, + { MODKEY|ShiftMask, XK_space, spawn, SHCMD(TERMINAL" -e su") }, + { Mod1Mask, XK_space, spawn, SHCMD(TERMINAL" -c stfloat") }, + { Mod1Mask|ShiftMask, XK_space, spawn, SHCMD(TERMINAL" -c stfloat -e su") }, { 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_u, incnmaster, {.i = -1 } }, + { MODKEY, XK_u, incnmaster, {.i = +1 } }, + { MODKEY, XK_i, incnmaster, {.i = -1 } }, { MODKEY|ControlMask, XK_h, setmfact, {.f = -0.05} }, { MODKEY|ControlMask, XK_l, setmfact, {.f = +0.05} }, + { MODKEY|ControlMask, XK_k, setsmfact, {.f = +0.05} }, + { MODKEY|ControlMask, XK_j, setsmfact, {.f = -0.05} }, { MODKEY, XK_h, viewprev, {0} }, { MODKEY, XK_l, viewnext, {0} }, { MODKEY|ShiftMask, XK_h, tagtoprev, {0} }, @@ -110,26 +120,48 @@ static const Key keys[] = { { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, // { MODKEY, XK_Return, setlayout, {0} }, { MODKEY|ShiftMask, XK_f, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, + { MODKEY, XK_f, togglefullscr, {0} }, + { MODKEY, XK_grave, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_grave, 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_e, spawn, SHCMD("thunar") }, - { MODKEY, XK_w, spawn, SHCMD("floorp") }, - { Mod1Mask, XK_Escape, spawn, SHCMD("st -c stfloat -e htop") }, - { ControlMask, XK_F1, spawn, SHCMD("amixer sset Master 5%-") }, - { ControlMask, XK_F2, spawn, SHCMD("amixer sset Master 5%+") }, - TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) TAGKEYS( XK_4, 3) TAGKEYS( XK_5, 4) - { MODKEY|ShiftMask, XK_Delete, quit, {0} }, - { MODKEY|ShiftMask, XK_r, quit, {1} }, + + { MODKEY|ShiftMask, XK_End, quit, {0} }, + { MODKEY|ShiftMask, XK_r, quit, {1} }, + { MODKEY, XK_e, spawn, SHCMD(TERMINAL" -e mc --nosubshell") }, + { MODKEY|ShiftMask, XK_e, spawn, SHCMD(TERMINAL" -c stfloat -e su -c 'mc --nosubshell'") }, + { MODKEY, XK_m, spawn, SHCMD(TERMINAL" -e neomutt") }, + { MODKEY, XK_n, spawn, SHCMD(TERMINAL" -e newsboat") }, + { MODKEY, XK_Escape, spawn, SHCMD(TERMINAL" -e gotop") }, + { Mod1Mask, XK_Escape, spawn, SHCMD(TERMINAL" -c stfloat -e gotop") }, + { MODKEY, XK_x, spawn, SHCMD("xkill") }, + { MODKEY, XK_s, spawn, SHCMD("steam") }, + { MODKEY|ShiftMask, XK_s, spawn, SHCMD("pkill -9 steam") }, + { Mod1Mask|ControlMask, XK_Delete, spawn, SHCMD("slock") }, + { MODKEY, XK_w, spawn, SHCMD(BROWSER) }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer sset Master 5%+") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer sset Master 5%-") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("amixer sset Capture Toggle") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 10") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 10") }, + { MODKEY, XK_Print, spawn, SHCMD("maimpick") }, + + { MODKEY, XK_Down, moveresize, {.v = "0x 25y 0w 0h" } }, + { MODKEY, XK_Up, moveresize, {.v = "0x -25y 0w 0h" } }, + { MODKEY, XK_Right, moveresize, {.v = "25x 0y 0w 0h" } }, + { MODKEY, XK_Left, moveresize, {.v = "-25x 0y 0w 0h" } }, + { MODKEY|ShiftMask, XK_Down, moveresize, {.v = "0x 0y 0w 25h" } }, + { MODKEY|ShiftMask, XK_Up, moveresize, {.v = "0x 0y 0w -25h" } }, + { MODKEY|ShiftMask, XK_Right, moveresize, {.v = "0x 0y 25w 0h" } }, + { MODKEY|ShiftMask, XK_Left, moveresize, {.v = "0x 0y -25w 0h" } }, }; /* button definitions */ |
