mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
96 lines
1.5 KiB
Bash
Executable File
96 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# ____ _____
|
|
# | _ \_ _| Derek Taylor (DistroTube)
|
|
# | | | || | http://www.youtube.com/c/DistroTube
|
|
# | |_| || | http://www.gitlab.com/dwt1/
|
|
# |____/ |_|
|
|
#
|
|
# Dmenu script for editing some of my more frequently edited config files.
|
|
|
|
|
|
declare options=("awesome
|
|
bash
|
|
bspwm
|
|
doom.d/config.el
|
|
doom.d/init.el
|
|
dwm
|
|
emacs.d/init.el
|
|
herbstluftwm
|
|
i3
|
|
polybar
|
|
qtile
|
|
st
|
|
stumpwm
|
|
sxhkd
|
|
vim
|
|
xmobar
|
|
xmonad
|
|
zsh
|
|
quit")
|
|
|
|
choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit a config file: ')
|
|
|
|
case "$choice" in
|
|
quit)
|
|
echo "Program terminated." && exit 1
|
|
;;
|
|
awesome)
|
|
choice="$HOME/.config/awesome/rc.lua"
|
|
;;
|
|
bash)
|
|
choice="$HOME/.bashrc"
|
|
;;
|
|
bspwm)
|
|
choice="$HOME/.config/bspwm/bspwmrc"
|
|
;;
|
|
doom.d/config.el)
|
|
choice="$HOME/.doom.d/config.el"
|
|
;;
|
|
doom.d/init.el)
|
|
choice="$HOME/.doom.d/init.el"
|
|
;;
|
|
dwm)
|
|
choice="$HOME/dwm/config.h"
|
|
;;
|
|
emacs.d/init.el)
|
|
choice="$HOME/.emacs.d/init.el"
|
|
;;
|
|
herbstluftwm)
|
|
choice="$HOME/.config/herbstluftwm/autostart"
|
|
;;
|
|
i3)
|
|
choice="$HOME/.i3/config"
|
|
;;
|
|
polybar)
|
|
choice="$HOME/.config/polybar/config"
|
|
;;
|
|
qtile)
|
|
choice="$HOME/.config/qtile/config.py"
|
|
;;
|
|
st)
|
|
choice="$HOME/st/config.h"
|
|
;;
|
|
stumpwm)
|
|
choice="$HOME/.config/stumpwm/config"
|
|
;;
|
|
sxhkd)
|
|
choice="$HOME/.config/sxhkd/sxhkdrc"
|
|
;;
|
|
vim)
|
|
choice="$HOME/.vimrc"
|
|
;;
|
|
xmobar)
|
|
choice="$HOME/.config/xmobar/xmobarrc2"
|
|
;;
|
|
xmonad)
|
|
choice="$HOME/.xmonad/xmonad.hs"
|
|
;;
|
|
zsh)
|
|
choice="$HOME/.zshrc"
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
emacsclient -c "$choice"
|