Replace Alacritty with Kitty

This commit is contained in:
dabruh 2023-08-29 13:53:53 +02:00
parent 00fe271f34
commit 8f043e33fc
15 changed files with 68 additions and 84 deletions

View File

@ -1,51 +0,0 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
#
# Reference: https://raw.githubusercontent.com/alacritty/alacritty/master/alacritty.yml
env:
TERM: xterm-256color
window:
dynamic_padding: true
decorations: none
opacity: 0.75
padding:
x: 5
y: 5
scrolling:
history: 100000
font:
size: 10.0
normal:
family: Hack
# Colors (One Half Dark)
colors:
primary:
background: "#000000"
foreground: "0xdcdfe4"
normal:
black: "0x282c34"
red: "0xe06c75"
green: "0x98c379"
yellow: "0xe5c07b"
blue: "0x61afef"
magenta: "0xc678dd"
cyan: "0x56b6c2"
white: "0xdcdfe4"
bright:
black: "#636e72"
red: "0xe06c75"
green: "0x98c379"
yellow: "0xe5c07b"
blue: "0x61afef"
magenta: "0xc678dd"
cyan: "0x56b6c2"
white: "0xdcdfe4"
bell:
duration: 500

View File

@ -1,6 +1,6 @@
# Float the following windows
for_window [class="Tor Browser"] floating enable
for_window [class="Alacritty"][title="calculator"] floating enable
for_window [class="kitty"][title="calculator"] floating enable
# Start screenshot capture
bindsym $mod+Ctrl+s exec "$screenshot_cmd"
@ -13,11 +13,11 @@ bindsym $mod+Ctrl+Return exec "$file_cmd"
# gtranslate through dmenu
bindsym $mod+Ctrl+t exec dmenugtranslate
for_window [class="Alacritty"][title="translation"] floating enable
for_window [class="kitty"][title="translation"] floating enable
# emoji selection through dmenu
bindsym $mod+Ctrl+e exec dmenuunicode
# Random Bible verse
bindsym $mod+Ctrl+Shift+b exec randverse
for_window [class="Alacritty"][title="bible"] floating enable
for_window [class="kitty"][title="bible"] floating enable

View File

@ -8,8 +8,8 @@ set $file $FILE
set $lock_after_min 1
set $lock_notify_sec 10
set $screenshot_cmd flameshot gui
set $file_cmd alacritty -e ranger
set $calc_cmd alacritty --title calculator -e bc -l
set $file_cmd kitty ranger
set $calc_cmd kitty --title calculator bc -l
set $browser firefox
set $terminal alacritty
set $terminal kitty

8
.config/kitty/kitty.conf Normal file
View File

@ -0,0 +1,8 @@
# Reference: https://sw.kovidgoyal.net/kitty/conf/
font_family hack
scrollback_lines 100000
mouse_hide_wait 3.0
url_color #e5c07b
include user.conf

41
.config/kitty/user.conf Normal file
View File

@ -0,0 +1,41 @@
font_size 12.0
hide_window_decorations yes
window_padding_width 5
background_opacity 0.75
background #000000
foreground #dcdfe4
# black
color0 #282c34
color8 #636e72
# red
color1 #e06c75
color9 #e06c75
# green
color2 #98c379
color10 #98c379
# yellow
color3 #e5c07b
color11 #e5c07b
# blue
color4 #61afef
color12 #61afef
# magenta
color5 #c678dd
color13 #c678dd
# cyan
color6 #56b6c2
color14 #56b6c2
# white
color7 #dcdfe4
color15 #dcdfe4

View File

