Compare commits

...

2 Commits

Author SHA1 Message Date
Daruk
6d6fbbbb93 Added alacritty 2026-03-22 23:30:57 +02:00
Daruk
4767fb2803 Edited shortcuts 2026-03-22 18:05:49 +02:00
4 changed files with 74 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.code/

View File

@@ -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"

View File

@@ -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
###################
@@ -248,7 +249,7 @@ bind = $mainMod, C, killactive,
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
bind = $mainMod, SPACE, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, layoutmsg, togglesplit # dwindle

51
setup.sh Executable file
View File

@@ -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 subdirectories 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