Gnome-Terminal -> Alacritty

This commit is contained in:
John Mertz 2023-03-13 15:22:20 -04:00
parent 647aa28a3c
commit 1cbd0692e1
11 changed files with 518 additions and 13 deletions

186
alacritty/alacritty.yml Normal file
View File

@ -0,0 +1,186 @@
# Initialize environment variables
env:
TERM: "alacritty"
window:
# In Sway we don't need no stinking dimensions/position
#dimensions:
# columns: 0
# lines: 0
#position:
# x: 0
# y: 0
#padding:
# x: 0
# y: 0
dynamic_padding: true
decorations: none
startup_mode: Windowed
title: Alacritty - Invalid invalid-terminal
dynamic_title: true
class:
instance: Alacritty-default
general: Alacritty
decoration_theme_variant: dark
scrolling:
history: 100000
#multiplier: 3
font:
size: 10.0
normal:
family: "Monospace"
style: Regular
bold:
family: Monospace
style: Bold
italic:
family: Monospace
style: Light
bold_italic:
family: Monospace
style: SemiBold
colors:
primary:
background: '#010101'
foreground: '#ebdbb2'
#dim_foreground: '#a89984'
#bright_foreground: '#c8b9a4'
cursor:
text: CellBackground
cursor: CellForeground
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
search:
matches:
foreground: CellBackground
background: CellForeground
focused_match:
foreground: CellBackground
background: '#d79921'
selection:
text: CellBackground
background: CellForeground
# Normal colors (gruvbox-ish)
normal:
black: '#282828'
red: '#cc241d'
green: '#98971a'
yellow: '#d79921'
blue: '#458588'
magenta: '#b16286'
cyan: '#68986a'
white: '#a89984'
# Bright colors
#bright:
#black: '#928374'
#red: '#fb4934'
#green: '#b8bb26'
#yellow: '#fabd2f'
#blue: '#83a598'
#magenta: '#d3869b'
#cyan: '#8ec07c'
#white: '#ebdbb2'
# Dim colors
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
#dim:
# black: '#131415'
# red: '#864343'
# green: '#777c44'
# yellow: '#9e824c'
# blue: '#556a7d'
# magenta: '#75617b'
# cyan: '#5b7d78'
# white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
indexed_colors: [
{ index: 24, color: '#076678' },
{ index: 66, color: '#427b58' },
{ index: 88, color: '#9d0006' },
{ index: 96, color: '#8f3f71' },
{ index: 100, color: '#79740e' },
{ index: 108, color: '#8ec07c' },
{ index: 109, color: '#83a598' },
{ index: 130, color: '#af3a03' },
{ index: 136, color: '#b57614' },
{ index: 142, color: '#b8bb26' },
{ index: 167, color: '#fb4934' },
{ index: 175, color: '#d3869b' },
{ index: 208, color: '#fe8019' },
{ index: 214, color: '#fabd2f' },
{ index: 223, color: '#ebdbb2' },
{ index: 228, color: '#f2e5bc' },
{ index: 229, color: '#fbf1c7' },
{ index: 230, color: '#f9f5d7' },
{ index: 234, color: '#1d2021' },
{ index: 235, color: '#282828' },
{ index: 236, color: '#32302f' },
{ index: 237, color: '#3c3836' },
{ index: 239, color: '#504945' },
{ index: 241, color: '#665c54' },
{ index: 243, color: '#7c6f64' },
{ index: 244, color: '#928374' },
{ index: 245, color: '#928374' },
{ index: 246, color: '#a89984' },
{ index: 248, color: '#bdae93' },
{ index: 250, color: '#d5c4a1' }
]
bell:
#animation: Linear
duration: 0 # disable animation
color: '#cc241d'
command:
program: /home/jpm/scripts/sway/alacritty-bell.sh
#background_opacity: 1.0
window.opacity: 1.0
selection:
semantic_escape_chars: "│`|\"' ()[]{}<>\t"
save_to_clipboard: true
cursor:
style:
shape: Block
blinking: On
blink_interval: 750
unfocused_hollow: true
thickness: 1.0
live_config_reload: true
shell:
program: /var/home/jpm/scripts/distrobox/invalid-terminal.sh
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
mouse:
double_click: { threshold: 300 }
triple_click: { threshold: 300 }
hide_when_typing: true
mouse_bindings: [
{ mouse: Middle, action: PasteSelection }
]

View File

@ -0,0 +1,15 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
- /var/home/jpm/.dotfiles/alacritty/archlinux.yml
shell:
program: /usr/bin/distrobox
args:
- ephemeral
- -i
- archlinux
window:
title: Alacritty - Archlinux (Ephemeral)
class:
instance: Alacritty-archlinux-ephemeral

