Major config changes

This commit is contained in:
2024-06-03 18:05:52 +01:00
parent 0bba3c60a7
commit 5d04df37eb
6 changed files with 28 additions and 24 deletions

View File

@@ -8,10 +8,10 @@ static const char *fonts[] = {
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
/* fg bg */
[SchemeNorm] = { "#ebdbb2", "#282828" },
[SchemeSel] = { "#ebdbb2", "#98971a" },
[SchemeOut] = { "#ebdbb2", "#8ec07c" },
[SchemeSel] = { "#282828", "#ebdbb2" },
[SchemeOut] = { "#ebdbb2", "#8ec07c" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;

View File

@@ -8,10 +8,10 @@ static const char *fonts[] = {
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
/* fg bg */
[SchemeNorm] = { "#ebdbb2", "#282828" },
[SchemeSel] = { "#ebdbb2", "#98971a" },
[SchemeOut] = { "#ebdbb2", "#8ec07c" },
[SchemeSel] = { "#282828", "#ebdbb2" },
[SchemeOut] = { "#ebdbb2", "#8ec07c" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;

View File

@@ -67,8 +67,8 @@ static const char *slockcmd[] = { "slock", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -76,9 +76,9 @@ static const Key keys[] = {
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },

View File

@@ -67,8 +67,8 @@ static const char *slockcmd[] = { "slock", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -76,9 +76,9 @@ static const Key keys[] = {
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },

View File

@@ -4,7 +4,7 @@
const unsigned int interval = 1000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
static const char unknown_str[] = "??";
/* maximum output string length */
#define MAXLEN 2048
@@ -65,8 +65,10 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ cpu_perc, " %s%% ", NULL },
{ ram_used, " %s", NULL },
{ ram_perc, "(%s%%) ", NULL },
{ datetime, " %s", "%a %F %T" },
{ battery_perc, "󰂉 %s%% ", "BAT0" },
{ vol_perc, " %s%% ", NULL },
{ cpu_perc, "%s%% ", NULL },
{ ram_used, " %s", NULL },
{ ram_perc, "(%s%%) ", NULL },
{ datetime, " %s", "%d/%m/%y %l:%M %p" },
};

View File

@@ -4,7 +4,7 @@
const unsigned int interval = 1000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
static const char unknown_str[] = "??";
/* maximum output string length */
#define MAXLEN 2048
@@ -65,8 +65,10 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ cpu_perc, " %s%% ", NULL },
{ ram_used, " %s", NULL },
{ ram_perc, "(%s%%) ", NULL },
{ datetime, " %s", "%a %F %T" },
{ battery_perc, "󰂉 %s%% ", "BAT0" },
{ vol_perc, " %s%% ", NULL },
{ cpu_perc, "%s%% ", NULL },
{ ram_used, " %s", NULL },
{ ram_perc, "(%s%%) ", NULL },
{ datetime, " %s", "%d/%m/%y %l:%M %p" },
};