Updated pywal scripts
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
|
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -42,12 +43,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$color0"`
|
FG=`printf "%s\n" "$color0"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/cuts/colors.ini"
|
PFILE="$HOME/.config/polybar/cuts/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -36,12 +37,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BGC=`printf "%s\n" "$background"`
|
BGC=`printf "%s\n" "$background"`
|
||||||
BG=${BGC:1}
|
BG=${BGC:1}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/docky/colors.ini"
|
PFILE="$HOME/.config/polybar/docky/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -53,12 +54,17 @@ get_fg_color(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
|
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -36,12 +37,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$background"`
|
FG=`printf "%s\n" "$background"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/hack/colors.ini"
|
PFILE="$HOME/.config/polybar/hack/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -33,12 +34,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/material/colors.ini"
|
PFILE="$HOME/.config/polybar/material/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -53,12 +54,17 @@ get_fg_color(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/shades/colors.ini"
|
PFILE="$HOME/.config/polybar/shades/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -43,12 +44,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/shapes/colors.ini"
|
PFILE="$HOME/.config/polybar/shapes/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -42,12 +43,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
|
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -42,12 +43,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$color0"`
|
FG=`printf "%s\n" "$color0"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/cuts/colors.ini"
|
PFILE="$HOME/.config/polybar/cuts/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -36,12 +37,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BGC=`printf "%s\n" "$background"`
|
BGC=`printf "%s\n" "$background"`
|
||||||
BG=${BGC:1}
|
BG=${BGC:1}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/docky/colors.ini"
|
PFILE="$HOME/.config/polybar/docky/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -53,12 +54,17 @@ get_fg_color(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
|
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -36,12 +37,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$background"`
|
FG=`printf "%s\n" "$background"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/hack/colors.ini"
|
PFILE="$HOME/.config/polybar/hack/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -33,12 +34,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/material/colors.ini"
|
PFILE="$HOME/.config/polybar/material/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -53,12 +54,17 @@ get_fg_color(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/pwidgets/colors.ini"
|
PFILE="$HOME/.config/polybar/pwidgets/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/pwidgets/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/pwidgets/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -31,12 +32,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/shades/colors.ini"
|
PFILE="$HOME/.config/polybar/shades/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -43,12 +44,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# Color files
|
# Color files
|
||||||
PFILE="$HOME/.config/polybar/shapes/colors.ini"
|
PFILE="$HOME/.config/polybar/shapes/colors.ini"
|
||||||
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
|
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
|
||||||
|
WFILE="$HOME/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Get colors
|
# Get colors
|
||||||
pywal_get() {
|
pywal_get() {
|
||||||
@@ -42,12 +43,17 @@ change_color() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if [[ -f "/usr/bin/wal" ]]; then
|
if [[ -x "`which wal`" ]]; then
|
||||||
if [[ "$1" ]]; then
|
if [[ "$1" ]]; then
|
||||||
pywal_get "$1"
|
pywal_get "$1"
|
||||||
|
|
||||||
# Source the pywal color file
|
# Source the pywal color file
|
||||||
. "$HOME/.cache/wal/colors.sh"
|
if [[ -e "$WFILE" ]]; then
|
||||||
|
. "$WFILE"
|
||||||
|
else
|
||||||
|
echo 'Color file does not exist, exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
BG=`printf "%s\n" "$background"`
|
BG=`printf "%s\n" "$background"`
|
||||||
FG=`printf "%s\n" "$foreground"`
|
FG=`printf "%s\n" "$foreground"`
|
||||||
|
|||||||
Reference in New Issue
Block a user