Minor edits.

This commit is contained in:
Derek Taylor
2019-10-16 18:46:40 -05:00
parent b1963fa820
commit fc97828310
16 changed files with 88 additions and 73 deletions

View File

@@ -8,7 +8,7 @@
# Dmenu script for editing some of my more frequently edited config files.
declare -nc options=(" awesome
declare options=(" awesome
bash
bspwm
dwm
@@ -31,47 +31,47 @@ choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit a config file: ')
echo "Program terminated."
fi
if [ "$choice" == ' awesome ' ]; then
exec emacsclient -nc '~/.config/awesome/rc.lua'
exec emacsclient -c '~/.config/awesome/rc.lua'
fi
if [ "$choice" == ' bash ' ]; then
exec emacsclient -nc '~/.bashrc'
exec emacsclient -c '~/.bashrc'
fi
if [ "$choice" == ' bspwm ' ]; then
exec emacsclient -nc '~/.config/bspwm/bspwmrc'
exec emacsclient -c '~/.config/bspwm/bspwmrc'
fi
if [ "$choice" == ' dwm ' ]; then
exec emacsclient -nc '~/dwm/config.h'
exec emacsclient -c '~/dwm/config.h'
fi
if [ "$choice" == ' emacs ' ]; then
exec emacsclient -nc '~/.emacs.d/init.el'
exec emacsclient -c '~/.emacs.d/init.el'
fi
if [ "$choice" == ' herbstluftwm ' ]; then
exec emacsclient -nc '~/.config/herbstluftwm/autostart'
exec emacsclient -c '~/.config/herbstluftwm/autostart'
fi
if [ "$choice" == ' i3 ' ]; then
exec emacsclient -nc '~/.i3/config'
exec emacsclient -c '~/.i3/config'
fi
if [ "$choice" == ' polybar ' ]; then
exec emacsclient -nc '~/.config/polybar/config'
exec emacsclient -c '~/.config/polybar/config'
fi
if [ "$choice" == ' qtile ' ]; then
exec emacsclient -nc '~/.config/qtile/config.py'
exec emacsclient -c '~/.config/qtile/config.py'
fi
if [ "$choice" == ' st ' ]; then
exec emacsclient -nc '~/st/config.h'
exec emacsclient -c '~/st/config.h'
fi
if [ "$choice" == ' sxhkd ' ]; then
exec emacsclient -nc '~/.config/sxhkd/sxhkdrc'
exec emacsclient -c '~/.config/sxhkd/sxhkdrc'
fi
if [ "$choice" == ' vim ' ]; then
exec emacsclient -nc '~/.vimrc'
exec emacsclient -c '~/.vimrc'
fi
if [ "$choice" == ' xmobar ' ]; then
exec emacsclient -nc '~/.config/xmobar/xmobarrc2'
exec emacsclient -c '~/.config/xmobar/xmobarrc2'
fi
if [ "$choice" == ' xmonad ' ]; then
exec emacsclient -nc '~/.xmonad/xmonad.hs'
exec emacsclient -c '~/.xmonad/xmonad.hs'
fi
if [ "$choice" == ' zsh ' ]; then
exec emacsclient -nc '~/.zshrc'
exec emacsclient -c '~/.zshrc'
fi