From 3762ba5cb6db5184938d08dbf90e079916076f31 Mon Sep 17 00:00:00 2001 From: NPScript Date: Sun, 1 May 2022 15:50:06 +0200 Subject: add icons --- config.def.h | 25 ++++++++++++++++++++----- config.h | 10 ++++++---- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/config.def.h b/config.def.h index e5f5634..1e72722 100644 --- a/config.def.h +++ b/config.def.h @@ -5,8 +5,8 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; +static const char *fonts[] = { "SauceCodePro Nerd Font:size=10" }; +static const char dmenufont[] = "SauceCodePro Nerd Font:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -27,8 +27,7 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { NULL, NULL, NULL, 0, 0, -1 }, }; /* layout(s) */ @@ -57,13 +56,21 @@ 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 *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_green, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *browsercmd[] = { "qutebrowser", NULL }; +static const char *passcmd[] = { "passmenu", "--type", NULL }; +static const char *mailcmd[] = { "st", "neomutt", NULL }; +static const char *musiccmd[] = { "st", "cmus", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } }, + { MODKEY|ShiftMask, XK_p, spawn, {.v = passcmd } }, + { MODKEY|ShiftMask, XK_e, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -95,6 +102,14 @@ static Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pactl set-sink-volume 0 -3%;status -u") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("pactl set-sink-mute 0 toggle;status -u") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pactl set-sink-volume 0 +3%;status -u") }, + { 0, XF86XK_AudioPlay, spawn, SHCMD("playerctl play-pause") }, + { 0, XF86XK_AudioNext, spawn, SHCMD("playerctl next") }, + { 0, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") }, + { 0, XK_Print, spawn, SHCMD("screencast") }, }; /* button definitions */ diff --git a/config.h b/config.h index 1e72722..db7ca5e 100644 --- a/config.h +++ b/config.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -38,9 +38,9 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, + { "◨", tile }, /* first entry is default */ + { "🗗", NULL }, /* no layout function means floating behavior */ + { "⛶", monocle }, }; /* key definitions */ @@ -62,6 +62,7 @@ static const char *browsercmd[] = { "qutebrowser", NULL }; static const char *passcmd[] = { "passmenu", "--type", NULL }; static const char *mailcmd[] = { "st", "neomutt", NULL }; static const char *musiccmd[] = { "st", "cmus", NULL }; +static const char *lockcmd[] = { "slock", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -71,6 +72,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_p, spawn, {.v = passcmd } }, { MODKEY|ShiftMask, XK_e, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } }, + { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, -- cgit v1.2.3-70-g09d2