Use Alacritty instead of Termite

This commit is contained in:
Thomas Dehaeze 2021-05-13 18:55:54 +02:00
parent 0ccedc97ea
commit 2aad6a64bc
6 changed files with 80 additions and 296 deletions

73
alacritty.org Normal file
View File

@ -0,0 +1,73 @@
#+TITLE: Alacritty Configuration
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args+ :comments none
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/alacritty/alacritty.yml
* Fonts
#+begin_src yaml
font:
normal:
family: Hack Nerd Font Mono
style: Regular
bold:
family: Hack Nerd Font Mono
style: Bold
italic:
family: Hack Nerd Font Mono
style: Italic
bold_italic:
family: Hack Nerd Font Mono
style: Bold Italic
size: 10.0
#+end_src
* Colors
#+begin_src yaml
colors:
primary:
background: &gruvbox_dark_bg '#32302f'
foreground: '#fbf1c7'
bright_foreground: '#f9f5d7'
dim_foreground: '#f2e5bc'
cursor:
text: CellBackground
cursor: CellForeground
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
selection:
text: CellBackground
background: CellForeground
bright:
black: '#928374'
red: '#fb4934'
green: '#b8bb26'
yellow: '#fabd2f'
blue: '#83a598'
magenta: '#d3869b'
cyan: '#8ec07c'
white: '#ebdbb2'
normal:
black: *gruvbox_dark_bg
red: '#cc241d'
green: '#98971a'
yellow: '#d79921'
blue: '#458588'
magenta: '#b16286'
cyan: '#689d6a'
white: '#a89984'
dim:
black: '#32302f'
red: '#9d0006'
green: '#79740e'
yellow: '#b57614'
blue: '#076678'
magenta: '#8f3f71'
cyan: '#427b58'
white: '#928374'
#+end_src

View File

@ -282,19 +282,13 @@ fi
** Export some default applications
#+begin_src bash
export EDITOR="nvim"
export TERMINAL="termite"
export TERMINAL="alacritty"
export BROWSER="qutebrowser"
export READER="zathura"
export FILE="ranger"
#+END_SRC
** Exports
*** Term
This is important for termite to work when sshing in remote machines.
#+begin_src bash
export TERM=xterm-color
#+end_src
*** XDG Default
#+begin_src bash
export XDG_CONFIG_HOME="$HOME/.config"

View File

@ -1,165 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Termite Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Termite Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orga2a8aab">Options</a></li>
<li><a href="#orgd325539">Hints</a></li>
<li><a href="#org53904a0">Colors</a></li>
</ul>
</div>
</div>
<div id="outline-container-orga2a8aab" class="outline-2">
<h2 id="orga2a8aab">Options</h2>
<div class="outline-text-2" id="text-orga2a8aab">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">options</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">allow_bold = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audible_bell = false</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">bold_is_bright = true</span>
<span class="org-variable-name">clickable_url</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">dynamic_title = true</span>
<span class="org-variable-name">font</span> = Hack Nerd Font Mono 13px
<span class="org-comment-delimiter">#</span><span class="org-comment">fullscreen = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">icon_name = terminal</span>
<span class="org-variable-name">mouse_autohide</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">scroll_on_output = false</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">scroll_on_keystroke = true</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Length of the scrollback buffer, 0 disabled the scrollback buffer</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">and setting it to a negative value means "infinite scrollback"</span>
<span class="org-variable-name">scrollback_lines</span> = -1
<span class="org-variable-name">search_wrap</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">urgent_on_bell = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">hyperlinks = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$BROWSER is used by default if set, with xdg-open as a fallback</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">browser = xdg-open</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide links that are no longer valid in url select overlay mode</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">filter_unmatched_urls = true</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Emit escape sequences for extra modified keys</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">modify_other_keys = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set size hints for the window</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">size_hints = false</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">"off", "left" or "right"</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">scrollbar = off</span>
<span class="org-variable-name">highlight</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">2f2f2f</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd325539" class="outline-2">
<h2 id="orgd325539">Hints</h2>
<div class="outline-text-2" id="text-orgd325539">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">hints</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">padding = 2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">border = #3f3f3f</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">border_width = 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">roundness = 2.0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org53904a0" class="outline-2">
<h2 id="org53904a0">Colors</h2>
<div class="outline-text-2" id="text-org53904a0">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">colors</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg2</span>
<span class="org-variable-name">foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg1</span>
<span class="org-variable-name">foreground_bold</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-variable-name">cursor</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">cursor_foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-variable-name">background</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">16 color space</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">color0</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg3</span>
<span class="org-variable-name">color8</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fb2</span>
<span class="org-variable-name">color7</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg0</span>
<span class="org-variable-name">color15</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fbf1c7</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Red</span>
<span class="org-variable-name">color1</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-variable-name">color9</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Green</span>
<span class="org-variable-name">color2</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-variable-name">color10</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Yellow</span>
<span class="org-variable-name">color3</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-variable-name">color11</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Blue</span>
<span class="org-variable-name">color4</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-variable-name">color12</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Purple</span>
<span class="org-variable-name">color5</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-variable-name">color13</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Teal</span>
<span class="org-variable-name">color6</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-variable-name">color14</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Extra colors</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color16</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fe8019</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color17</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg1</span>
<span class="org-variable-name">color18</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg2</span>
<span class="org-variable-name">color19</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg3</span>
<span class="org-variable-name">color20</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg</span>
<span class="org-variable-name">color21</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -17,7 +17,7 @@ There are Specific configuration files for:
- *Display Server*: [[file:xconfig.org][Xorg]]
- *Editors*: [[file:vim.org][Neovim]] and [[./doom.org][Emacs (Doom)]] ([[file:emacs-library-babel.org][library of babel]], [[file:emacs-snippets.org][snippets]])
- *Shell*: [[file:bash.org][Bash]]
- *Terminal Emulator*: [[file:termite.org][Termite]]
- *Terminal Emulator*: [[file:alacritty.org][Alacritty]]
- *Terminal Multiplexer* [[file:tmux.org][Tmux]]
- *Image Setup*: [[file:image.org][Sxiv]]
- *Music Setup*: [[file:music.org][Ncmpcpp, Mopidy and Beets]]

