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:
parent
2a9c983598
commit
59a418dd43
1 changed files with 17 additions and 13 deletions
|
@ -8,10 +8,11 @@
|
|||
# Dmenu script for editing some of my more frequently edited config files.
|
||||
|
||||
|
||||
declare -a options=(" awesome
|
||||
declare -nc options=(" awesome
|
||||
bash
|
||||
bspwm
|
||||
dwm
|
||||
emacs
|
||||
herbstluftwm
|
||||
i3
|
||||
polybar
|
||||
|
@ -28,38 +29,41 @@ choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit a config file: ')
|
|||
echo "Program terminated."
|
||||
fi
|
||||
if [ "$choice" == ' awesome ' ]; then
|
||||
exec emacs $HOME/.config/awesome/rc.lua
|
||||
exec emacsclient -nc '~/.config/awesome/rc.lua'
|
||||
fi
|
||||
if [ "$choice" == ' bash ' ]; then
|
||||
exec emacs $HOME/.bashrc
|
||||
exec emacsclient -nc '~/.bashrc'
|
||||
fi
|
||||
if [ "$choice" == ' bspwm ' ]; then
|
||||
exec emacs $HOME/.config/bspwm/bspwmrc
|
||||
exec emacsclient -nc '~/.config/bspwm/bspwmrc'
|
||||
fi
|
||||
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
|
||||
if [ "$choice" == ' herbstluftwm ' ]; then
|
||||
exec emacs $HOME/.config/herbstluftwm/autostart
|
||||
exec emacsclient -nc '~/.config/herbstluftwm/autostart'
|
||||
fi
|
||||
if [ "$choice" == ' i3 ' ]; then
|
||||
exec emacs $HOME/.i3/config
|
||||
exec emacsclient -nc '~/.i3/config'
|
||||
fi
|
||||
if [ "$choice" == ' polybar ' ]; then
|
||||
exec emacs $HOME/.config/polybar/config
|
||||
exec emacsclient -nc '~/.config/polybar/config'
|
||||
fi
|
||||
if [ "$choice" == ' qtile ' ]; then
|
||||
exec emacs $HOME/.config/qtile/config.py
|
||||
exec emacsclient -nc '~/.config/qtile/config.py'
|
||||
fi
|
||||
if [ "$choice" == ' st ' ]; then
|
||||
exec emacs $HOME/st/config.h
|
||||
exec emacsclient -nc '~/st/config.h'
|
||||
fi
|
||||
if [ "$choice" == ' sxhkd ' ]; then
|
||||
exec emacs $HOME/.config/sxhkd/sxhkdrc
|
||||
exec emacsclient -nc '~/.config/sxhkd/sxhkdrc'
|
||||
fi
|
||||
if [ "$choice" == ' xmonad ' ]; then
|
||||
exec emacs $HOME/.xmonad/xmonad.hs
|
||||
exec emacsclient -nc '~/.xmonad/xmonad.hs'
|
||||
fi
|
||||
if [ "$choice" == ' zsh ' ]; then
|
||||
exec emacs $HOME/.zshrc
|
||||
exec emacsclient -nc '~/.zshrc'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue