From 491e14cf460f1fd1ef400879985928d6768f93b3 Mon Sep 17 00:00:00 2001 From: gonzo Date: Tue, 12 Mar 2024 15:38:33 +0100 Subject: added systray --- config.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index d767858..060efd3 100644 --- a/config.h +++ b/config.h @@ -7,6 +7,11 @@ /* appearance */ static const unsigned int borderpx = 2; /* border pixel of 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 char *fonts[] = { "monospace:size=10", "NotoColorEmoji:pixelsize=10:antialias=true:autohint=true" }; @@ -27,8 +32,8 @@ typedef struct { const char *name; const void *cmd; } Sp; -const char *spterm[] = {"st", "-n", "spterm", "-g", "50x20", NULL }; -const char *spcalc[] = {"st", "-n", "spcalc", "-g", "40x10", "-e", "bc", "-l", NULL }; +const char *spterm[] = {"xterm", "-n", "spterm", "-g", "50x20", NULL }; +const char *spcalc[] = {"xterm", "-n", "spcalc", "-g", "40x10", "-e", "bc", "-l", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spterm}, @@ -78,7 +83,7 @@ static const Layout layouts[] = { /* commands */ static const char *eclient[] = { "emacsclient", "-c", NULL }; -static const char *eckill[] = { "pkill", "-USR1", "emacs", NULL }; +//static const char *eckill[] = { "pkill", "-USR1", "emacs", NULL }; static const char *dmenucmd[] = { "dmenu_custom", "-fn", dmenufont, NULL }; static const char *dmenussh[] = { "dmenu_ssh", "-fn", dmenufont, NULL }; static const char *dmemoji[] = { "dmenu_emoji", NULL }; -- cgit v1.2.3