keybindings and scripts
This commit is contained in:
9
config.h
9
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 } },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user