remove games/actualfullscreenpatch use fullscreen compilation and add ewmhtags
This commit is contained in:
35
config.h
35
config.h
@@ -14,7 +14,6 @@ static const unsigned int gappiv = 10; /* vert inner gap between window
|
||||
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
|
||||
static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
|
||||
static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
|
||||
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
|
||||
static const int showbar = 1; /* 0 means no bar */
|
||||
static const int topbar = 1; /* 0 means bottom bar */
|
||||
static const char *fonts[] = { "JetBrainsMono Nerd Font Mono:style=Bold:size=16",};
|
||||
@@ -35,7 +34,7 @@ typedef struct {
|
||||
const void *cmd;
|
||||
} Sp;
|
||||
const char *spcmd1[] = {"alacritty", "--class", "spterm", NULL };
|
||||
const char *spcmd2[] = {"alacritty", "--class", "spfm", NULL };
|
||||
const char *spcmd2[] = {"alacritty", "--class", "spfm", "-e", "ranger", NULL };
|
||||
const char *spcmd3[] = {"keepassxc", NULL };
|
||||
static Sp scratchpads[] = {
|
||||
/* name cmd */
|
||||
@@ -52,28 +51,24 @@ static const Rule rules[] = {
|
||||
* WM_CLASS(STRING) = instance, class
|
||||
* WM_NAME(STRING) = title
|
||||
*/
|
||||
/* class instance title tags mask isfloating isterminal isswallow monitor isgame */
|
||||
{ "Playground", NULL, NULL, 0, 1, 0, -1 -1 },
|
||||
/* class instance title tags mask isfloating isterminal monitor */
|
||||
{ "Playground", NULL, NULL, 0, 1, -1 },
|
||||
|
||||
{ "steam", NULL, NULL, 1 << 1, 0, 0, -1 -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 2, 0, 0, -1 -1 },
|
||||
{ "brave-browser", NULL, NULL, 1 << 3, 0, 0, -1 -1 },
|
||||
{ "discord", NULL, NULL, 1 << 4, 0, 0, -1 -1 },
|
||||
{ "feishin", NULL, NULL, 1 << 5, 0, 0, -1 -1 },
|
||||
{ NULL, "spterm", NULL, SPTAG(0), 1, 0, 0, -1 },
|
||||
{ NULL, "spfm", NULL, SPTAG(1), 1, 0, 0, -1 },
|
||||
{ NULL, "keepassxc", NULL, SPTAG(2), 0, 0, 0, -1 },
|
||||
|
||||
{ "Steam", NULL, NULL, 0, 0, 0, -1 -1, 1 },
|
||||
{ "steam_app", NULL, NULL, 0, 0, 0, -1 -1, 1 },
|
||||
{ "steam", NULL, NULL, 1 << 1, 0, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 2, 0, -1 },
|
||||
{ "brave-browser", NULL, NULL, 1 << 3, 0, -1 },
|
||||
{ "discord", NULL, NULL, 1 << 4, 0, -1 },
|
||||
{ "feishin", NULL, NULL, 1 << 5, 0, -1 },
|
||||
{ NULL, "spterm", NULL, SPTAG(0), 1, 0 },
|
||||
{ NULL, "spfm", NULL, SPTAG(1), 1, 0 },
|
||||
{ NULL, "keepassxc", NULL, SPTAG(2), 0, 0 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
static const float mfact = 0.55; /* 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 int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
|
||||
static const int refreshrate = 120; /* refresh rate (per second) for client move/resize */
|
||||
static const int refreshrate = 144; /* refresh rate (per second) for client move/resize */
|
||||
|
||||
#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
|
||||
#include "vanitygaps.c"
|
||||
@@ -125,14 +120,18 @@ static const char *mediaprevcmd[] = { "playerctl", "previous", NULL };
|
||||
static const char *brightupcmd[] = { "ddcutil", "-b", "2", "setvcp", "10", "+", "10", NULL };
|
||||
static const char *brightdowncmd[] = { "ddcutil", "-b", "2", "setvcp", "10", "-", "10", NULL };
|
||||
|
||||
static const char *screenshotcmd[] = { "/bin/sh", "-c", "maim -s | xclip -selection clipboard -t image/png", NULL };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XK_d, spawn, {.v = roficmd } },
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_b, spawn, {.v = ffcmd } },
|
||||
{ MODKEY|ShiftMask, XK_n, spawn, {.v = nmroficmd } },
|
||||
{ ControlMask, XK_Print, spawn, {.v = screenshotcmd } },
|
||||
|
||||
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
|
||||
{ MODKEY, XK_e, togglescratch, {.ui = 1 } },
|
||||
|
||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||
{ MODKEY, XK_p, incnmaster, {.i = -1 } },
|
||||
@@ -193,6 +192,8 @@ static const Key keys[] = {
|
||||
|
||||
{ MODKEY, XK_space, setlayout, {0} },
|
||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||
{ MODKEY, XK_f, togglefullscreen, {0} },
|
||||
{ MODKEY|ShiftMask, XK_f, togglefakefullscreen, {0} },
|
||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||
|
||||
Reference in New Issue
Block a user