@ -59,9 +59,9 @@ frame-opacity = 1
inactive-opacity-override = false
opacity-rule = [
# terminal (Alacritty)
"100:class_g = 'Alacritty' && focused",
"85:class_g = 'Alacritty' && !focused",
# terminal (kitty)
"100:class_g = 'kitty' && focused",
"85:class_g = 'kitty' && !focused",
# Flashfocus
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
@ -100,7 +100,7 @@ fade-out-step = 0.03
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [
# "class_g = 'Alacritty'",
# "class_g = 'kitty'",
]
#################################

View File

@ -6,7 +6,7 @@ export EDITOR=vim
export FILE=ranger
export IMAGES=feh
export PAGER=less
export TERMINAL=alacritty
export TERMINAL=kitty
export VISUAL=code
# Clean home:

View File

@ -1,6 +1,6 @@
pacman-base:acpi wget curl # Required for setup_system.sh
pacman-any:i3-gaps feh i3status network-manager-applet pasystray xautolock inotify-tools xss-lock noto-fonts-emoji
pacman-any:zsh tmux code vim ufw scrot dunst arandr ranger thunar flameshot
pacman-any:arandr code dunst flameshot kitty ranger scrot thunar tmux ufw vim zsh
pacman-any:gst-libav phonon-qt5-gstreamer gst-plugins-good qt5-quickcontrols qt5-graphicaleffects qt5-multimedia
pacman-type-hasbattery:brightnessctl
aur-any:picom-git sddm-theme-aerial-git
@ -8,7 +8,7 @@ aur-any:picom-git sddm-theme-aerial-git
apt-base:acpi wget curl ca-certificates gnupg lsb-release # Required for setup_system.sh
apt-any:i3 feh i3status nm-tray pasystray xautolock inotify-tools xss-lock fonts-noto-color-emoji fonts-hack-ttf xclip
apt-any:docker-ce docker-ce-cli containerd.io docker-compose-plugin
apt-any:chromium-browser zsh tmux codium vim ufw scrot dunst arandr ranger thunar flameshot
apt-any:arandr chromium-browser codium dunst flameshot kitty ranger scrot thunar tmux ufw vim zsh
apt-any:libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libpcre3-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev meson
apt-any:python3 python3-pip
apt-any:sddm gstreamer1.0-libav phonon4qt5-backend-gstreamer gstreamer1.0-plugins-good qml-module-qtquick-controls qml-module-qtgraphicaleffects qml-module-qtmultimedia

View File

@ -11,4 +11,4 @@ CHAPTERS="$(cut -d' ' -f1 $BIBLE | grep -o "^${BOOK}[[:digit:]]*" | uniq)"
CHAPTER="$(xargs -n 1 <<<"$CHAPTERS" | dmenu -i -l 30 -p "$BOOK chapter")"
echo "Chose chapter: '$CHAPTER'."
alacritty --title bible -e bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)"
kitty --title bible bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)"

View File

@ -46,4 +46,4 @@ fi
echo "$translation"
printf '%s' "$translation" | xclip -selection clipboard
notify-send "Translation from $from_code to $to_code copied to clipboard." &
alacritty --title translation -e bash -c "echo '$translation' | less" &
kitty --title translation bash -c "echo '$translation' | less" &

View File

@ -12,4 +12,4 @@ VERSE="$(sed -n "${LINE}p" "$BIBLE")"
echo "$VERSE"
printf '%s' "$VERSE" | xclip -selection clipboard
notify-send "Bible verse copied to clipboard." &
alacritty --title bible -e bash -c "echo '$VERSE' | less" &
kitty --title bible bash -c "echo '$VERSE' | less" &

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
Name=File Manager
Exec=/usr/bin/alacritty -e ranger %u
Exec=/usr/bin/kitty ranger %u

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
Name=Mail
Exec=/usr/bin/alacritty -e neomutt %u
Exec=/usr/bin/kitty neomutt %u

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Type=Application
Name=Text editor
Exec=/usr/bin/alacritty -e vim %u
Exec=/usr/bin/kitty vim %u

View File

@ -220,19 +220,6 @@ function setup_krew_plugins() {
done
}
function build_alacritty() {
local tmp_dir="/tmp/alacritty"
echo "Installing Alacritty."
git clone https://github.com/alacritty/alacritty.git $tmp_dir
sudo cargo build --release --manifest-path=$tmp_dir/Cargo.toml
sudo cp $tmp_dir/target/release/alacritty /usr/local/bin
sudo cp $tmp_dir/extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install $tmp_dir/extra/linux/Alacritty.desktop
sudo update-desktop-database
sudo rm -Rf /tmp/alacritty
}
function change_shell() {
sudo chsh -s "$(which zsh)" "$USER"
}
@ -324,7 +311,6 @@ function setup_debian_with_apt() {
function setup_debian_with_git() {
install_picom || return 1
install_sddm_aerial_theme || return 2
build_alacritty || return 3
}
function setup_debian() {