diff --git a/config.h b/config.h index aa2043e..2b0fb22 100644 --- a/config.h +++ b/config.h @@ -114,6 +114,7 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "alacritty", NULL }; static const char *ffcmd[] = { "firefox", NULL }; static const char *roficmd[] = { "rofi", "-show", "drun", NULL }; +static const char *nmroficmd[] = { "networkmanager_dmenu", NULL }; static const char *volupcmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; static const char *voldowncmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; @@ -121,14 +122,15 @@ static const char *volmutecmd[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@" static const char *mediaplaycmd[] = { "playerctl", "play-pause", NULL }; static const char *medianextcmd[] = { "playerctl", "next", NULL }; static const char *mediaprevcmd[] = { "playerctl", "previous", NULL }; -static const char *brightupcmd[] = { "brightnessctl", "set", "+10%", NULL }; -static const char *brightdowncmd[] = { "brightnessctl", "set", "10%-", 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 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 } }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, @@ -155,6 +157,9 @@ static const Key keys[] = { { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightupcmd } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdowncmd } }, + { MODKEY|ShiftMask, XK_p, spawn, SHCMD("$HOME/.local/bin/repos-rofi.sh") }, + { MODKEY|ShiftMask, XK_b, spawn, SHCMD("$HOME/.local/bin/bookmarks-rofi.sh") }, + /* cycle layouts */ { MODKEY, XK_n, cyclelayout, {.i = +1 } }, diff --git a/dwm b/dwm index bf2f9f3..2615628 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 25c67d6..cf4e0a7 100644 Binary files a/dwm.o and b/dwm.o differ