57
alacritty/archlinux.yml Normal file
View File

@ -0,0 +1,57 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
shell:
program: /usr/bin/distrobox
args:
- enter
- archlinux
window:
title: Alacritty - Archlinux (Distrobox)
class:
instance: Alacritty-archlinux
font:
size: 10.0
normal:
family: "Liberation Mono"
style: Regular
bold:
family: "Liberation Mono"
style: Bold
italic:
family: "Liberation Mono"
style: Light
bold_italic:
family: "Liberation Mono"
style: SemiBold
colors:
primary:
background: '#171421'
foreground: '#D0CFCC'
normal:
black: '#041D29'
red: '#D15517'
green: '#93D117'
yellow: '#D19317'
blue: '#17D1B2'
magenta: '#D11793'
cyan: '#1793D1'
white: '#D0E9F5'
bright:
black: '#093A53'
red: '#DA7645'
green: '#A8DA45'
yellow: '#DAA845'
blue: '#45DAC1'
magenta: '#DA45A8'
cyan: '#45A8DA'
white: '#FEFEFE'

View File

@ -0,0 +1,15 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
- /var/home/jpm/.dotfiles/alacritty/debian.yml
shell:
program: /usr/bin/distrobox
args:
- ephemeral
- -i
- debian:bookworm
window:
title: Alacritty - Debian (Ephemeral)
class:
instance: Alacritty-debian-ephemeral

57
alacritty/debian.yml Normal file
View File

@ -0,0 +1,57 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
shell:
program: /usr/bin/distrobox
args:
- enter
- debian12
window:
title: Alacritty - Debian (Distrobox)
class:
instance: Alacritty-debian
font:
size: 10.0
normal:
family: "DejaVu Sans Mono"
style: Regular
bold:
family: "DejaVu Sans Mono"
style: Bold
italic:
family: "DejaVu Sans Mono"
style: Light
bold_italic:
family: "DejaVu Sans Mono"
style: SemiBold
colors:
primary:
background: '#450325'
foreground: '#FBE6EE'
normal:
black: '#76052D'
red: '#D7270A'
green: '#27D70A'
yellow: '#D78E0A'
blue: '#8E0AD7'
magenta: '#D70A53'
cyan: '#09C784'
white: '#2B0211'
bright:
black: '#913656'
red: '#DF3C22'
green: '#52DF3A'
yellow: '#DFA43A'
blue: '#A43ADF'
magenta: '#DF3A75'
cyan: '#3AD29C'
white: '#FEFEFE'

34
alacritty/host.yml Normal file
View File

@ -0,0 +1,34 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
shell:
program: /bin/bash
window:
title: Alacritty - Fedora (Host)
class:
instance: Alacritty-toolbox
font:
size: 10.0
normal:
family: "Monospace"
style: Regular
bold:
family: "Monospace"
style: Bold
italic:
family: "Monospace"
style: Light
bold_italic:
family: "Monospace"
style: SemiBold
colors:
primary:
background: '#282828'
foreground: '#EBDBB2'

View File

@ -0,0 +1,15 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
- /var/home/jpm/.dotfiles/alacritty/toolbox.yml
shell:
program: /usr/bin/distrobox
args:
- ephemeral
- -i
- fedora:37
window:
title: Alacritty - Fedora (Ephemeral)
class:
instance: Alacritty-toolbox-ephemeral

57
alacritty/toolbox.yml Normal file
View File

@ -0,0 +1,57 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
shell:
program: /usr/bin/distrobox
args:
- enter
- toolbox
window:
title: Alacritty - Fedora (Distrobox)
class:
instance: Alacritty-toolbox
font:
size: 11.0
normal:
family: "Anonymous Pro"
style: Regular
bold:
family: "Anonymous Pro"
style: Bold
italic:
family: "Anonymous Pro"
style: Light
bold_italic:
family: "Anonymous Pro"
style: SemiBold
colors:
primary:
background: '#282828'
foreground: '#EBDBB2'
normal:
black: '#282828'
red: '#CC240A'
green: '#98971A'
yellow: '#D79921'
blue: '#458588'
magenta: '#B16386'
cyan: '#689D6A'
white: '#A89984'
bright:
black: '#5E5C64'
red: '#FB4934'
green: '#B8BB26'
yellow: '#FABD2F'
blue: '#83A598'
magenta: '#D3869B'
cyan: '#8EC07C'
white: '#EBDBB2'

View File

@ -0,0 +1,15 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
- /var/home/jpm/.dotfiles/alacritty/ubuntu.yml
shell:
program: /usr/bin/distrobox
args:
- ephemeral
- -i
- ubuntu:22.04
window:
title: Alacritty - Ubuntu (Ephemeral)
class:
instance: Alacritty-ubuntu-ephemeral

