added whitespace for nicer reading and modified screenshot keybinds

This commit is contained in:
celso 2023-07-20 13:29:56 -03:00
parent adf24afdac
commit 3316a5d530
1 changed files with 15 additions and 15 deletions

View File

@ -76,24 +76,24 @@ 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[] = { "st", 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[] = { "st", NULL };
/* alsa volume control */
static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL };
static const char *upvol[] = { "amixer", "set", "Master", "2+", NULL };
static const char *downvol[] = { "amixer", "set", "Master", "2-", NULL };
static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL };
static const char *upvol[] = { "amixer", "set", "Master", "2+", NULL };
static const char *downvol[] = { "amixer", "set", "Master", "2-", NULL };
/* alsa muting/unmuting */
static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
/* screenshot tools */
static const char *scrallcmd[] = { "/home/celso/sources/scripts/prtscr/prtscra.sh", NULL };
static const char *scrcurcmd[] = { "/home/celso/sources/scripts/prtscr/prtscrcr.sh", NULL };
static const char *scrselcmd[] = { "/home/celso/sources/scripts/prtscr/prtscrsel.sh", NULL };
static const char *scrallcmd[] = { "/home/celso/sources/scripts/prtscr/prtscra.sh", NULL };
static const char *scrcurcmd[] = { "/home/celso/sources/scripts/prtscr/prtscrcr.sh", NULL };
static const char *scrselcmd[] = { "/home/celso/sources/scripts/prtscr/prtscrsel.sh", NULL };
/* browsers */
static const char *palemooncmd[] = { "palemoon", NULL };
static const char *chromiumcmd[] = { "chromium", NULL };
static const char *nextcloudcmd[] = { "nextcloud", NULL };
static const char *xfecmd[] = { "xfe", NULL };
static const char *keepassxccmd[] = { "keepassxc", NULL };
static const char *nextcloudcmd[] = { "nextcloud", NULL };
static const char *xfecmd[] = { "xfe", NULL };
static const char *keepassxccmd[] = { "keepassxc", NULL };
static const Key keys[] = {
/* modifier key function argument */
@ -102,9 +102,9 @@ static const Key keys[] = {
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioMute, spawn, {.v = mute } },
{ MODKEY, XK_Print, spawn, {.v = scrallcmd } },
{ MODKEY|ShiftMask, XK_Print, spawn, {.v = scrcurcmd } },
{ MODKEY|ControlMask, XK_Print, spawn, {.v = scrselcmd } },
{ 0, XK_Print, spawn, {.v = scrallcmd } },
{ ShiftMask, XK_Print, spawn, {.v = scrcurcmd } },
{ ControlMask, XK_Print, spawn, {.v = scrselcmd } },
{ MODKEY, XK_s, spawn, {.v = palemooncmd } },
{ MODKEY, XK_n, spawn, {.v = nextcloudcmd } },
{ MODKEY, XK_c, spawn, {.v = chromiumcmd } },