keybindings and scripts

This commit is contained in:
2026-06-22 12:56:29 +02:00
parent 8f4ecdace7
commit 5accaed254
3 changed files with 7 additions and 2 deletions

View File

@@ -114,6 +114,7 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *termcmd[] = { "alacritty", NULL }; static const char *termcmd[] = { "alacritty", NULL };
static const char *ffcmd[] = { "firefox", NULL }; static const char *ffcmd[] = { "firefox", NULL };
static const char *roficmd[] = { "rofi", "-show", "drun", 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 *volupcmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL };
static const char *voldowncmd[] = { "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 *mediaplaycmd[] = { "playerctl", "play-pause", NULL };
static const char *medianextcmd[] = { "playerctl", "next", NULL }; static const char *medianextcmd[] = { "playerctl", "next", NULL };
static const char *mediaprevcmd[] = { "playerctl", "previous", NULL }; static const char *mediaprevcmd[] = { "playerctl", "previous", NULL };
static const char *brightupcmd[] = { "brightnessctl", "set", "+10%", NULL }; static const char *brightupcmd[] = { "ddcutil", "-b", "2", "setvcp", "10", "+", "10", NULL };
static const char *brightdowncmd[] = { "brightnessctl", "set", "10%-", NULL }; static const char *brightdowncmd[] = { "ddcutil", "-b", "2", "setvcp", "10", "-", "10", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = roficmd } }, { MODKEY, XK_d, spawn, {.v = roficmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, spawn, {.v = ffcmd } }, { MODKEY, XK_b, spawn, {.v = ffcmd } },
{ MODKEY|ShiftMask, XK_n, spawn, {.v = nmroficmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
@@ -155,6 +157,9 @@ static const Key keys[] = {
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = brightupcmd } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightupcmd } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdowncmd } }, { 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 */ /* cycle layouts */
{ MODKEY, XK_n, cyclelayout, {.i = +1 } }, { MODKEY, XK_n, cyclelayout, {.i = +1 } },

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.