archy-dwm/config.h

69 lines
3.4 KiB
C
Raw Normal View History

2022-04-23 05:48:31 +00:00
/* See LICENSE file for copyright and license details. */
/* def */
2022-07-10 10:41:15 +00:00
#define WEBBROWSER "google-chrome-stable"
#define TERMINAL "alacritty"
#define SCREENSHOT "spectacle"
2022-07-12 04:36:45 +00:00
#define GUI_FILEMANAGER "pcmanfm"
2022-04-25 12:34:26 +00:00
2022-04-23 05:48:31 +00:00
/* appearance */
2022-04-23 06:07:45 +00:00
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int gappx = 3; /* gaps size between windows */
2022-04-23 05:48:31 +00:00
static const unsigned int snap = 32; /* snap pixel */
2022-04-23 21:59:02 +00:00
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 */
2022-04-23 05:48:31 +00:00
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
2022-05-27 11:37:57 +00:00
static const char *fonts[] = { "monospace:size=11", "Noto Color Emoji:size=11", "Nerd Font Mono:weight=bold:size=15:antialias=true:hinting=true" };
2022-04-23 06:03:58 +00:00
static const char dmenufont[] = "monospace:size=11";
2022-05-27 11:37:57 +00:00
static const char col_1[] = "#282c34"; // Background color of bar
static const char col_2[] = "#282c34"; // Background color of unfocused windows border
static const char col_3[] = "#d7d7d7";
static const char col_4[] = "#018858"; // Background color of focused windows border and tags (main color acent)
2022-04-23 05:48:31 +00:00
static const char *colors[][3] = {
/* fg bg border */
2022-05-27 11:37:57 +00:00
[SchemeNorm] = { col_3, col_1, col_2 },
[SchemeSel] = { col_3, col_4, col_4 },
2022-04-23 05:48:31 +00:00
};
2022-04-25 12:34:26 +00:00
// Autostart programs
static const char *const autostart[] = {
2022-07-10 06:33:23 +00:00
// Start my build of slstatus
2022-04-25 15:49:06 +00:00
"slstatus", NULL,
2022-07-10 06:33:23 +00:00
// Keyboard layouts switch (requires setxkbmap)
"setxkbmap", "-model", "pc101", "-layout", "us,ar", "-variant", ",,", "-option", "grp:win_space_toggle", NULL,
2022-07-12 04:36:45 +00:00
// "xkbset", "exp", "=sticky", "-twokey", "-latchlock", NULL, // sticky keys
"~/.config/scripts/stickykeys.sh", NULL, // sticky keys script
2022-07-10 06:33:23 +00:00
"picom", NULL, // Start compositor , for transparency
"nitrogen", "--restore", NULL, // Restores the wallpaper
"nm-applet", NULL, // Start the network manger
2022-07-12 04:36:45 +00:00
"copyq", NULL, // clipboard manger
2022-04-25 15:49:06 +00:00
NULL /* terminate */
2022-04-25 12:34:26 +00:00
};
2022-04-23 05:48:31 +00:00
/* tagging */
2022-05-27 09:49:09 +00:00
// static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX" };
2022-05-27 11:37:57 +00:00
static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
2022-04-23 05:48:31 +00:00
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
2022-04-28 19:00:07 +00:00
{ WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 },
2022-04-23 05:48:31 +00:00
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
#include "layouts/layouts.h"
#include "movestack.c"
#include "keys/keys.h"