Setup Alacritty, Wezterm, & Kitty Support

This commit is contained in:
Tyler Kelley 2024-02-09 01:53:11 -06:00
parent b966751224
commit 77360fda1b
5 changed files with 61 additions and 9 deletions

34
config/home/alacritty.nix Normal file
View File

@ -0,0 +1,34 @@
{ pkgs, config, lib, ... }:
let
palette = config.colorScheme.palette;
inherit (import ../../options.nix) alacritty;
in lib.mkIf (alacritty == true) {
programs.alacritty = {
enable = true;
settings = {
window = {
padding.x = 15;
padding.y = 15;
decorations = "none";
startup_mode = "Windowed";
dynamic_title = true;
opacity = 0.85;
};
cursor = {
style = {
shape = "Beam";
blinking = "On";
};
};
live_config_reload = true;
font = {
normal.family = "JetBrainsMono Nerd Font";
bold.family = "JetBrainsMono Nerd Font";
italic.family = "JetBrainsMono Nerd Font";
bold_italic.family = "JetBrainsMono Nerd Font";
size = 14;
};
};
};
}

View File

@ -3,6 +3,7 @@
{
imports = [
# Enable &/ Configure Programs
./alacritty.nix
./bash.nix
./gtk-qt.nix
./hyprland.nix

View File

@ -6,7 +6,7 @@ let
inherit (import ../../options.nix)
browser cpuType gpuType
wallpaperDir borderAnim
theKBDLayout wezterm
theKBDLayout terminal
theSecondKBDLayout;
in with lib; {
wayland.windowManager.hyprland = {
@ -125,11 +125,7 @@ in with lib; {
master {
new_is_master = true
}
${if wezterm == true then ''
bind = ${modifier},Return,exec,wezterm
'' else ''
bind = ${modifier},Return,exec,kitty
''}
bind = ${modifier},Return,exec,${terminal}
bind = ${modifier}SHIFT,Return,exec,rofi-launcher
bind = ${modifier}SHIFT,W,exec,web-search
bind = ${modifier}SHIFT,S,exec,swaync-client -rs

View File

@ -1,8 +1,10 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
let
palette = config.colorScheme.palette;
in {
inherit (import ../../options.nix) alacritty wezterm kitty;
in lib.mkIf (wezterm == false && alacritty == false
|| kitty == true) {
# Configure Kitty
programs.kitty = {
enable = true;

View File

@ -17,6 +17,7 @@ in {
wallpaperDir = "${userHome}/Pictures/Wallpapers";
flakeDir = "${userHome}/zaneyos";
screenshotDir = "${userHome}/Pictures/Screenshots";
terminal = "alacritty";
# System Settings
theLocale = "en_US.UTF-8";
@ -25,22 +26,40 @@ in {
theLCVariables = "en_US.UTF-8";
theTimezone = "America/Chicago";
theShell = "bash"; # Possible options: bash, zsh
# For Hybrid Systems intel-nvidia
# Should Be Used As gpuType
cpuType = "intel";
gpuType = "amd";
# Optional Settings
# Nvidia Hybrid Devices
# ONLY NEEDED FOR HYBRID
# SYSTEMS!
intel-bus-id = "PCI:0:2:0";
nvidia-bus-id = "PCI:14:0:0";
# Enable / Setup NFS
nfs = false;
nfsMountPoint = "/mnt/nas";
nfsDevice = "nas:/volume1/nas";
# Printer, NTP, HWClock Settings
localHWClock = false;
ntp = true;
printer = false;
# Enable Flatpak & Larger Programs
flatpak = false;
kdenlive = true;
blender = true;
# Enable Support For
# Logitech Devices
logitech = true;
# Enable Terminals
# If You Disable All You Get Kitty
wezterm = false;
alacritty = true;
kitty = false;
}