aboutsummaryrefslogtreecommitdiff
path: root/config.c (follow)
Commit message (Collapse)AuthorAgeLines
* server/client: add XDG_SESSION_ID to the default socket pathDaniel Eklöf2020-03-14-2/+6
| | | | This allows multiple foot servers to run in multiple sessions.
* config: change default CSD button width from 22 -> 26Daniel Eklöf2020-03-06-1/+1
|
* config: CSD borders are always invisibleDaniel Eklöf2020-03-03-27/+2
| | | | | That is, remove all configuration options and always draw them fully transparent.
* csd: initial implementation of minimize/maximize/close buttonsDaniel Eklöf2020-03-02-2/+45
|
* config: no need to free 'line' between each call to getline()Daniel Eklöf2020-03-02-14/+6
| | | | | | getline() will re-use the allocated line if it large enough, or resize it otherwise. Thus there's no need to free it and set it to NULL between each call.
* config: prefer $SHELL over /etc/passwdDaniel Eklöf2020-03-02-6/+10
| | | | | If the user hasn't configured a shell in footrc, use $SHELL. Only if that variable isn't set do we use the shell from /etc/passwd.
* config: make CSD user configurableDaniel Eklöf2020-03-02-5/+85
| | | | | | | | | | | | | | The user can now configure the following: * Whether to prefer CSDs or SSDs. But note that this is only a hint to the compositor - it may deny our request. Furthermore, not all compositors implement the decoration manager protocol, meaning CSDs will be used regardless of the user configuration (GNOME/mutter being the most prominent one). * Title bar size and color, including transparency * Border size and color, including transparency Also drop support for rendering the CSDs inside the main surface.
* config: change default geometry from 800x600 -> 700x500Daniel Eklöf2020-02-29-2/+2
| | | | | | | | If the display resolution *is* 800x600, using this size is bad since there will typically be panels and other things on the screen too. Not that 800x600 is something we expect to see in real life, but may happen on virtual displays.
* config: add default font when using the default configDaniel Eklöf2020-02-28-1/+1
| | | | | | When there is no configuration file, and we're using the default configuration, we accidentally jumped pasted the code that ensures we have at least "monospace" in the font list.
* main: geometry defaults to 800x600 pixelsDaniel Eklöf2020-02-25-2/+2
|
* config: add 'login-shell' optionDaniel Eklöf2020-02-20-0/+8
|
* config: add 'pad' option, default to 2Daniel Eklöf2020-02-15-0/+15
|
* Implement --holdDaniel Eklöf2020-02-03-0/+2
| | | | When specified, we don't exit when the slave/client process exits.
* config: enable user to specify path to configuration fileDaniel Eklöf2019-12-17-13/+20
|
* config: add 'server_socket_path' and set a default valueDaniel Eklöf2019-12-14-0/+14
|
* config: trim leading spaces from fontsDaniel Eklöf2019-12-05-2/+7
| | | | | | | | When splitting the font configuration into multiple font specifications, we now trim leading spaces. This makes no actual difference; fontconfig matched the fonts just fine anyway, but this looks better in the logs.
* config: change default bright5 and bright 6 colorsDaniel Eklöf2019-09-21-2/+2
| | | | | | | They where previously identical to the corresponding 'regular' colors. Now, we've done a saturated add with 0x202020 (which seems to be roughly the difference between the other regular and bright colors).
* config: change default 'regular0' colorDaniel Eklöf2019-09-21-1/+1
| | | | | 0x222222 appears to be more visible against the default background (0x111111) than 0x000000.
* config: turn info log message into a debug log messageDaniel Eklöf2019-08-23-1/+1
|
* colors: change default 'bright0' from 000000 -> 666666Daniel Eklöf2019-08-23-1/+1
|
* add config + command line option for setting initial window width/heightDaniel Eklöf2019-08-23-0/+15
|
* render: replace all usage of cairo with pixmanDaniel Eklöf2019-08-16-2/+2
|
* Add background alpha supportDaniel Eklöf2019-08-15-0/+25
|
* config: set to NULL before calling getline()Daniel Eklöf2019-08-12-0/+1
| | | | This fixes a crash on musl-based distros
* config: don't log a NULL pathDaniel Eklöf2019-08-12-2/+2
|
* config: remove old, commented out codeDaniel Eklöf2019-08-08-1/+0
|
* conf: make number of scrollback lines configurableDaniel Eklöf2019-08-01-0/+10
|
* config: remove commented out codeDaniel Eklöf2019-07-30-2/+0
|
* font: add support for fallback fontsDaniel Eklöf2019-07-30-4/+10
| | | | | | | | | | | | | | | A top-level font now has a list of fallback fonts. When a glyph cannot be found, we try each fallback font in turn, until we either find one that has the glyph, or until we've exhausted the list. To make this actually work in practise (read: to make performance acceptable), the cache is re-worked and is now populated on demand. It also supports non-ASCII characters, by using the 4-byte unicode character as index instead. Since having an array that can be indexed by a 4-byte value isn't really viable, we now have a simple hash table instead of an array.
* wip: initial multithreaded rendererDaniel Eklöf2019-07-29-9/+22
|
* conf: allow the user to configure a fixed cursor colorDaniel Eklöf2019-07-23-13/+51
| | | | | | | | | | | | | | | | | | | The default is to reverse the foreground/background colors in the cell with the cursor. But, if the user configures a specific set of cursor colors, those will always be used, regardless of other cell attributes (dim, reverse etc). The cursor color is specified as two color values, 'text' and 'cursor'. The block cursor uses the 'cursor' color as background, and the 'text' color for the glyph. All other cursor styles uses the 'cursor' color for the cursor, but uses the cell's foreground color for the glyph (meaning, dim/reverse/etc applies).
* conf: make cursor's default style configurableDaniel Eklöf2019-07-22-0/+35
|
* conf: don't fail to start when there's no configuration fileDaniel Eklöf2019-07-22-0/+1
|
* conf: remove debug loggingDaniel Eklöf2019-07-21-2/+0
|
* conf: misc valgrind fixesDaniel Eklöf2019-07-21-22/+44
|
* conf: fg/bg and all regular + bright colors are now configurableDaniel Eklöf2019-07-21-4/+70
|
* conf: config now provides the colors (though still only hardcoded colors)Daniel Eklöf2019-07-21-0/+50
|
* conf: TERM can now be set in footrcDaniel Eklöf2019-07-18-3/+9
|
* conf: repair debug build when LOG_ENABLE_DBG=0 in config.cDaniel Eklöf2019-07-17-1/+1
|
* conf: improve configuration file parsingDaniel Eklöf2019-07-17-14/+60
| | | | | | | * Strip whitespaces from keys and values * Detect (and ignore) comments * Detect syntax errors (no value specified etc) * Error out on syntax errors and invalid keys
* conf: add support for overriding shellDaniel Eklöf2019-07-17-0/+5
|
* conf: get user's shellDaniel Eklöf2019-07-17-0/+17
|
* conf: initial support for configuration fileDaniel Eklöf2019-07-16-0/+178
* Look for configuration file in (in this order): - XDG_CONFIG_HOME/footrc - ~/.config/footrc * Currently supports setting the font