1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00

A few minor edits.

This commit is contained in:
Derek Taylor 2019-10-06 17:51:18 -05:00
parent 2a9c983598
commit 59a418dd43

View file

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