[ADD] Termite configuration and TERMINAL variable

Switching to Termite because URxvt has weird rendering issues when
resizing the font.

i3-sensible-terminal needs the TERMINAL environment variable to launch
our prefered terminal emulator with the Ctrl+d binding.

Bash and Zsh both need a hook to enable Termite to open another terminal
in the same directory with the Ctrl+Maj+t binding.
This commit is contained in:
Bruno BELANYI 2019-07-13 03:22:04 +02:00
parent 14380d14b7
commit 8d2f357c8c
5 changed files with 108 additions and 0 deletions

View file

@ -60,3 +60,9 @@ source ~/.bash_prompt
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
# Export our directory to Termite for opening new terminals
if [[ $TERM == xterm-termite ]]; then
. /etc/profile.d/vte.sh
__vte_prompt_command
fi

View file

@ -8,6 +8,7 @@ stow -t ~ git
stow -t ~ i3
stow -t ~ i3blocks
stow -t ~ ranger
stow -t ~ termite
stow -t ~ tridactyl
stow -t ~ vim
stow -t ~ zsh

View file

@ -4,6 +4,8 @@ PATH="$HOME/scripts:$PATH"
# Export our favorite editor
export EDITOR=vim
export VISUAL=$EDITOR # Also use it when asking for a GUI
# Export our terminal for i3-sensible-terminal
export TERMINAL=termite
# Color ls output depending on filetype with dircolors
[ -e "/etc/DIR_COLORS" ] && DIR_COLORS="/etc/DIR_COLORS"

View file

@ -0,0 +1,93 @@
[options]
#allow_bold = true
audible_bell = false
bold_is_bright = false
#cell_height_scale = 1.0
#cell_width_scale = 1.0
clickable_url = true
dynamic_title = true
font = Monospace 9
#fullscreen = true
icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
search_wrap = true
urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# "system", "on" or "off"
cursor_blink = system
# "block", "underline" or "ibeam"
cursor_shape = block
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
scrollbar = off
[colors]
# special
foreground = #c5c8c6
foreground_bold = #c5c8c6
cursor = #c5c8c6
background = #1d1f21
# black
color0 = #282a2e
color8 = #373b41
# red
color1 = #a54242
color9 = #cc6666
# green
color2 = #8c9440
color10 = #b5bd68
# yellow
color3 = #de935f
color11 = #f0c674
# blue
color4 = #5f819d
color12 = #81a2be
# magenta
color5 = #85678f
color13 = #b294bb
# cyan
color6 = #5e8d87
color14 = #8abeb7
# white
color7 = #707880
color15 = #c5c8c6
[hints]
#font = Monospace 12
#foreground = #dcdccc
#background = #3f3f3f
#active_foreground = #e68080
#active_background = #3f3f3f
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
# vim: ft=dosini cms=#%s

View file

@ -92,3 +92,9 @@ cat /etc/issue
# import my prompt
source ~/.zsh_prompt
# Export our directory to Termite for opening new terminals
if [[ $TERM == xterm-termite ]]; then
. /etc/profile.d/vte.sh
__vte_osc7
fi