Use alacritty

This commit is contained in:
Simon Bruder 2020-07-03 22:23:04 +02:00
parent d337bb5c7c
commit 7e8d310e79
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 63 additions and 3 deletions

View file

@ -0,0 +1,56 @@
font:
normal:
family: Terminess Powerline
style: Regular
size: 8
mouse:
hide_when_typing: true
key_bindings:
- key: V
mods: Control|Alt
action: Paste
- key: C
mods: Control|Alt
action: Copy
visual_bell:
duration: 100
dynamic_title: true
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
cursor: '#839496' # base0
# Normal colors
normal:
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
blue: '#268bd2' # blue
magenta: '#d33682' # magenta
cyan: '#2aa198' # cyan
white: '#eee8d5' # base2
# Bright colors
bright:
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00
blue: '#839496' # base0
magenta: '#6c71c4' # violet
cyan: '#93a1a1' # base1
white: '#fdf6e3' # base3

View file

@ -15,6 +15,7 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget
require("awful.hotkeys_popup.keys")
local lain = require("lain")
local helpers = require("lain.helpers")
local widgets = require("widgets")
@ -51,7 +52,10 @@ beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua")
awful.util.shell = "/bin/zsh"
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
terminal = os.getenv("HOME") .. "/bin/alacritty"
if not(helpers.file_exists(terminal)) then
terminal = "urxvt"
end
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor

View file

@ -2476,7 +2476,7 @@ function grml_reset_screen_title () {
# see http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
[[ ${NOTITLE:-} -gt 0 ]] && return 0
case $TERM in
(xterm*|rxvt*)
(xterm*|rxvt*|alacritty)
set_title ${(%):-"%n@%m: %~"}
;;
esac
@ -2510,7 +2510,7 @@ function grml_cmd_to_screen_title () {
function grml_control_xterm_title () {
case $TERM in
(xterm*|rxvt*)
(xterm*|rxvt*|alacritty)
set_title "${(%):-"%n@%m:"}" "$1"
;;
esac