key commands replaced with sde-ctl

This commit is contained in:
ed 2019-12-29 13:24:58 +01:00
parent e41604e361
commit 8d3733499f
1 changed files with 60 additions and 60 deletions

View File

@ -98,17 +98,17 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_blk, "-nf", col_wht, "-sb", col_mid, "-sf", col_blk, NULL }; static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_blk, "-nf", col_wht, "-sb", col_mid, "-sf", col_blk, NULL };
static const char *termcmd[] = { TERMINAL, NULL }; static const char *termcmd[] = { TERMINAL, NULL };
static const char *poff[] = { "poff", NULL }; static const char *poff[] = {"poff", NULL };
static const char *muusb[] = { "muusb", NULL }; static const char *muusb[] = {"muusb", NULL };
static const char *waterfox[] = { "waterfox", NULL }; static const char *web[] = {"sde-ctl","web",NULL };
static const char *volup[] = {"amixer","sset","Master","5%+",NULL }; static const char *volup[] = {"sde-ctl","vol","up",NULL };
static const char *voldown[] = {"amixer","sset","Master","5%-",NULL }; static const char *voldn[] = {"sde-ctl","vol","down",NULL };
static const char *volmute[] = {"amixer","sset","Master","toggle",NULL }; static const char *volmt[] = {"sde-ctl","vol","mute",NULL };
//static const char *lightmore[] = {"sudo","bcklght","+",NULL }; static const char *lghtm[] = {"sde-ctl","light","more",NULL };
//static const char *lightless[] = {"sudo","bcklght","-",NULL }; static const char *lghtl[] = {"sde-ctl","light","less",NULL };
static const char *cmusnext[] = {"cmus-remote", "-n", NULL}; static const char *munext[] = {"sde-ctl","mu","next", NULL};
static const char *cmusprev[] = {"cmus-remote", "-r", NULL}; static const char *muprev[] = {"sde-ctl","mu","prev", NULL};
static const char *cmusplay[] = {"cmus-remote", "-u", NULL}; static const char *muplay[] = {"sde-ctl","mu","play", NULL};
char *scrotshot[] = {"scrotshot", NULL}; char *scrotshot[] = {"scrotshot", NULL};
static Key keys[] = { static Key keys[] = {
@ -139,19 +139,19 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
/* custom commands */ /* custom commands */
{ MODKEY, XK_o, spawn, {.v = poff } }, { MODKEY, XK_o, spawn, {.v = poff }},
{ MODKEY, XK_u, spawn, {.v = muusb } }, { MODKEY, XK_u, spawn, {.v = muusb }},
{ MODKEY, XK_w, spawn, {.v = waterfox }}, { MODKEY, XK_w, spawn, {.v = web }},
{ MODKEY, XK_i, spawn, {.v = scrotshot }}, { MODKEY, XK_i, spawn, {.v = scrotshot }},
{ 0, Print, spawn, {.v = scrotshot }}, { 0, Print, spawn, {.v = scrotshot }},
// { 0, XF86MonBrightnessUp, spawn, {.v = lightmore }}, { 0, XF86MonBrightnessUp, spawn, {.v = lghtm }},
// { 0, XF86MonBrightnessDown,spawn, {.v = lightless }}, { 0, XF86MonBrightnessDown,spawn, {.v = lghtl }},
{ 0, XF86AudioMute, spawn, {.v = volmute }}, { 0, XF86AudioMute, spawn, {.v = volmt }},
{ 0, XF86AudioRaiseVolume, spawn, {.v = volup }}, { 0, XF86AudioRaiseVolume, spawn, {.v = volup }},
{ 0, XF86AudioLowerVolume, spawn, {.v = voldown }}, { 0, XF86AudioLowerVolume, spawn, {.v = voldn }},
{ 0, XF86AudioNext, spawn, {.v = cmusnext }}, { 0, XF86AudioNext, spawn, {.v = munext }},
{ 0, XF86AudioPrev, spawn, {.v = cmusprev }}, { 0, XF86AudioPrev, spawn, {.v = muprev }},
{ 0, XF86AudioPlay, spawn, {.v = cmusplay }}, { 0, XF86AudioPlay, spawn, {.v = muplay }},
TAGKEYS( TAGS1, 0) TAGKEYS( TAGS1, 0)
TAGKEYS( TAGS2, 1) TAGKEYS( TAGS2, 1)
TAGKEYS( TAGS3, 2) TAGKEYS( TAGS3, 2)