aboutsummaryrefslogtreecommitdiff
path: root/config.h (follow)
Commit message (Collapse)AuthorAgeLines
* conf: bindings: allow several mappings for the same actionDaniel Eklöf2020-07-15-5/+15
| | | | | If the bindings has different pipe command associated with them, treat them as different actions.
* config: add support for appending a 'spawn' argument to key bindingsDaniel Eklöf2020-07-15-0/+2
| | | | | | | | | | | | A key binding may now have an optional ':<cmd>' string appended to the key. This is intended to be used like so: pipe-scrollback:sh -c "cat > file"=Print TODO: we still only allow one *action*. Meaning you still cannot specify multiple pipe-scrollback bindings, for example.
* term: don't use deprecated fcft_size_adjust()Daniel Eklöf2020-07-07-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | When resizing the font on-the-fly, we now do a complete font-reload (this is basically what fcft_size_adjust() did anyway). To get the correct size, we maintain the current size ourselves. We get the initial size from the user-provided font pattern, by converting the string to an FcPattern, and using FcPatternGet() to retrieve both the FC_SIZE and FC_PIXEL_SIZE attributes. These attributes are then removed from the pattern, and the pattern is converted back to a string. The terminal struct maintains a copy of the font sizes. These are initially set to the sizes from the config. When the user resizes the font, the terminal-local sizes are adjusted. To ensure the primary and user-configured fallback fonts are resizes equally much, convert any pixel sizes to point sizes at this point. When the font size is reset, we reload the font sizes from the config (thus once again returning actual pixel-sizes, if that's what the user has configured).
* config: add 'blink' option to cursor section in footrcDaniel Eklöf2020-06-30-0/+1
| | | | | This option controls whether the default cursor should blink or not. The default is to *not* blink.
* conf: add 'title' conf option and --title command line optionDaniel Eklöf2020-04-01-0/+1
|
* conf: add app-id config option and --app-id command line optionDaniel Eklöf2020-04-01-0/+1
|
* Merge branch 'master' into scroll-damage-performanceDaniel Eklöf2020-03-27-0/+1
|\
| * config: add 'startup-mode' optionDaniel Eklöf2020-03-26-0/+1
| | | | | | | | | | This option controls the initial window mode: windowed, maximized or fullscreen. The default is windowed.
* | shm: make max pool size user configurable (via a 'tweak' setting)Daniel Eklöf2020-03-25-0/+1
|/
* search: replace hard-coded key bindings with "user configurable" onesDaniel Eklöf2020-03-18-1/+1
| | | | | | | | They aren't really user configurable. At least not yet. However, with this, we now handle raw key codes just like the normal key bindings. Meaning, e.g. ctrl+g, ctrl+a, ctrl+e etc now works while searching with e.g. a russian layout.
* conf: make delayed rendering timeouts configurableDaniel Eklöf2020-03-17-0/+5
| | | | | | | | | | | This adds an undocumented 'tweak' section to footrc, with two new options: * delayed-render-lower * delayed-render-upper Both takes an integer value, representing the lower/upper timeout values (in nano seconds) for delayed rendering.
* config/input: implement mouse bindingsDaniel Eklöf2020-03-12-1/+1
| | | | | | | | | | * New config section, "mouse-bindings", where bindings are defined on the form "action=BTN_<name> * pointer_button() handler now scans the bindings list instead of hardcoding primary-paste to BTN_MIDDLE. * The implementation handles single- double- and triple clicks in the bindings, but there is currently no way to define anything but a single-click binding in the configuration.
* wip: initial framework for dealing with key/mouse bindings in different modesDaniel Eklöf2020-03-08-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds initial support for defining key and mouse bindings that are applied in different terminal modes/states. For example, there are two arrays dealing with key and mouse bindings in the "normal" mode. Most bindings will go here. There's also an array for "search" mode. These bindings will be used when the user has started a scrollback search. In the future, there may be a model selection mode as well. Or maybe "search" and "modal selection" will be combined into a single "keyboard" mode. We'll see. Since the keyboard bindings depend on the current XKB keymap, translation from the user specified key combination string cannot be done when loading the configuration, but must be done when we've received a keymap from the wayland server. We should explore if it's possible to load some kind of default keymap just to be able to verify the validity of the key combination strings at configuration load time, to be able to reject the configuration at startup. A couple of key bindings have been added as proof of concept. Mouse bindings aren't handled at all yet, and is likely to be re-written. For example, we can probably translate the configuration strings at configuration load time.
* config: CSD borders are always invisibleDaniel Eklöf2020-03-03-2/+0
| | | | | That is, remove all configuration options and always draw them fully transparent.
* csd: initial implementation of minimize/maximize/close buttonsDaniel Eklöf2020-03-02-0/+7
|
* config: make CSD user configurableDaniel Eklöf2020-03-02-0/+14
| | | | | | | | | | | | | | 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: add 'login-shell' optionDaniel Eklöf2020-02-20-0/+1
|
* config: add 'pad' option, default to 2Daniel Eklöf2020-02-15-0/+2
|
* Implement --holdDaniel Eklöf2020-02-03-0/+1
| | | | When specified, we don't exit when the slave/client process exits.
* wayland: optionally use the presentation time protocol to measure input lagDaniel Eklöf2019-12-31-1/+1
| | | | | | | | | | | | | | | | | | | This adds a flag, -p,--presentation-timings, that enables input lag measuring using the presentation time Wayland protocol. When enabled, we store a timestamp when we *send* a key to the slave. Then, when we commit a frame for rendering to the compositor, we request presentation feedback. We also store a timestamp for when the frame was committed. The 'presented' callback then looks at the input and commit timestamps, and compares it with the presented timestamp. The delay is logged at INFO when the delay was less than one frame interval, at WARN when it was one frame interval, and at ERR when it was two or more frame intervals. We also update statistic counters that we log when foot is shut down.
* config: enable user to specify path to configuration fileDaniel Eklöf2019-12-17-1/+1
|
* config: add 'server_socket_path' and set a default valueDaniel Eklöf2019-12-14-0/+2
|
* fcft: use fcft instead of local copy of font.c/font.hDaniel Eklöf2019-12-01-1/+2
|
* add config + command line option for setting initial window width/heightDaniel Eklöf2019-08-23-0/+3
|
* render: replace all usage of cairo with pixmanDaniel Eklöf2019-08-16-1/+1
|
* Add background alpha supportDaniel Eklöf2019-08-15-0/+1
|
* conf: make number of scrollback lines configurableDaniel Eklöf2019-08-01-0/+2
|
* font: add support for fallback fontsDaniel Eklöf2019-07-30-1/+2
| | | | | | | | | | | | | | | 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-0/+2
|
* conf: allow the user to configure a fixed cursor colorDaniel Eklöf2019-07-23-0/+4
| | | | | | | | | | | | | | | | | | | 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/+6
|
* conf: config now provides the colors (though still only hardcoded colors)Daniel Eklöf2019-07-21-0/+8
|
* conf: TERM can now be set in footrcDaniel Eklöf2019-07-18-0/+1
|
* conf: improve configuration file parsingDaniel Eklöf2019-07-17-1/+3
| | | | | | | * 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: get user's shellDaniel Eklöf2019-07-17-0/+1
|
* conf: initial support for configuration fileDaniel Eklöf2019-07-16-0/+8
* Look for configuration file in (in this order): - XDG_CONFIG_HOME/footrc - ~/.config/footrc * Currently supports setting the font