dmenu-scripts/dmenu-configs

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-04-05 16:59:04 +02:00
#!/bin/env bash
# a script to quickly open up one of my many configs
2022-07-17 11:03:13 +02:00
source $HOME/.config/dmenu/config
2022-04-05 16:59:04 +02:00
editor="$TERMINAL -e $EDITOR"
declare -a configs=(
"Quit"
2022-08-22 08:31:55 +02:00
# "alacritty - $HOME/.config/alacritty/alacritty.yml"
# "bspwm - $HOME/.config/bspwm/bspwmrc"
# "bspwm autostart - $HOME/Bin/bspwm/autorun.sh"
"dunst - $HOME/.config/wal/templates/colors.dunstrc"
2022-04-22 12:48:51 +02:00
"game-run - $HOME/.config/game-run/config.ini"
"kitty - $HOME/.config/kitty/kitty.conf"
2022-04-05 16:59:04 +02:00
"lf - $HOME/.config/lf/lfrc"
2022-08-22 08:31:55 +02:00
# "sxhkd - $HOME/.config/sxhkd/sxhkdrc"
2022-04-05 16:59:04 +02:00
"neovim - $HOME/.config/nvim/init.lua"
2022-08-22 08:31:55 +02:00
"newsboat config - $HOME/.config/newsboat/config"
"newsboat urls - $HOME/.config/newsboat/urls"
2022-04-05 16:59:04 +02:00
"picom - $HOME/.config/picom/picom.conf"
2022-08-22 08:31:55 +02:00
"ryzenset - $HOME/.local/share/ryzen-set/profiles.ini"
# "polybar - $HOME/.config/polybar/config.ini"
"zathura - $HOME/.config/wal/templates/colors.zathurarc"
"zsh aliases - $HOME/.config/zsh/aliasrc"
"zprofile - $HOME/.config/zsh/.zprofile"
2022-04-05 16:59:04 +02:00
"zshenv - $HOME/.zshenv"
2022-08-22 08:31:55 +02:00
"zshrc - $HOME/.config/zsh/.zshrc"
"xinitrc - $HOME/.config/X11/xinitrc"
# "qtile - $HOME/.config/qtile/config.py"
2022-04-05 16:59:04 +02:00
)
2022-07-17 11:03:13 +02:00
choice=$(printf '%s\n' "${configs[@]}" | $DMENU -l 10 -p 'Edit config:')
2022-04-05 16:59:04 +02:00
[ -z "$choice" ] && exit
[ "$choice" = "Quit" ] && exit
cfg=$(printf '%s\n' "${choice}" | awk '{print $NF}')
$editor "$cfg"