Ver Código Fonte

~/.config/dwm,~/.config/alacritty: Try out alacritty

Configured to look like my previous st/sakura config, with fantasque as
a font.  Light background as usual.  (That was kinda tricky, alacritty
does not have pre-set themes, and the tango port on their wiki [1] is
one with a dark background.)

[1]: https://github.com/alacritty/alacritty/wiki/Color-schemes
Lu Stadler 5 anos atrás
pai
commit
af374c9afd
2 arquivos alterados com 41 adições e 1 exclusões
  1. 40 0
      .config/alacritty/alacritty.yml
  2. 1 1
      .config/dwm/config.h

+ 40 - 0
.config/alacritty/alacritty.yml

@ -0,0 +1,40 @@
1
scrolling:
2
  # Maximum number of lines in the scrollback buffer.
3
  # Specifying '0' will disable scrolling.
4
  history: 0
5
6
font:
7
  normal:
8
    family: "Fantasque Sans Mono"
9
10
  # Point size
11
  size: 9.5
12
13
# custom colors from sakura's `tango` color palette: https://bazaar.launchpad.net/~dabisu/sakura/sakura/view/head:/src/sakura.c#L84
14
#   converted for `st` with:
15
#     grep -A16 ' tango_palette' src/sakura.c | tail -n16 | sed -E 's/^\s+\{/[/;s/,\s+1}.*$/]/;s/\s+//g' | xargs -I{} ruby -e 'puts "\"#"+{}.map{|c|sprintf("%02x", (c*256).to_i)}.join+"\","'
16
#   and modified for alacrity manually
17
colors:
18
  primary:
19
    background: "#eeeeec"
20
    foreground: "#000000"
21
22
  normal:
23
    black:   "#000000" #, // "black",
24
    red:     "#cc0000" #, // "red3",
25
    green:   "#4e9a06" #, // "green3",
26
    yellow:  "#c4a000" #, // "yellow3",
27
    blue:    "#3465a4" #, // "blue2",
28
    magenta: "#75507b" #, // "magenta3",
29
    cyan:    "#06989a" #, // "cyan3",
30
    white:   "#d3d7cf" #, // "gray90",
31
32
  bright:
33
    black:   "#555753" #, //"gray50",
34
    red:     "#ef2929" #, //"red",
35
    green:   "#8ae234" #, //"green",
36
    yellow:  "#eddb08" #, //"#f4e106", //"#fce94f", //"yellow",
37
    blue:    "#729fcf" #, //"#5c5cff",
38
    magenta: "#ad7fa8" #, //"magenta",
39
    cyan:    "#34e2e2" #, //"cyan",
40
    white:   "#eeeeec" #, //"white",

+ 1 - 1
.config/dwm/config.h

@ -66,7 +66,7 @@ static const Layout layouts[] = {
66 66
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
67 67
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
68 68
static const char *roficmd[] = { "rofi", "-show", "run", NULL };
69
static const char *termcmd[]  = { "st", "-e", "tmux", NULL };
69
static const char *termcmd[]  = { "alacritty", "-e", "tmux", NULL };
70 70
71 71
static const char *fullscreenbrowsercmd[] = { "toggle-fullscreen.sh", NULL };
72 72