dotfiles/.local/bin/confedit

36 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/bin/sh
2024-04-23 04:34:15 +02:00
configs="$XDG_CONFIG_HOME/suckless/dmenu/config.h
$XDG_CONFIG_HOME/suckless/dwm/config.h
$XDG_CONFIG_HOME/suckless/dwmblocks/config.h
$XDG_CONFIG_HOME/suckless/st/config.h
$XDG_CONFIG_HOME/suckless/slock/config.h
$XDG_CONFIG_HOME/x11/xresources
$XDG_CONFIG_HOME/nvim/lua
$XDG_CONFIG_HOME/zsh/.zshrc
$XDG_CONFIG_HOME/shell/aliasrc
$XDG_CONFIG_HOME/x11/xinitrc
$XDG_CONFIG_HOME/x11/xprofile
$HOME/.bashrc
$XDG_CONFIG_HOME/mpd/mpd.conf
$XDG_CONFIG_HOME/ncmpcpp/config
$XDG_CONFIG_HOME/dunst/dunstrc
$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0
$XDG_CONFIG_HOME/gtk-3.0/settings.ini
$XDG_CONFIG_HOME/lf/lfrc
$XDG_CONFIG_HOME/newsboat/config
$XDG_CONFIG_HOME/newsboat/urls
$XDG_CONFIG_HOME/zathura/zathurarc
$XDG_DATA_HOME/script-data/keybinds
$XDG_CONFIG_HOME/dmenu_web"
2024-04-23 04:34:15 +02:00
fzf_command="fzf --prompt ' Configs  ' \
--layout=reverse -m --height=100% --pointer=' ' \
--ellipsis= --scheme=path --algo=v2 --color='16' \
--preview-window='bottom,60%,border-top' --border=sharp \
--margin='5%,10%,5%,10%' --info=inline-right \
--ansi --preview='fuz-preview {}' \
--bind 'enter:become(nvim {})'"
2024-04-23 04:34:15 +02:00
echo "$configs" | eval "$fzf_command"