From cd1f6e3f7dbec49643d1fbd7d6f4ed7dc50424ed Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 25 Jun 2020 21:28:33 +0200 Subject: [PATCH] added pywal color stuff --- .local/share/scripts/set-bg.sh | 4 ++++ .local/share/scripts/set-color.sh | 3 +++ .zshrc | 3 +++ 3 files changed, 10 insertions(+) create mode 100755 .local/share/scripts/set-color.sh diff --git a/.local/share/scripts/set-bg.sh b/.local/share/scripts/set-bg.sh index 997d116..94cf85c 100755 --- a/.local/share/scripts/set-bg.sh +++ b/.local/share/scripts/set-bg.sh @@ -4,6 +4,9 @@ set -e +SCRIPT=$(readlink -f "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + [ -z "$@" ] && exit 0 LAST_BG_LOCATION="$XDG_CACHE_HOME/last-bg" @@ -13,3 +16,4 @@ feh --bg-scale $1 rm -f "$LAST_BG_LOCATION" ln -s $1 $(realpath "$LAST_BG_LOCATION") +$SCRIPTPATH/set-color.sh diff --git a/.local/share/scripts/set-color.sh b/.local/share/scripts/set-color.sh new file mode 100755 index 0000000..2790b5a --- /dev/null +++ b/.local/share/scripts/set-color.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +wal -i $(readlink $XDG_CACHE_HOME/last-bg) -n + diff --git a/.zshrc b/.zshrc index 7a6dd36..ad5b0c4 100644 --- a/.zshrc +++ b/.zshrc @@ -50,6 +50,9 @@ else [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh fi +# wal subshell +(cat ~/.cache/wal/sequences &) + DISABLE_UPDATE_PROMPT=true DISABLE_AUTO_UPDATE=true ZSH_CACHE_DIR="$XDG_CACHE_HOME/oh-my-zsh" # mkdir ~/.cache/oh-my-zsh