From 6d6fbbbb93b4d28ad517443ed8c3a34efc719057 Mon Sep 17 00:00:00 2001 From: Daruk Date: Sun, 22 Mar 2026 23:30:57 +0200 Subject: [PATCH] Added alacritty --- .gitignore | 1 + alacritty/.config/alacritty/alacritty.toml | 20 +++++++++ hyprland/.config/hypr/hyprland.conf | 1 + setup.sh | 51 ++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 alacritty/.config/alacritty/alacritty.toml create mode 100755 setup.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f132dc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.code/ \ No newline at end of file diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..cbb4b9f --- /dev/null +++ b/alacritty/.config/alacritty/alacritty.toml @@ -0,0 +1,20 @@ +[window] +opacity = 0.8 +padding.x = 10 +padding.y = 10 + +[terminal] +shell = "/usr/bin/zsh" + +[font] +normal = { family = "MesloLGS Nerd Font", style = "Regular" } +bold = { family = "MesloLGS Nerd Font", style = "Bold" } +italic = { family = "MesloLGS Nerd Font", style = "Italic" } + +[selection] +save_to_clipboard = true + +[[mouse.bindings]] +mouse = "Right" +action = "Paste" + diff --git a/hyprland/.config/hypr/hyprland.conf b/hyprland/.config/hypr/hyprland.conf index 9cea449..8e0de67 100644 --- a/hyprland/.config/hypr/hyprland.conf +++ b/hyprland/.config/hypr/hyprland.conf @@ -57,6 +57,7 @@ exec-once = waybar & swaync & hyprpaper & hyprland-per-window-layout env = XCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24 +env = QT_QPA_PLATFORMTHEME,kde ################### diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..71b4c01 --- /dev/null +++ b/setup.sh @@ -0,0 +1,51 @@ +#! /bin/bash + + +if ! command -v stow >/dev/null 2>&1; then + echo "stow is not installed. Please install it before running this script." + exit 1 +fi + + +# Collect all sub‑directories into an array +dirs=() +for d in */ ; do + # Remove trailing slash for clean names + dir="${d%/}" + [[ -d "$dir" ]] && dirs+=("$dir") +done + +if [ ${#dirs[@]} -eq 0 ]; then + echo "No modules found." + exit 1 +fi + +echo "Available modules:" +for i in "${!dirs[@]}"; do + printf ' %2d) %s\n' $((i+1)) "${dirs[i]}" +done + +# Prompt for a number +while true; do + read -r -p "Select module to install [1-${#dirs[@]}] (or press Enter to skip): " choice + # Allow empty input → exit without installing + if [[ -z "$choice" ]]; then + echo "No selection made. Bye!" + exit 0 + fi + + # Check that the choice is an integer within range + if ! [[ "$choice" =~ ^[1-9][0-9]*$ ]] || (( choice < 1 || choice > ${#dirs[@]} )); then + echo "Invalid selection. Please enter a number between 1 and ${#dirs[@]}." + continue + fi + + selected="${dirs[$((choice-1))]}" + break +done + +echo "Installing $selected" +# Place your actual install logic here, e.g.: +# cd "$selected" && ./install.sh || echo "Failed to install $selected" + +exit 0