Brightness Control Script + Keybinding

- Add keybinding for brightness control script
This commit is contained in:
Sravan Balaji
2022-01-11 12:06:25 -05:00
parent 57c2add016
commit b91974c9e6
2 changed files with 4 additions and 0 deletions

View File

@@ -4385,6 +4385,7 @@ static const char *dmenucmd[] = {
static const char *termcmd[] = { "kitty", NULL };
static const char *roficmd[] = { "rofi", "-show", "combi", NULL };
static const char *controlcentercmd[] = { "/home/sravan/.scripts/control-center.sh", "--rofi", NULL };
static const char *brightnesscmd[] = { "/home/sravan/.scripts/brightness.sh", "--rofi", NULL };
static const char *clipboardcmd[] = { "rofi", "-show", "clipboard", NULL };
static const char *rbwcmd[] = { "rofi-rbw", NULL };
static const char *volumecmd[] = { "/home/sravan/.scripts/pactl.sh", "--rofi", NULL };
@@ -4445,6 +4446,7 @@ static Key keys[] = {
{ MODKEY|ControlMask, XK_p, spawn, {.v = controlcentercmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ControlMask, XK_c, spawn, {.v = clipboardcmd} },
{ MODKEY|ControlMask, XK_d, spawn, {.v = brightnesscmd} },
{ MODKEY|ControlMask, XK_b, spawn, {.v = rbwcmd} },
{ MODKEY|ControlMask, XK_v, spawn, {.v = volumecmd} },
{ MODKEY|ControlMask, XK_m, spawn, {.v = mediacmd} },

View File

@@ -785,6 +785,7 @@ static const char *dmenucmd[] = {
static const char *termcmd[] = { "kitty", NULL };
static const char *roficmd[] = { "rofi", "-show", "combi", NULL };
static const char *controlcentercmd[] = { "/home/sravan/.scripts/control-center.sh", "--rofi", NULL };
static const char *brightnesscmd[] = { "/home/sravan/.scripts/brightness.sh", "--rofi", NULL };
static const char *clipboardcmd[] = { "rofi", "-show", "clipboard", NULL };
static const char *rbwcmd[] = { "rofi-rbw", NULL };
static const char *volumecmd[] = { "/home/sravan/.scripts/pactl.sh", "--rofi", NULL };
@@ -837,6 +838,7 @@ static Key keys[] = {
{ MODKEY|ControlMask, XK_p, spawn, {.v = controlcentercmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ControlMask, XK_c, spawn, {.v = clipboardcmd} },
{ MODKEY|ControlMask, XK_d, spawn, {.v = brightnesscmd} },
{ MODKEY|ControlMask, XK_b, spawn, {.v = rbwcmd} },
{ MODKEY|ControlMask, XK_v, spawn, {.v = volumecmd} },
{ MODKEY|ControlMask, XK_m, spawn, {.v = mediacmd} },