Add .e hooks

This commit is contained in:
Tobias Reisinger 2024-01-25 15:23:05 +01:00
parent 9d6ccb11f3
commit ab1a098efb
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 21 additions and 3 deletions

18
.bin/.e
View file

@ -4,7 +4,6 @@ declare -A mapper=(
[".e"]="$HOME/.bin/.e" [".e"]="$HOME/.bin/.e"
[".t"]="$HOME/.bin/.t" [".t"]="$HOME/.bin/.t"
["alacritty"]="$HOME/.config/alacritty/alacritty.toml" ["alacritty"]="$HOME/.config/alacritty/alacritty.toml"
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
["autoinstall.toml"]="$HOME/.config/autoinstall.toml" ["autoinstall.toml"]="$HOME/.config/autoinstall.toml"
["autostart.toml"]="$HOME/.config/autostart.toml" ["autostart.toml"]="$HOME/.config/autostart.toml"
["bash"]="$HOME/.bashrc" ["bash"]="$HOME/.bashrc"
@ -27,10 +26,20 @@ declare -A mapper=(
["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template" ["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template"
["waybar"]="$HOME/.config/waybar/" ["waybar"]="$HOME/.config/waybar/"
["xprofile"]="$HOME/.xprofile" ["xprofile"]="$HOME/.xprofile"
["yadm"]="$HOME/.local/share/yadm/repo.git/config"
["yadm-encrypt"]="$HOME/.config/yadm/encrypt" ["yadm-encrypt"]="$HOME/.config/yadm/encrypt"
["zsh"]="$HOME/.config/zsh/.zshrc" ["zsh"]="$HOME/.config/zsh/.zshrc"
) )
declare -A hooks=(
["nvim"]="nvim +PackerSync"
["nvim.packer"]="nvim +PackerSync"
["qutebrowser"]="qutebrowser :config-source"
["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias
["waybar"]="killall -SIGUSR2 waybar"
["yadm"]="yadm alt"
)
if [ -z "$1" ] if [ -z "$1" ]
then then
echo "No argument given. Use --list (-l) to show all options." echo "No argument given. Use --list (-l) to show all options."
@ -50,3 +59,10 @@ then
fi fi
$EDITOR "$target" $EDITOR "$target"
hook="${hooks["$1"]}"
if [ -n "$hook" ]
then
echo "Running hook: $hook"
eval "$hook"
fi

View file

@ -22,7 +22,10 @@ export BEMENU_OPTS="--tb '#6272a4'\
--sf '#50fa7b'\ --sf '#50fa7b'\
--scb '#282a36'\ --scb '#282a36'\
--scf '#ff79c6'\ --scf '#ff79c6'\
--list 25 --ignorecase -P '>' -p ''" --list 25\
--ignorecase\
--no-overlap\
-P '>' -p ''"
export DMENU="bemenu" export DMENU="bemenu"
export DOCKER_BUILDKIT=1 export DOCKER_BUILDKIT=1

View file

@ -28,7 +28,6 @@ def init(c):
c.qt.workarounds.remove_service_workers = True c.qt.workarounds.remove_service_workers = True
c.url.default_page = 'dashboard.serguzim.me'
c.url.searchengines = { c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}', 'DEFAULT': 'https://duckduckgo.com/?q={}',
'ddg': 'https://duckduckgo.com/?q={}', 'ddg': 'https://duckduckgo.com/?q={}',