57
alacritty/ubuntu.yml Normal file
View File

@ -0,0 +1,57 @@
import:
- /var/home/jpm/.dotfiles/alacritty/alacritty.yml
shell:
program: /usr/bin/distrobox
args:
- enter
- ubuntu
window:
title: Alacritty - Ubuntu (Distrobox)
class:
instance: Alacritty-ubuntu
font:
size: 12.0
normal:
family: "Ubuntu Mono"
style: Regular
bold:
family: "Ubuntu Mono"
style: Bold
italic:
family: "Ubuntu Mono"
style: Light
bold_italic:
family: "Ubuntu Mono"
style: SemiBold
colors:
primary:
background: '#300A42'
foreground: '#FEFEFE'
normal:
black: '#2F3338'
red: '#CD0100'
green: '#4D9906'
yellow: '#c9A000'
blue: '#3364A4'
magenta: '#744F7A'
cyan: '#059799'
white: '#D3D8CE'
bright:
black: '#555654'
red: '#EF2828'
green: '#89E334'
yellow: '#FDEB4F'
blue: '#759DD0'
magenta: '#AD80A7'
cyan: '#32E5E5'
white: '#EFEEEC'

View File

@ -49,7 +49,7 @@ bindsym $mod+u exec $HOME/scripts/wofi/wofi-drun.sh
bindsym $mod+Shift+u exec gmrun
# Middle: Host terminal (should be rarely used)
bindsym $mod+e exec gnome-terminal --profile=host --class=Host
bindsym $mod+e exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/host.yml
# Add Shift: start a remote shell
# TODO: bindsym $mod+Shift+e exec $HOME/scripts/wofi/wofi-ssh-menu.sh
bindsym $mod+Shift+e exec $HOME/scripts/rofi/rofi-ssh-menu.sh
@ -72,24 +72,24 @@ bindsym $mod+Shift+a exec $HOME/scripts/send-to-kodi.sh
# Add Shift: Unassigned
# Index: Fedora ('toolbox' is a legacy naming convention)
bindsym $mod+p exec gnome-terminal --profile=toolbox --class=Distrobox-Toolbox
bindsym $mod+p exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/toolbox.yml
# Add Shift: Fedora Ephemeral
bindsym $mod+Shift+p exec gnome-terminal --profile=toolbox-ephemeral --class=Distrobox-Fedora-Ephemeral
bindsym $mod+Shift+p exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/toolbox-ephemeral.yml
# Middle: Debian (Testing)
bindsym $mod+period exec gnome-terminal --profile=debian12 --class=Distrobox-Debian12
bindsym $mod+period exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/debian.yml
# Add Shift: Debian (Testing) Ephemeral
bindsym $mod+Shift+period exec gnome-terminal --profile=debian12-ephemeral --class=Distrobox-Debian12-Ephemeral
bindsym $mod+Shift+period exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/debian-ephemeral.yml
# Ring: Ubuntu
bindsym $mod+comma exec gnome-terminal --profile=ubuntu --class=Distrobox-Ubuntu
bindsym $mod+comma exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/ubuntu.yml
# Add Shift: ubuntu Ephemeral
bindsym $mod+Shift+comma exec gnome-terminal --profile=ubuntu-ephemeral --class=Distrobox-Ubuntu-Ephemeral
bindsym $mod+Shift+comma exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/ubuntu-ephemeral.yml
# Pinky: ArchLinux
bindsym $mod+apostrophe exec gnome-terminal --profile=archlinux --class=Distrobox-ArchLinux
bindsym $mod+apostrophe exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/archlinux.yml
# Add Shift: ArchLinux Ephemeral
bindsym $mod+Shift+apostrophe exec gnome-terminal --profile=archlinux-ephemeral --class=Distrobox-ArchLinux-Ephemeral
bindsym $mod+Shift+apostrophe exec /usr/bin/alacritty --config-file ${HOME}/.dotfiles/alacritty/archlinux-ephemeral.yml
## Below Home Row: Program hotkeys as applicable to workspace number
@ -110,10 +110,7 @@ bindsym $mod+q exec thunderbird
# Add Shift: Occupied at top; move focused container up
# Index Stretch: Windows VNC
# TODO: I no longer have/need a windows or Mac machine to connect to. Replace with something useful
#bindsym $mod+x exec vncviewer 192.168.2.166 -p .vnc/passwd
# Add Shift: Mac VNC
#bindsym $mod+x exec vncviewer 192.168.2.167 -p .vnc/passwd
bindsym $mod+x exec ${HOME}/scripts/snippets.sh
### Right Hand