Skip to content

Commit 745951b

Browse files
committed
feat: switch terminal from urxvt to Alacritty (GPU-accelerated, actively maintained)
1 parent f58dc27 commit 745951b

12 files changed

Lines changed: 120 additions & 97 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ draphyOS/
285285
│ ├── gtk-3.0/settings.ini # GTK theme settings
286286
│ ├── redshift/redshift.conf
287287
│ ├── xprofile # X session startup
288-
│ └── Xresources # X resources (urxvt colors)
288+
│ └── alacritty/alacritty.toml # Alacritty terminal config
289289
├── migrations/ # Version migration scripts
290290
│ ├── common.sh # Shared migration utilities
291291
│ ├── TEMPLATE.sh # Template for new migrations
@@ -321,7 +321,7 @@ How configs are installed (symlinks unless noted):
321321
| `configs/gtk-3.0/settings.ini` | `~/.config/gtk-3.0/settings.ini` | Symlink |
322322
| `configs/redshift/redshift.conf` | `~/.config/redshift/redshift.conf` | Symlink |
323323
| `configs/xprofile` | `~/.xprofile` | Symlink |
324-
| `configs/Xresources` | `~/.Xresources` | Symlink |
324+
| `configs/alacritty/alacritty.toml` | `~/.config/alacritty/alacritty.toml` | Symlink |
325325
| `assets/wallpaper.png` | `~/.config/wallpaper.png` | **Copied** |
326326

