From ab1a098efbac8cf08c436001a1f9305173495427 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 25 Jan 2024 15:23:05 +0100 Subject: [PATCH] Add .e hooks --- .bin/.e | 18 +++++++++++++++++- .config/environment | 5 ++++- ...ual => host.conf##hostname.portalo,default} | 0 .config/qutebrowser/common.py | 1 - 4 files changed, 21 insertions(+), 3 deletions(-) rename .config/hypr/{host.conf##hostname.portalo,class.monitor-dual => host.conf##hostname.portalo,default} (100%) diff --git a/.bin/.e b/.bin/.e index 036f325..711f44d 100755 --- a/.bin/.e +++ b/.bin/.e @@ -4,7 +4,6 @@ declare -A mapper=( [".e"]="$HOME/.bin/.e" [".t"]="$HOME/.bin/.t" ["alacritty"]="$HOME/.config/alacritty/alacritty.toml" - ["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua" ["autoinstall.toml"]="$HOME/.config/autoinstall.toml" ["autostart.toml"]="$HOME/.config/autostart.toml" ["bash"]="$HOME/.bashrc" @@ -27,10 +26,20 @@ declare -A mapper=( ["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template" ["waybar"]="$HOME/.config/waybar/" ["xprofile"]="$HOME/.xprofile" + ["yadm"]="$HOME/.local/share/yadm/repo.git/config" ["yadm-encrypt"]="$HOME/.config/yadm/encrypt" ["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" ] then echo "No argument given. Use --list (-l) to show all options." @@ -50,3 +59,10 @@ then fi $EDITOR "$target" + +hook="${hooks["$1"]}" +if [ -n "$hook" ] +then + echo "Running hook: $hook" + eval "$hook" +fi diff --git a/.config/environment b/.config/environment index 6b865ef..9affaf8 100644 --- a/.config/environment +++ b/.config/environment @@ -22,7 +22,10 @@ export BEMENU_OPTS="--tb '#6272a4'\ --sf '#50fa7b'\ --scb '#282a36'\ --scf '#ff79c6'\ - --list 25 --ignorecase -P '>' -p ''" + --list 25\ + --ignorecase\ + --no-overlap\ + -P '>' -p ''" export DMENU="bemenu" export DOCKER_BUILDKIT=1 diff --git a/.config/hypr/host.conf##hostname.portalo,class.monitor-dual b/.config/hypr/host.conf##hostname.portalo,default similarity index 100% rename from .config/hypr/host.conf##hostname.portalo,class.monitor-dual rename to .config/hypr/host.conf##hostname.portalo,default diff --git a/.config/qutebrowser/common.py b/.config/qutebrowser/common.py index 62d1efe..6447b96 100644 --- a/.config/qutebrowser/common.py +++ b/.config/qutebrowser/common.py @@ -28,7 +28,6 @@ def init(c): c.qt.workarounds.remove_service_workers = True - c.url.default_page = 'dashboard.serguzim.me' c.url.searchengines = { 'DEFAULT': 'https://duckduckgo.com/?q={}', 'ddg': 'https://duckduckgo.com/?q={}',