Closed lotrt closed 1 year ago
The script for that is not provided in the repo as it isn't a well made tool or anything. It's just a script that runs rofi
in dmenu mode:
program=`cat ~/.config/programlist | \
rofi -config $roficonf/drun.rasi -dmenu -no-show-icons -p "Configure"`
kitty config $program
Where ~/.config/programlist
is a file with the names of all the programs that can be configured through a config file, and the config
command that opens in kitty is the following shell script:
#!/usr/bin/sh
CD=~/.config/ #xdg config directory
[[ -z $2 ]] && EDITOR=nvim || EDITOR=$2
if [ -z $1 ] ; then
$EDITOR $( dirname "$0" )/config
exit
fi
case $1 in
picom)
$EDITOR ~/.config/picom.conf
;;
xmonad)
$EDITOR ~/.xmonad/xmonad.hs
;;
glava)
$EDITOR ~/.config/glava/rc.glsl
;;
qtile)
$EDITOR ~/.config/qtile/config.py
;;
dwm)
DWMDIR=~/dwm-6.2
$EDITOR $DWMDIR/config.h
make -C $DWMDIR
;;
vim|bash|zsh|xinit)
$EDITOR ~/.$1rc
;;
kak|bspwm|dunst)
$EDITOR ~/.config/$1/$1rc
;;
autostart)
$EDITOR ~/.config/bspwm/autostart
;;
sxhkd)
$EDITOR ~/.config/bspwm/sxhkdrc
;;
kak-lsp)
$EDITOR ~/.config/$1/$1.toml
;;
nvim)
$EDITOR $CD/nvim/init.vim
;;
kitty)
$EDITOR $CD/kitty/kitty.conf
;;
ranger)
$EDITOR $CD/ranger/rc.conf
;;
i3|i3blocks|cava)
$EDITOR $CD/$1/config
;;
polybar)
$EDITOR $CD/$1/config.ini
;;
rofi)
$EDITOR ~/.config/rofi/config.rasi
;;
fish)
$EDITOR $CD/$1/config.$1
;;
alacritty)
alacritty_dirs="$HOME/alacritty/alacritty.yml $HOME/alacritty.yml\
$HOME/.config/alacritty/alacritty.yml $HOME/.alacritty.yml"
for f in $alacritty_dirs
do
if [ -f $f ]; then
$EDITOR $f
return
fi
done
$EDITOR ~/.alacritty.yml
;;
awesome)
$EDITOR ~/.config/awesome/rc.lua
;;
leftwm)
$EDITOR ~/.config/$1/config.toml
;;
leftwm-current-theme)
$EDITOR ~/.config/leftwm/themes/current
;;
*)
echo "unknown config file"
;;
esac
And sorry, but I have no plans to add this whole thing to the repo, it's just kinda messy and requires me to add every configurable program manually. I'm sure there must be a better way to implement this, but I have no interest in doing so.
Please forgive my English, it is not my native language
The rofi-config window in the video does not exist in this configuration, has it been removed?