mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
🎨 Update config
This commit is contained in:
parent
394d56fa69
commit
07805d44aa
28 changed files with 845 additions and 415 deletions
|
|
@ -1,43 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
declare options=("i3
|
||||
qtile
|
||||
bspwm
|
||||
polybar
|
||||
picom
|
||||
dunst
|
||||
qutebrowser
|
||||
quickmarks
|
||||
vim
|
||||
nvim
|
||||
xresources
|
||||
dunst
|
||||
neovim
|
||||
kitty
|
||||
taskwarior
|
||||
fish
|
||||
zsh
|
||||
quit")
|
||||
|
||||
choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit config file: ')
|
||||
choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'Edit config file: ')
|
||||
|
||||
case "$choice" in
|
||||
quit)
|
||||
echo "Program terminated." && exit 1 ;;
|
||||
dunst)
|
||||
choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
i3)
|
||||
choice="$HOME/.config/i3/config" ;;
|
||||
bspwm)
|
||||
choice="$HOME/.config/bspwm/bspwmrc" ;;
|
||||
picom)
|
||||
choice="$HOME/.config/picom.conf" ;;
|
||||
polybar)
|
||||
choice="$HOME/.config/polybar/config" ;;
|
||||
quickmarks)
|
||||
choice="$HOME/.config/qutebrowser/quickmarks" ;;
|
||||
vim)
|
||||
choice="$HOME/.vimrc" ;;
|
||||
nvim)
|
||||
choice="$HOME/.config/nvim/init.vim" ;;
|
||||
xresources)
|
||||
choice="$HOME/.Xresources" ;;
|
||||
zsh)
|
||||
choice="$HOME/.zshrc" ;;
|
||||
*)
|
||||
exit 1 ;;
|
||||
i3) choice="$HOME/.config/i3/config" ;;
|
||||
qtile) choice="$HOME/.config/qtile/config.py" ;;
|
||||
bspwm) choice="$HOME/.config/bspwm/bspwmrc" ;;
|
||||
picom) choice="$HOME/.config/picom.conf" ;;
|
||||
polybar) choice="$HOME/.config/polybar/config" ;;
|
||||
quickmarks) choice="$HOME/.config/qutebrowser/quickmarks" ;;
|
||||
qutebrowser) choice="$HOME/.config/qutebrowser/config.py" ;;
|
||||
vim) choice="$HOME/.vimrc" ;;
|
||||
nvim) choice="$HOME/.config/nvim/init.vim" ;;
|
||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
zsh) choice="$HOME/.zshrc" ;;
|
||||
taskwarior) choice="$HOME/.taskrc" ;;
|
||||
fish) choice="$HOME/.config/fish/config.fish" ;;
|
||||
kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
|
||||
quit) echo "Program terminated." && exit 1 ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
kitty -e nvim "$choice"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue