aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h75
1 files changed, 41 insertions, 34 deletions
diff --git a/config.h b/config.h
index ca67e78..70f8feb 100644
--- a/config.h
+++ b/config.h
@@ -4,6 +4,11 @@
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int gappx = 10; /* gaps between windows */
static const unsigned int snap = 32; /* snap pixel */
+static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
+static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
+static const unsigned int systrayspacing = 2; /* systray spacing */
+static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
+static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int user_bh = 22; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
@@ -17,7 +22,7 @@ static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
-static const char col_cyan[] = "#6e0000";
+static const char col_cyan[] = "#458588";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
@@ -92,27 +97,28 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *term_cmd[] = { "st", NULL };
+static const char *term_cmd[] = { "alacritty", NULL };
static const char *coolterm_cmd[] = { "cool-retro-term", NULL };
static const char *dmenu_cmd[] = { "dmenu_run", "-i", "-m", "0", NULL };
-static const char *dmpc_cmd[] = { "/home/jozan/.local/bin/dmpc", NULL };
-static const char *dmkill_cmd[] = { "/home/jozan/.local/bin/dmkill", NULL };
-static const char *dmsearch_cmd[] = { "/home/jozan/.local/bin/dmsearch", NULL };
-static const char *dmscrot_cmd[] = { "/home/jozan/.local/bin/dmscrot", NULL };
-static const char *dmlog_cmd[] = { "/home/jozan/.local/bin/dmlog", NULL };
-static const char *dmpass_full_cmd[] = { "/home/jozan/.local/bin/dmpass", "--full", NULL };
-static const char *dmpass_cmd[] = { "/home/jozan/.local/bin/dmpass", NULL };
-static const char *dmotp_cmd[] = { "/home/jozan/.local/bin/dmotp", NULL };
-static const char *ndate_cmd[] = { "/home/jozan/.local/bin/ndate", NULL };
+static const char *dmapps_cmd[] = { "/home/r_bousset/.local/bin/dmapps", NULL };
+static const char *dmpc_cmd[] = { "/home/r_bousset/.local/bin/dmpc", NULL };
+static const char *dmkill_cmd[] = { "/home/r_bousset/.local/bin/dmkill", NULL };
+static const char *dmsearch_cmd[] = { "/home/r_bousset/.local/bin/dmsearch", NULL };
+static const char *dmscrot_cmd[] = { "/home/r_bousset/.local/bin/dmscrot", NULL };
+static const char *dmlog_cmd[] = { "/home/r_bousset/.local/bin/dmlog", NULL };
+static const char *dmpass_full_cmd[] = { "/home/r_bousset/.local/bin/dmpass", "--full", NULL };
+static const char *dmpass_cmd[] = { "/home/r_bousset/.local/bin/dmpass", NULL };
+static const char *dmotp_cmd[] = { "/home/r_bousset/.local/bin/dmotp", NULL };
+static const char *ndate_cmd[] = { "/home/r_bousset/.local/bin/ndate", NULL };
static const char *file_cmd[] = { "alacritty", "-e", "zsh", "-ic", "lf", NULL };
static const char *file_alt_cmd[] = { "pcmanfm", NULL };
static const char *edit_cmd[] = { "emacsclient", "-c", NULL };
-static const char *browser_cmd[] = { "iridium", "--force-dark-mode", NULL };
-static const char *torbro_cmd[] = { "torify", "iridium", "--force-dark-mode", NULL };
+static const char *browser_cmd[] = { "librewolf", NULL };
+static const char *torbro_cmd[] = { "torify", "librewolf", NULL };
static const char *w3m_cmd[] = { "alacritty", "-e", "w3m", "https://start.duckduckgo.com/", NULL };
static const char *nb_cmd[] = { "alacritty", "-e", "newsboat", NULL };
static const char *ncmpc_cmd[] = { "alacritty", "-e", "ncmpc", NULL };
-static const char *cal_cmd[] = { "alacritty", "-e", "calcurse", "-C", "/home/jozan/.config/calcurse", "-D", "/home/jozan/.local/share/calcurse", NULL };
+static const char *cal_cmd[] = { "alacritty", "-e", "calcurse", "-C", "/home/r_bousset/.config/calcurse", "-D", "/home/jozan/.local/share/calcurse", NULL };
static const char *scli_cmd[] = { "alacritty", "-e", "scli", NULL };
static const char *mutt_cmd[] = { "alacritty", "-e", "neomutt", NULL };
static const char *gotop_cmd[] = { "alacritty", "-e", "gotop", NULL };
@@ -120,15 +126,15 @@ static const char *htop_cmd[] = { "alacritty", "-e", "htop", NULL };
static const char *top_cmd[] = { "alacritty", "-e", "top", NULL };
static const char *bl_inc_cmd[] = { "xbacklight", "-inc", "10", NULL };
static const char *bl_dec_cmd[] = { "xbacklight", "-dec", "10", NULL };
-static const char *vol_tog_cmd[] = { "/home/jozan/.local/bin/mixer-set", "toggle", NULL };
-static const char *vol_dec_cmd[] = { "/home/jozan/.local/bin/mixer-set", "lower", NULL };
-static const char *vol_inc_cmd[] = { "/home/jozan/.local/bin/mixer-set", "raise", NULL };
-static const char *mic_cmd[] = { "/home/jozan/.local/bin/mic", NULL };
+static const char *vol_tog_cmd[] = { "/home/r_bousset/.local/bin/mixer-set", "toggle", NULL };
+static const char *vol_dec_cmd[] = { "/home/r_bousset/.local/bin/mixer-set", "lower", NULL };
+static const char *vol_inc_cmd[] = { "/home/r_bousset/.local/bin/mixer-set", "raise", NULL };
+static const char *mic_cmd[] = { "/home/r_bousset/.local/bin/mic", NULL };
static const char *mpc_prev_cmd[] = { "mpc", "prev", NULL };
static const char *mpc_next_cmd[] = { "mpc", "next", NULL };
static const char *mpc_tog_cmd[] = { "mpc", "toggle", NULL };
static const char *mpc_stop_cmd[] = { "mpc", "stop", NULL };
-static const char *killespeak_cmd[] = { "/home/jozan/.local/bin/shutup", NULL };
+static const char *killespeak_cmd[] = { "/home/r_bousset/.local/bin/shutup", NULL };
#include "movestack.c"
#include <X11/XF86keysym.h>
@@ -136,7 +142,8 @@ static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenu_cmd } },
{ MODKEY, XK_Return, spawn, {.v = term_cmd } },
- { MODKEY|ControlMask, XK_Return, spawn, {.v = coolterm_cmd } },
+ { MODKEY|ControlMask|ShiftMask, XK_Return, spawn, {.v = coolterm_cmd } },
+ { MODKEY|ControlMask, XK_Return, spawn, {.v = dmapps_cmd } },
{ MODKEY, XK_F1, spawn, {.v = file_cmd } },
{ MODKEY|ShiftMask, XK_F1, spawn, {.v = file_alt_cmd } },
{ MODKEY, XK_F2, spawn, {.v = edit_cmd } },
@@ -205,18 +212,18 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_space, setlayout, {0} },
{ MODKEY, XK_space, togglefloating, {0} },
{ MODKEY, XK_f, togglefullscr, {0} },
- { MODKEY, XK_bracketleft, focusmon, {.i = +1 } },
- { MODKEY, XK_bracketright, focusmon, {.i = -1 } },
- { MODKEY, XK_h, focusmon, {.i = +1 } },
- { MODKEY, XK_l, focusmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_bracketleft, tagmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_bracketright, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_h, tagmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_l, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_bracketleft, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_bracketright, focusmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_h, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_l, focusmon, {.i = -1 } },
+ { MODKEY, XK_bracketleft, focusmon, {.i = -1 } },
+ { MODKEY, XK_bracketright, focusmon, {.i = +1 } },
+ { MODKEY, XK_h, focusmon, {.i = -1 } },
+ { MODKEY, XK_l, focusmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_bracketleft, tagmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_bracketright, tagmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_h, tagmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_l, tagmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_bracketleft, focusmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_bracketright, focusmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_h, focusmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_l, focusmon, {.i = +1 } },
{ MODKEY, XK_w, movemouse, {0} },
{ MODKEY|ShiftMask, XK_w, resizemouse, {0} },
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
@@ -248,8 +255,8 @@ static Key keys[] = {
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
- { ClkLtSymbol, 0, Button1, setlayout, {0} },
- { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
+ { ClkTagBar, MODKEY, Button1, tag, {0} },
+ { ClkTagBar, MODKEY, Button3, toggletag, {0} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = term_cmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },