From 5fe48352a3ebc1cef6e6f5af7a64fa5ed63a5fa8 Mon Sep 17 00:00:00 2001 From: Ivan Polyakov Date: Tue, 9 Jul 2024 21:00:57 +0000 Subject: [PATCH] returned to dmenu --- config.def.h | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/config.def.h b/config.def.h index ebe7f3a..1ec45d8 100644 --- a/config.def.h +++ b/config.def.h @@ -73,44 +73,32 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ - -/* I use rofi instead of dmenu - * static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; - */ - -static const char *roficmd[] = { "rofi", "-show", "run", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; -/* up volume */ -static const char *upvolcmd[] = +static const char *volupcmd[] = { "/usr/bin/amixer", "set", "Master", "5%+", NULL }; -/* down volume */ -static const char *downvolcmd[] = +static const char *voldowncmd[] = { "/usr/bin/amixer", "set", "Master", "5%-", NULL }; -/* toggle volume */ -static const char *togglevolcmd[] = +static const char *mutevolcmd[] = { "/usr/bin/amixer", "set", "Master", "toggle", NULL }; -/* toggle microphone */ -static const char *togglemiccmd[] = +static const char *mutemiccmd[] = { "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; -/* brightness up */ -static const char *brightness_upcmd[] = { "xbacklight", "-inc", "10", NULL }; -/* brightness down */ -static const char *brightness_downcmd[] = { "xbacklight", "-dec", "10", NULL }; -/* screenshot */ +static const char *brightnessupcmd[] = { "xbacklight", "-inc", "10", NULL }; +static const char *brightnessdowncmd[] = { "xbacklight", "-dec", "10", NULL }; static const char *screenshotcmd[] = { "flameshot", "gui", NULL }; static const Key keys[] = { /* modifier key function argument */ - { 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, - { 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, - { 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, - { 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, - { 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_upcmd } }, - { 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_downcmd } }, + { 0, XF86XK_AudioRaiseVolume, spawn, { .v = volupcmd } }, + { 0, XF86XK_AudioLowerVolume, spawn, { .v = voldowncmd } }, + { 0, XF86XK_AudioMute, spawn, { .v = mutevolcmd } }, + { 0, XF86XK_AudioMicMute, spawn, { .v = mutemiccmd } }, + { 0, XF86XK_MonBrightnessUp, spawn, { .v = brightnessupcmd } }, + { 0, XF86XK_MonBrightnessDown, spawn, { .v = brightnessdowncmd } }, { 0, XK_Print, spawn, { .v = screenshotcmd } }, - { MODKEY, XK_p, spawn, {.v = roficmd } }, + { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } },