myvxwm

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

commit 4d3c19729e0a9e3a94bf100a0832b07ca06c219c
parent f21918022a17af959fbb7370e16526755757a0a6
Author: Luke Jones <luke.jones.2567@gmail.com>
Date:   Wed, 14 Oct 2026 16:10:22 +0100

feat: pmenu?

Diffstat:
Mconfig.def.h | 45++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 40 insertions(+), 5 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -124,6 +124,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-x", "800", "-y", "48", "-z", "320", NULL }; +static const char *pmenucmd[] = { "/home/lukep/.lprof/shared/bin/pmenu", NULL }; static const char *termcmd[] = { "terminator", NULL }; @@ -134,16 +135,50 @@ static const char *zoomreset[] = { "vcompmgr", "-Z", "1", NULL }; // set zoom to #endif /* Volume controls per T480 Layout */ -static const char *volumeupcmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; -static const char *volumedowncmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; -static const char *volumemutecmd[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; -static const char *brightnessupcmd[] = { "brightnessctl", "set", "+5%", NULL }; -static const char *brightnessdowncmd[] = { "brightnessctl", "set", "5%-", NULL }; +static const char *volumeupcmd[] = { + "sh", "-c", + "pactl set-sink-volume @DEFAULT_SINK@ +5% && " + "notify-send -a VXWM -h string:x-canonical-private-synchronous:volume " + "'Volume' \"$(pactl get-sink-volume @DEFAULT_SINK@ | head -n1 | grep -o '[0-9]*%' | head -n1)\"", + NULL +}; + +static const char *volumedowncmd[] = { + "sh", "-c", + "pactl set-sink-volume @DEFAULT_SINK@ -5% && " + "notify-send -a VXWM -h string:x-canonical-private-synchronous:volume " + "'Volume' \"$(pactl get-sink-volume @DEFAULT_SINK@ | head -n1 | grep -o '[0-9]*%' | head -n1)\"", + NULL +}; + +static const char *volumemutecmd[] = { + "sh", "-c", + "pactl set-sink-mute @DEFAULT_SINK@ toggle && " + "notify-send -a VXWM -h string:x-canonical-private-synchronous:volume " + "'Volume' \"$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print ($2 == \"yes\") ? \"Muted\" : \"Unmuted\"}') — $(pactl get-sink-volume @DEFAULT_SINK@ | head -n1 | grep -o '[0-9]*%' | head -n1)\"", + NULL +}; + +static const char *brightnessupcmd[] = { + "sh", "-c", + "brightnessctl set +5% && " + "notify-send -a VXWM -h string:x-canonical-private-synchronous:brightness " + "'Brightness' \"$(brightnessctl -m | cut -d, -f4)\"", + NULL +}; +static const char *brightnessdowncmd[] = { + "sh", "-c", + "brightnessctl set 5%- && " + "notify-send -a VXWM -h string:x-canonical-private-synchronous:brightness " + "'Brightness' \"$(brightnessctl -m | cut -d, -f4)\"", + NULL +}; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_v, spawn, {.v = dmenucmd } }, + { MODKEY, XK_p, spawn, {.v = pmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_Tab, focusstack, {.i = +1 } },