327327
> **Important:** `polybar/config.ini` and `picom/picom.conf` are converted from symlinks to real files when hardware-specific modifications are needed (battery detection, VM mode). Contributors modifying these should be aware of this behavior.
@@ -453,9 +453,8 @@ The `~/.xprofile` runs at X session start and handles:
453453
5. Start polybar (via launch.sh)
454454
6. Start notification daemon (dunst)
455455
7. Start screen locker (xss-lock)
456-
8. Load Xresources
457-
9. Start redshift (night light)
458-
10. Start polkit agent
456+
8. Start redshift (night light)
457+
9. Start polkit agent
459458
```
460459

461460
Contributors modifying startup behavior should edit `configs/xprofile`.

PACKAGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dunst::
1616
lightdm::
1717

1818
# === Terminal ===
19-
rxvt-unicode::
19+
alacritty::
2020

2121
# === Networking ===
2222
NetworkManager::

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you love that vibe — welcome home.
5959
- ⌨️ Pre-configured i3 window manager with vim-style keybindings
6060
- 📊 Clean polybar status bar (replaces i3status)
6161
- 🚀 Beautiful rofi app launcher with dark theme
62-
- 💻 urxvt terminal with Mint-Y-Dark colors
62+
- 💻 Alacritty terminal with Mint-Y-Dark colors
6363
- 🐟 Fish shell with auto-suggestions
6464
- 🔧 Automatic hardware detection (battery, network, display)
6565
- 🔒 Lock screen with centered logo (auto-sleep after 15 min)
@@ -186,7 +186,7 @@ When a config conflict is detected, you choose:
186186

187187
| Key | Action |
188188
| ------------------------- | ------------------------ |
189-
| `Super + Return` | Terminal (urxvt) |
189+
| `Super + Return` | Terminal (Alacritty) |
190190
| `Super + d` | App Launcher (rofi) |
191191
| `Super + Shift + q` | Close Window |
192192
| `Super + F1` | Cheatsheet |
@@ -217,7 +217,7 @@ Every tool in draphyOS was chosen with a purpose. Here's why:
217217
| **Status Bar** | Polybar | Highly customizable, beautiful, active development | i3status (too basic), i3blocks (harder to configure) |
218218
| **App Launcher** | Rofi | Themeable, fast, supports multiple modes | dmenu (too minimal), ulauncher (heavier) |
219219
| **Compositor** | Picom | Lightweight, blur/shadows/transparency | Compton (deprecated), none (screen tearing) |
220-
| **Terminal** | urxvt | Fedora i3 official, minimal, fast, Xresources config | Alacritty (GPU-heavy), st (needs compilation) |
220+
| **Terminal** | Alacritty | GPU-accelerated, minimal, fast, actively maintained | urxvt (declining community), st (needs compilation) |
221221
| **Shell** | Fish | Lightweight, best out-of-box experience | Bash (no features), Zsh (needs plugins) |
222222
| **Notifications** | Dunst | Lightweight, highly configurable, keyboard-friendly | notify-osd (less features), mako (Wayland-only) |
223223

@@ -274,7 +274,7 @@ Every tool in draphyOS was chosen with a purpose. Here's why:
274274
| `dmenu` | Application launcher (replaced by rofi) |
275275
| `dunst` | Notification daemon |
276276
| `lightdm` | Display manager (login screen) |
277-
| `rxvt-unicode` | Terminal emulator |
277+
| `alacritty` | Terminal emulator (GPU-accelerated) |
278278
| `NetworkManager` | Network management |
279279
| `network-manager-applet` | Network tray icon |
280280
| `firefox` | Web browser |
@@ -346,7 +346,7 @@ Every tool in draphyOS was chosen with a purpose. Here's why:
346346
| Dunst | `~/.config/dunst/dunstrc` | Notifications |
347347
| Picom | `~/.config/picom/picom.conf` | Compositor |
348348
| Fish | `~/.config/fish/config.fish` | Shell |
349-
| urxvt | `~/.Xresources` | Terminal |
349+
| Alacritty | `~/.config/alacritty/alacritty.toml` | Terminal |
350350
| Redshift | `~/.config/redshift/redshift.conf` | Night light |
351351
| GTK | `~/.config/gtk-3.0/settings.ini` | Theme settings |
352352

@@ -615,7 +615,8 @@ draphyOS has separate WiFi and Ethernet modules that auto-hide when disconnected
615615
<details>
616616
<summary><strong>Terminal colors wrong?</strong></summary>
617617

618-
- Run `xrdb -merge ~/.Xresources`
618+
- Check `~/.config/alacritty/alacritty.toml` for color settings
619+
- Restart Alacritty to apply changes
619620

620621
</details>
621622

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
9

configs/Xresources

Lines changed: 0 additions & 64 deletions
This file was deleted.

configs/alacritty/alacritty.toml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# draphyOS Alacritty Configuration
2+
# Mint-Y-Dark color scheme
3+
# https://github.com/draphy/draphyOS
4+
5+
# Terminal shell
6+
[terminal.shell]
7+
program = "/usr/bin/fish"
8+
9+
# Window
10+
[window]
11+
padding = { x = 8, y = 8 }
12+
decorations = "full"
13+
opacity = 1.0
14+
dynamic_title = true
15+
16+
# Font
17+
[font]
18+
size = 11.0
19+
20+
[font.normal]
21+
family = "Fira Code"
22+
style = "Regular"
23+
24+
[font.bold]
25+
family = "Fira Code"
26+
style = "Bold"
27+
28+
[font.italic]
29+
family = "Fira Code"
30+
style = "Italic"
31+
32+
# Scrolling
33+
[scrolling]
34+
history = 10000
35+
multiplier = 3
36+
37+
# Colors (Mint-Y-Dark)
38+
[colors.primary]
39+
background = "#383838"
40+
foreground = "#d8d8d8"
41+
42+
[colors.cursor]
43+
text = "#383838"
44+
cursor = "#9ab87c"
45+
46+
[colors.selection]
47+
text = "#383838"
48+
background = "#9ab87c"
49+
50+
# Normal colors
51+
[colors.normal]
52+
black = "#2f2f2f"
53+
red = "#df382c"
54+
green = "#9ab87c"
55+
yellow = "#e7cb52"
56+
blue = "#5294e2"
57+
magenta = "#a667ab"
58+
cyan = "#6bc3c4"
59+
white = "#d8d8d8"
60+
61+
# Bright colors
62+
[colors.bright]
63+
black = "#555555"
64+
red = "#eb6e67"
65+
green = "#b5d7a8"
66+
yellow = "#f0dc82"
67+
blue = "#7aacec"
68+
magenta = "#c492c9"
69+
cyan = "#95d5d6"
70+
white = "#ffffff"
71+
72+
# Cursor
73+
[cursor]
74+
style = { shape = "Block", blinking = "Off" }
75+
unfocused_hollow = true
76+
77+
# Mouse
78+
[mouse]
79+
hide_when_typing = false
80+
81+
# Keyboard
82+
[keyboard]
83+
bindings = [
84+
{ key = "V", mods = "Control|Shift", action = "Paste" },
85+
{ key = "C", mods = "Control|Shift", action = "Copy" },
86+
]

configs/fish/config.fish

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
# Disable greeting
22
set -g fish_greeting ""
3-
4-
# Clear screen on startup (fix urxvt alignment)
5-
if status is-interactive
6-
clear
7-
end
83
# Optional: Add path
94
# set -gx PATH $PATH ~/.local/bin

configs/i3/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ client.urgent $urgent-bg-color $urgent-bg-color $text-color
4949
# ============================================================================
5050

5151
## Launch // Terminal // <Super> Return ##
52-
bindsym $mod+Return exec urxvt
52+
bindsym $mod+Return exec alacritty
5353

5454
## Window // Close Window // <Super><Shift> q ##
5555
bindsym $mod+Shift+q kill

configs/xprofile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Load Xresources (urxvt config)
2-
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
3-
41
# Qt5/Qt6 theming - use qt5ct for configuration
52
export QT_QPA_PLATFORMTHEME=qt5ct
63

install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ install_packages() {
355355
# === Core ===
356356
i3 i3lock dunst lightdm
357357
# Terminal
358-
rxvt-unicode
358+
alacritty
359359
# Networking
360360
NetworkManager network-manager-applet firefox
361361
# Audio
@@ -440,7 +440,7 @@ backup_configs() {
440440
"$HOME/.config/fish/config.fish"
441441
"$HOME/.config/redshift"
442442
"$HOME/.xprofile"
443-
"$HOME/.Xresources"
443+
"$HOME/.config/alacritty"
444444
"$HOME/.config/wallpaper.png"
445445
)
446446

@@ -514,6 +514,7 @@ install_configs() {
514514
mkdir -p "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml" 2>/dev/null
515515
mkdir -p "$HOME/.config/fish" 2>/dev/null
516516
mkdir -p "$HOME/.config/redshift" 2>/dev/null
517+
mkdir -p "$HOME/.config/alacritty" 2>/dev/null
517518

518519
# Install symlinks
519520
safe_symlink "$INSTALL_DIR/configs/i3/config" "$HOME/.config/i3/config"
@@ -538,7 +539,7 @@ install_configs() {
538539
safe_symlink "$INSTALL_DIR/configs/fish/config.fish" "$HOME/.config/fish/config.fish"
539540
safe_symlink "$INSTALL_DIR/configs/redshift/redshift.conf" "$HOME/.config/redshift/redshift.conf"
540541
safe_symlink "$INSTALL_DIR/configs/xprofile" "$HOME/.xprofile"
541-
safe_symlink "$INSTALL_DIR/configs/Xresources" "$HOME/.Xresources"
542+
safe_symlink "$INSTALL_DIR/configs/alacritty/alacritty.toml" "$HOME/.config/alacritty/alacritty.toml"
542543

543544
# Copy wallpaper (actual copy, not symlink)
544545
if [ -f "$INSTALL_DIR/assets/wallpaper.png" ]; then
@@ -550,6 +551,9 @@ install_configs() {
550551
chmod +x "$HOME/.config/i3/scripts/cheatsheet.sh" 2>/dev/null || true
551552
chmod +x "$HOME/.config/polybar/launch.sh" 2>/dev/null || true
552553

554+
# Set Alacritty as default terminal
555+
echo "Alacritty.desktop" > "$HOME/.config/xdg-terminals.list"
556+
553557
print_success "Configs installed"
554558
}
555559

@@ -820,7 +824,7 @@ save_config_checksums() {
820824
"$INSTALL_DIR/configs/fish/config.fish"
821825
"$INSTALL_DIR/configs/redshift/redshift.conf"
822826
"$INSTALL_DIR/configs/xprofile"
823-
"$INSTALL_DIR/configs/Xresources"
827+
"$INSTALL_DIR/configs/alacritty/alacritty.toml"
824828
)
825829

826830
# Clear existing checksums

0 commit comments

Comments
 (0)