Updated pywal scripts

This commit is contained in:
adi1090x
2022-08-25 10:55:00 +05:30
parent c9e3eb652e
commit 4972b1bf39
17 changed files with 136 additions and 34 deletions
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -42,12 +43,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$color0"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/cuts/colors.ini"
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -36,12 +37,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
BG=${BGC:1}
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/docky/colors.ini"
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -53,12 +54,17 @@ get_fg_color(){
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -36,12 +37,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$background"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/hack/colors.ini"
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -33,12 +34,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/material/colors.ini"
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -53,12 +54,17 @@ get_fg_color(){
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/shades/colors.ini"
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -43,12 +44,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/shapes/colors.ini"
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -42,12 +43,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -42,12 +43,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$color0"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/cuts/colors.ini"
RFILE="$HOME/.config/polybar/cuts/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -36,12 +37,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
BG=${BGC:1}
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/docky/colors.ini"
RFILE="$HOME/.config/polybar/docky/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -53,12 +54,17 @@ get_fg_color(){
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/grayblocks/colors.ini"
RFILE="$HOME/.config/polybar/grayblocks/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -36,12 +37,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$background"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/hack/colors.ini"
RFILE="$HOME/.config/polybar/hack/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -33,12 +34,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/material/colors.ini"
RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -53,12 +54,17 @@ get_fg_color(){
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/pwidgets/colors.ini"
RFILE="$HOME/.config/polybar/pwidgets/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -31,12 +32,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/shades/colors.ini"
RFILE="$HOME/.config/polybar/shades/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -43,12 +44,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`
+8 -2
View File
@@ -3,6 +3,7 @@
# Color files
PFILE="$HOME/.config/polybar/shapes/colors.ini"
RFILE="$HOME/.config/polybar/shapes/scripts/rofi/colors.rasi"
WFILE="$HOME/.cache/wal/colors.sh"
# Get colors
pywal_get() {
@@ -42,12 +43,17 @@ change_color() {
}
# Main
if [[ -f "/usr/bin/wal" ]]; then
if [[ -x "`which wal`" ]]; then
if [[ "$1" ]]; then
pywal_get "$1"
# 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"`
FG=`printf "%s\n" "$foreground"`