blob: 7b8ff17319fd3bd646f3124ae7667edc5ba26cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
declare -A configs=(
["hypr"]="$HOME/.config/hypr/"
["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
|