Add .e hooks
This commit is contained in:
parent
9d6ccb11f3
commit
ab1a098efb
4 changed files with 21 additions and 3 deletions
18
.bin/.e
18
.bin/.e
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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={}',
|
||||||
|
|
Loading…
Reference in a new issue