mirror of
https://gitlab.com/dabruh/dotfiles.git
synced 2024-12-27 12:28:11 +01:00
Compare commits
No commits in common. "b474ba1e9130507d9d2941d619d4a460d86cdccb" and "00fe271f3494005930a557adfb596e0a11782fb8" have entirely different histories.
b474ba1e91
...
00fe271f34
15 changed files with 84 additions and 72 deletions
51
.config/alacritty/alacritty.yml
Normal file
51
.config/alacritty/alacritty.yml
Normal file
|
@ -0,0 +1,51 @@
|
|||
# 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
|
|
@ -1,6 +1,6 @@
|
|||
# Float the following windows
|
||||
for_window [class="Tor Browser"] floating enable
|
||||
for_window [class="kitty"][title="calculator"] floating enable
|
||||
for_window [class="Alacritty"][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="kitty"][title="translation"] floating enable
|
||||
for_window [class="Alacritty"][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="kitty"][title="bible"] floating enable
|
||||
for_window [class="Alacritty"][title="bible"] floating enable
|
||||
|
|
|
@ -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 kitty ranger
|
||||
set $calc_cmd kitty --title calculator bc -l
|
||||
set $file_cmd alacritty -e ranger
|
||||
set $calc_cmd alacritty --title calculator -e bc -l
|
||||
|
||||
set $browser firefox
|
||||
set $terminal kitty
|
||||
set $terminal alacritty
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
# Reference: https://sw.kovidgoyal.net/kitty/conf/
|
||||
|
||||
font_family hack
|
||||
scrollback_lines 100000
|
||||
mouse_hide_wait 3.0
|
||||
url_color #e5c07b
|
||||
|
||||
include user.conf
|
|
@ -1,45 +0,0 @@
|
|||
font_size 12.0
|
||||
|
||||
hide_window_decorations yes
|
||||
window_padding_width 5
|
||||
|
||||
remember_window_size no
|
||||
initial_window_width 640
|
||||
initial_window_height 400
|
||||
|
||||
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
|
|
@ -59,9 +59,9 @@ frame-opacity = 1
|
|||
inactive-opacity-override = false
|
||||
|
||||
opacity-rule = [
|
||||
# terminal (kitty)
|
||||
"100:class_g = 'kitty' && focused",
|
||||
"85:class_g = 'kitty' && !focused",
|
||||
# terminal (Alacritty)
|
||||
"100:class_g = 'Alacritty' && focused",
|
||||
"85:class_g = 'Alacritty' && !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 = 'kitty'",
|
||||
# "class_g = 'Alacritty'",
|
||||
]
|
||||
|
||||
#################################
|
||||
|
|
|
@ -6,7 +6,7 @@ export EDITOR=vim
|
|||
export FILE=ranger
|
||||
export IMAGES=feh
|
||||
export PAGER=less
|
||||
export TERMINAL=kitty
|
||||
export TERMINAL=alacritty
|
||||
export VISUAL=code
|
||||
|
||||
# Clean home:
|
||||
|
|
|
@ -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:arandr code dunst flameshot kitty ranger scrot thunar tmux ufw vim zsh
|
||||
pacman-any:zsh tmux code vim ufw scrot dunst arandr ranger thunar flameshot
|
||||
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:arandr chromium-browser codium dunst flameshot kitty ranger scrot thunar tmux ufw vim zsh
|
||||
apt-any:chromium-browser zsh tmux codium vim ufw scrot dunst arandr ranger thunar flameshot
|
||||
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
|
||||
|
|
|
@ -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'."
|
||||
|
||||
kitty --title bible bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)"
|
||||
alacritty --title bible -e bash -c "vim <(grep '^${CHAPTER}:' $BIBLE)"
|
||||
|
|
|
@ -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." &
|
||||
kitty --title translation bash -c "echo '$translation' | less" &
|
||||
alacritty --title translation -e bash -c "echo '$translation' | less" &
|
||||
|
|
|
@ -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." &
|
||||
kitty --title bible bash -c "echo '$VERSE' | less" &
|
||||
alacritty --title bible -e bash -c "echo '$VERSE' | less" &
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=File Manager
|
||||
Exec=/usr/bin/kitty ranger %u
|
||||
Exec=/usr/bin/alacritty -e ranger %u
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Mail
|
||||
Exec=/usr/bin/kitty neomutt %u
|
||||
Exec=/usr/bin/alacritty -e neomutt %u
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Text editor
|
||||
Exec=/usr/bin/kitty vim %u
|
||||
Exec=/usr/bin/alacritty -e vim %u
|
||||
|
|
|
@ -220,6 +220,19 @@ 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"
|
||||
}
|
||||
|
@ -311,6 +324,7 @@ 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() {
|
||||
|
|
Loading…
Reference in a new issue