terminal tweaks

This commit is contained in:
Daniel Lundin 2020-08-03 19:18:26 +02:00
parent 7aa4259102
commit 271344f37d
No known key found for this signature in database
GPG key ID: 6AB527C9196ACDCC
2 changed files with 106 additions and 41 deletions

View file

@ -26,8 +26,8 @@ window:
# Blank space added around the window in pixels. This padding is scaled # Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides. # by DPI and the specified value is always added at both opposing sides.
padding: padding:
x: 0 x: 10
y: 0 y: 10
# Spread additional padding evenly around the terminal content. # Spread additional padding evenly around the terminal content.
dynamic_padding: true dynamic_padding: true
@ -75,7 +75,7 @@ tabspaces: 8
# - https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration # - https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
# - file:///usr/share/doc/fontconfig/fontconfig-user.html # - file:///usr/share/doc/fontconfig/fontconfig-user.html
font: font:
size: 28 size: 18.0
normal: normal:
family: IBM Plex Mono family: IBM Plex Mono
style: Regular style: Regular
@ -85,21 +85,12 @@ font:
italic: italic:
family: IBM Plex Mono family: IBM Plex Mono
style: Italic style: Italic
# normal:
# family: Fira Code
# style: Regular
# bold:
# family: Fira Code
# style: SemiBold
# italic:
# family: Fira Code
# style: Italic
# Offset is the extra space around each character. `offset.y` can be thought of # Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
offset: offset:
x: 0 x: 0
y: 0 y: 3
# Glyph offset determines the locations of the glyphs within their cells with # Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the right, # the default being at the bottom. Increasing `x` moves the glyph to the right,
@ -109,7 +100,7 @@ font:
y: 0 y: 0
# If `true`, bold text is drawn using the bright color variants. # If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true draw_bold_text_with_bright_colors: false
colors: colors:
# Default colors # Default colors
@ -140,36 +131,98 @@ colors:
cyan: '0x00acc1' cyan: '0x00acc1'
white: '0xf5f5f5' white: '0xf5f5f5'
# Visual Bell # Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
cursor:
cursor: '0xaa0000'
# text: CellBackground
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#vi_mode_cursor:
# text: CellBackground
# cursor: CellForeground
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#selection:
# text: CellBackground
# background: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
#
# Allowed values are CellForeground and CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#search:
# matches:
# foreground: '#000000'
# background: '#ffffff'
#
# bar:
# background: CellForeground
# foreground: CellBackground
# Bell
# #
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once # The bell is rung every time the BEL control character is received.
# rung, the terminal background will be set to white and transition back to the #bell:
# default background color. You can control the rate of this transition by # Visual Bell Animation
# setting the `duration` property (represented in milliseconds). You can also #
# configure the transition function by setting the `animation` property. # Animation effect for flashing the screen when the visual bell is rung.
# #
# Values for `animation`: # Values for `animation`:
# - Ease # - Ease
# - EaseOut # - EaseOut
# - EaseOutSine # - EaseOutSine
# - EaseOutQuad # - EaseOutQuad
# - EaseOutCubic # - EaseOutCubic
# - EaseOutQuart # - EaseOutQuart
# - EaseOutQuint # - EaseOutQuint
# - EaseOutExpo # - EaseOutExpo
# - EaseOutCirc # - EaseOutCirc
# - Linear # - Linear
# #animation: EaseOutExpo
# Specifying a `duration` of `0` will disable the visual bell.
visual_bell: # Duration of the visual bell flash. A `duration` of `0` will disable the
animation: EaseOutExpo # visual bell animation.
duration: 0 #duration: 0
# Visual bell animation color.
#color: '#ffffff'
# Bell Command
#
# This program is executed whenever the bell is rung.
#
# When set to `command: None`, no command will be executed.
#
# Example:
# command:
# program: notify-send
# args: ["Hello, World!"]
#
#command: None
# Background opacity # Background opacity
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque. # The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.0 background_opacity: 1.0
# Mouse bindings # Mouse bindings
# #
@ -215,7 +268,7 @@ mouse:
#modifiers: Control|Shift #modifiers: Control|Shift
selection: selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>" semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to both the primary and # When set to `true`, selected text will be copied to both the primary and
# the selection clipboard. Otherwise, it will only be copied to the selection # the selection clipboard. Otherwise, it will only be copied to the selection
@ -233,10 +286,22 @@ cursor:
# - | Beam # - | Beam
style: Block style: Block
# Vi mode cursor style
#
# If the vi mode cursor style is `None` or not specified, it will fall back to
# the style of the active value of the normal cursor.
#
# See `cursor.style` for available options.
#vi_mode_style: None
# If this is `true`, the cursor will be rendered as a hollow box when the # If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused. # window is not focused.
unfocused_hollow: true unfocused_hollow: true
# Thickness of the cursor relative to the cell width as floating point number
# from `0.0` to `1.0`.
thickness: 0.55
# Live config reload (changes require restart) # Live config reload (changes require restart)
live_config_reload: true live_config_reload: true

View file

@ -2,7 +2,7 @@ font_family IBM Plex Mono
bold_font IBM Plex Mono SemiBold bold_font IBM Plex Mono SemiBold
italic_font IBM Plex Mono Light Italic italic_font IBM Plex Mono Light Italic
bold_italic_font IBM Plex Mono SemiBold Italic bold_italic_font IBM Plex Mono SemiBold Italic
font_size 18.0 font_size 20.0
adjust_line_height 3 adjust_line_height 3
scrollback_lines 2000 scrollback_lines 2000
@ -16,7 +16,7 @@ enable_audio_bell no
map alt+shift+c copy_to_clipboard map alt+shift+c copy_to_clipboard
map alt+shift+v paste_from_clipboard map alt+shift+v paste_from_clipboard
window_padding_width 10 window_padding_width 2
update_check_interval 0 update_check_interval 0
cursor_shape block cursor_shape block
url_color #29B6F6 url_color #29B6F6