diff options
| author | silly <u65487754@gmail.com> | 2026-03-09 17:07:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 17:07:56 +0100 |
| commit | 842a3372669cc6ae9a1843d25188ee330aaa9a82 (patch) | |
| tree | 6e263672998dc2d38710b9ba028e3adce7b9fe05 | |
| parent | b0cfe786a9a1e1cd42b60bce11422a4350be70f4 (diff) | |
Create config.sh
| -rw-r--r-- | .config/scripts/config.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/scripts/config.sh b/.config/scripts/config.sh new file mode 100644 index 0000000..5195766 --- /dev/null +++ b/.config/scripts/config.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +declare -A configs=( + ["hyprland"]="$HOME/.config/hypr/hyprland.conf" + ["waybar"]="$HOME/.config/waybar/config" + ["waybar-style"]="$HOME/.config/waybar/style.css" + ["kitty"]="$HOME/.config/kitty/kitty.conf" + ["fuzzel"]="$HOME/.config/fuzzel/fuzzel.ini" + ["dunst"]="$HOME/.config/dunst/dunstrc" + ["bashrc"]="$HOME/.bashrc" + ["scripts"]="$HOME/.config/scripts/" +) + +choice=$(printf "%s\n" "${!configs[@]}" | fuzzel -d -p "edit config > ") + +[[ -z "$choice" ]] && exit + +path="${configs[$choice]}" + +if [ -e "$path" ]; then + zeditor "$path" +else + notify-send "error" "file not found: $path" +fi |
