myvxwm

[fork] my vxwm config (optimised for my T480)
git clone https://git.lukeonline.net/repos/myvxwm
Log | Files | Refs | README | LICENSE

commit e52c7a9f138bd33287f07b47feb075ca5d6cea3a
parent 8d473e6be96de16c5b0f66c0d87be31a2d4bbfe1
Author: wh1tepearl <wh1tepearl@gmail.com>
Date:   Sat, 17 Jan 2026 16:47:17 +0000

Fullscreen support

Diffstat:
Mconfig.def.h | 22+++++++++++-----------
Mvxwm.c | 15+++++++++++++--
2 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -1,13 +1,12 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 0; /* border pixel of windows */ -static const unsigned int snap = 0; /* snap pixel */ +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 dmenufont[] = "monospace:size=10"; - #if !XRDB //when xrdb is turned off static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -34,11 +33,11 @@ static char *colors[][3] = { #endif #if GAPS -static const unsigned int gappx = 15; +static const unsigned int gappx = 5; #endif #if BAR_HEIGHT -static const int user_bh = 30; +static const int user_bh = 0; #endif #if BAR_PADDING @@ -95,13 +94,11 @@ static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", normbgco #endif static const char *termcmd[] = { "st", NULL }; -static const char *termalacmd[] = { "alacritty", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termalacmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -109,14 +106,14 @@ static const Key keys[] = { { MODKEY, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_x, zoom, {0} }, + { MODKEY, XK_x, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY, XK_c, killclient, {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, XK_q, togglefloating, {0} }, + { MODKEY, XK_q, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, @@ -136,6 +133,9 @@ static const Key keys[] = { #if XRDB { MODKEY, XK_F5, xrdb, {.v = NULL } }, #endif +#if FULLSCREEN + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, +#endif }; /* button definitions */ diff --git a/vxwm.c b/vxwm.c @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. This wm is forked from dwm 6.7, thanks suckless for their incredible work on dwm! -vxwm 0.dev // by wh1tepearl +vxwm 1.2 // by wh1tepearl Known issues: @@ -22,6 +22,7 @@ Solved issues: #define ALT_CENTER_OF_BAR_COLOR 1 //changes center of bar color to a dark color #define BAR_HEIGHT 1 //support for changing bar height #define BAR_PADDING 1 //support for changing the bar padding +#define FULLSCREEN 1 //supoort for toggling fullscreen #include <errno.h> #include <locale.h> @@ -243,6 +244,9 @@ static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +#if FULLSCREEN +static void togglefullscr(const Arg *arg); +#endif static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -1987,7 +1991,14 @@ togglefloating(const Arg *arg) selmon->sel->w, selmon->sel->h, 0); arrange(selmon); } - +#if FULLSCREEN +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} +#endif void toggletag(const Arg *arg) {