3 Commits

Author SHA1 Message Date
Fabian Schmidt
eba5410764 Removed broken references to xfps and actionfps 2020-05-23 13:26:39 +02:00
Fabian Schmidt
ab5128a96e Fixed include 2020-05-23 13:18:18 +02:00
Fabian Schmidt
a7ec4edb9d Added XResources support 2020-05-23 12:04:16 +02:00
2 changed files with 381 additions and 103 deletions

View File

@@ -5,14 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "Liberation Mono:pixelsize=15:antialias=true:autohint=true";
/* Spare fonts */
static char *font2[] = {
"DejaVuSansMono Nerd Font Mono:pixelsize=14:antialias=true:autohint=true",
"Inconsolata for Powerline:pixelsize=15:antialias=true:autohint=true",
"JoyPixels:pixelsize=14:antialias=true:autohint=true"
};
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
static int borderpx = 2;
/*
@@ -164,6 +157,40 @@ static unsigned int mousebg = 0;
*/
static unsigned int defaultattr = 11;
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "font", STRING, &font },
{ "color0", STRING, &colorname[0] },
{ "color1", STRING, &colorname[1] },
{ "color2", STRING, &colorname[2] },
{ "color3", STRING, &colorname[3] },
{ "color4", STRING, &colorname[4] },
{ "color5", STRING, &colorname[5] },
{ "color6", STRING, &colorname[6] },
{ "color7", STRING, &colorname[7] },
{ "color8", STRING, &colorname[8] },
{ "color9", STRING, &colorname[9] },
{ "color10", STRING, &colorname[10] },
{ "color11", STRING, &colorname[11] },
{ "color12", STRING, &colorname[12] },
{ "color13", STRING, &colorname[13] },
{ "color14", STRING, &colorname[14] },
{ "color15", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "blinktimeout", INTEGER, &blinktimeout },
{ "bellvolume", INTEGER, &bellvolume },
{ "tabspaces", INTEGER, &tabspaces },
{ "borderpx", INTEGER, &borderpx },
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
};
/*
* Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set).
* Note that if you want to use ShiftMask with selmasks, set this to an other

441
x.c

File diff suppressed because it is too large Load Diff