View File

@ -48,17 +48,17 @@ And configured with the following command:
=pass= can be used as credential helper for git repositories.
* =termite= - Terminal
[[https://github.com/thestinger/termite][Termite]] is a very nice keyboard-centric terminal.
* =alacritty= - Terminal
[[https://github.com/alacritty/alacritty][Alacritty]] is a very nice keyboard-centric terminal.
It can be installed like so:
#+begin_src bash
yay -S termite
yay -S alacritty
#+end_src
Its configuration file is described [[file:termite.org][here]].
Its configuration file is described [[file:alacritty.org][here]].
#+caption: =termite= - Cheatsheet
#+caption: =alacritty= - Cheatsheet
| Command | Usage |
|--------------------+-------------------------|
| =ctrl-shift-x= | activate url hints mode |

View File

@ -1,118 +0,0 @@
#+TITLE: Termite Configuration
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args+ :comments both
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/termite/config
* Options
#+BEGIN_SRC conf
[options]
#allow_bold = true
#audible_bell = false
#bold_is_bright = true
clickable_url = true
#dynamic_title = true
font = Hack Nerd Font Mono 13px
#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 = -1
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
# 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
highlight = #2f2f2f
#+END_SRC
* Hints
#+BEGIN_SRC conf
[hints]
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
#+END_SRC
* Colors
#+BEGIN_SRC conf
[colors]
# Base16 Gruvbox dark, soft
# Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
# fg2
foreground = #d5c4a1
# fg1
foreground_bold = #ebdbb2
cursor = #ebdbb2
# bg0_s
cursor_foreground = #32302f
background = #32302f
# 16 color space
# bg0_s
color0 = #32302f
# bg3
color8 = #665c54
# fb2
color7 = #d5c4a1
# fg0
color15 = #fbf1c7
# Red
color1 = #fb4934
color9 = #fb4934
# Green
color2 = #b8bb26
color10 = #b8bb26
# Yellow
color3 = #fabd2f
color11 = #fabd2f
# Blue
color4 = #83a598
color12 = #83a598
# Purple
color5 = #d3869b
color13 = #d3869b
# Teal
color6 = #8ec07c
color14 = #8ec07c
# Extra colors
# orange
color16 = #fe8019
# orange
color17 = #d65d0e
# bg1
color18 = #3c3836
# bg2
color19 = #504945
# fg3
color20 = #bdae93
# fg
color21 = #ebdbb2
#+END_SRC