diff --git a/config.def.h b/config.def.h index d557136..5a9fea8 100644 --- a/config.def.h +++ b/config.def.h @@ -11,8 +11,8 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display static const int showsystray = 1; /* 0 means no systray */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 0; /* 0 means bottom bar */ -static const char *fonts[] = { "Go:pixelsize=16:antialias=true:autohint=true" }; -static const char dmenufont[] = "Go:pixelsize=16:antialias=true:autohint=true"; +static const char *fonts[] = { "Go:pixelsize=18:antialias=true:autohint=true", "FontAwesome:pixelsize=18:antialias=true:autohint=true"}; +static const char dmenufont[] = "Go:pixelsize=18:antialias=true:autohint=true"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -35,6 +35,8 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Alacritty", NULL, "pamix", 0, 1, -1 }, + { "Alacritty", NULL, "ncmpcpp", 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, { "Google-chrome", NULL, NULL, 1 << 8, 0, -1 }, }; @@ -70,20 +72,20 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "alacritty", NULL }; -static const char *brightnessup[] = { "sudo", "brightnessctl", "set", "+10%", NULL}; -static const char *brightnessdown[] = { "sudo", "brightnessctl", "set", "10%-", NULL}; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "alacritty", NULL }; +static const char *brightup[] = { "sudo", "brightnessctl", "set", "+10%", NULL}; +static const char *brightdown[] = { "sudo", "brightnessctl", "set", "10%-", NULL}; static const char *audioup[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; static const char *audiodown[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; static const char *audiotoggle[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; -static const char *mpcnext[] = { "mpc", "next", NULL }; -static const char *mpctoggle[] = { "mpc", "toggle", NULL }; -static const char *mpcprev[] = { "mpc", "prev", NULL }; -static const char *mpcpause[] = { "mpc", "pause", NULL }; -static const char *ncmpcpp[] = { "alacritty", "-t", "ncmpcpp", "-e", "ncmpcpp", NULL }; -static const char *pamix[] = { "alacritty", "-t", "pamix", "-e", "pamix", NULL }; -static const char *mutt[] = { "alacritty", "-t", "mutt", "-e", "neomutt", NULL }; +static const char *mpcnext[] = { "mpc", "next", NULL }; +static const char *mpctoggle[] = { "mpc", "toggle", NULL }; +static const char *mpcprev[] = { "mpc", "prev", NULL }; +static const char *mpcpause[] = { "mpc", "pause", NULL }; +static const char *ncmpcpp[] = { "alacritty", "-t", "ncmpcpp", "-e", "ncmpcpp", NULL }; +static const char *pamix[] = { "alacritty", "-t", "pamix", "-e", "pamix", NULL }; +static const char *mutt[] = { "alacritty", "-t", "mutt", "-e", "neomutt", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -129,8 +131,8 @@ static Key keys[] = { TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, /* see */ - { 0, 0x1008FF02,spawn, {.v = brightnessup} }, - { 0, 0x1008FF03,spawn, {.v = brightnessdown} }, + { 0, 0x1008FF02,spawn, {.v = brightup} }, + { 0, 0x1008FF03,spawn, {.v = brightdown} }, { 0, 0x1008FF11,spawn, {.v = audiodown} }, { 0, 0x1008FF12,spawn, {.v = audiotoggle} }, { ShiftMask, 0x1008FF12,spawn, {.v = pamix} }, diff --git a/config.h b/config.h index d557136..5a9fea8 100644 --- a/config.h +++ b/config.h @@ -11,8 +11,8 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display static const int showsystray = 1; /* 0 means no systray */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 0; /* 0 means bottom bar */ -static const char *fonts[] = { "Go:pixelsize=16:antialias=true:autohint=true" }; -static const char dmenufont[] = "Go:pixelsize=16:antialias=true:autohint=true"; +static const char *fonts[] = { "Go:pixelsize=18:antialias=true:autohint=true", "FontAwesome:pixelsize=18:antialias=true:autohint=true"}; +static const char dmenufont[] = "Go:pixelsize=18:antialias=true:autohint=true"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -35,6 +35,8 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Alacritty", NULL, "pamix", 0, 1, -1 }, + { "Alacritty", NULL, "ncmpcpp", 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, { "Google-chrome", NULL, NULL, 1 << 8, 0, -1 }, }; @@ -70,20 +72,20 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "alacritty", NULL }; -static const char *brightnessup[] = { "sudo", "brightnessctl", "set", "+10%", NULL}; -static const char *brightnessdown[] = { "sudo", "brightnessctl", "set", "10%-", NULL}; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "alacritty", NULL }; +static const char *brightup[] = { "sudo", "brightnessctl", "set", "+10%", NULL}; +static const char *brightdown[] = { "sudo", "brightnessctl", "set", "10%-", NULL}; static const char *audioup[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; static const char *audiodown[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; static const char *audiotoggle[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; -static const char *mpcnext[] = { "mpc", "next", NULL }; -static const char *mpctoggle[] = { "mpc", "toggle", NULL }; -static const char *mpcprev[] = { "mpc", "prev", NULL }; -static const char *mpcpause[] = { "mpc", "pause", NULL }; -static const char *ncmpcpp[] = { "alacritty", "-t", "ncmpcpp", "-e", "ncmpcpp", NULL }; -static const char *pamix[] = { "alacritty", "-t", "pamix", "-e", "pamix", NULL }; -static const char *mutt[] = { "alacritty", "-t", "mutt", "-e", "neomutt", NULL }; +static const char *mpcnext[] = { "mpc", "next", NULL }; +static const char *mpctoggle[] = { "mpc", "toggle", NULL }; +static const char *mpcprev[] = { "mpc", "prev", NULL }; +static const char *mpcpause[] = { "mpc", "pause", NULL }; +static const char *ncmpcpp[] = { "alacritty", "-t", "ncmpcpp", "-e", "ncmpcpp", NULL }; +static const char *pamix[] = { "alacritty", "-t", "pamix", "-e", "pamix", NULL }; +static const char *mutt[] = { "alacritty", "-t", "mutt", "-e", "neomutt", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -129,8 +131,8 @@ static Key keys[] = { TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, /* see */ - { 0, 0x1008FF02,spawn, {.v = brightnessup} }, - { 0, 0x1008FF03,spawn, {.v = brightnessdown} }, + { 0, 0x1008FF02,spawn, {.v = brightup} }, + { 0, 0x1008FF03,spawn, {.v = brightdown} }, { 0, 0x1008FF11,spawn, {.v = audiodown} }, { 0, 0x1008FF12,spawn, {.v = audiotoggle} }, { ShiftMask, 0x1008FF12,spawn, {.v = pamix} },