- made catppuccin default :3

- added wallpaper var
- dont ignore file when using pywall
- can now use pywall without hyprpaper
- can now use the wallpaper var inside a theme file if it exist. will be overwritten by wallpaper var
This commit is contained in:
iceyrazor 2025-08-31 19:04:23 -05:00
parent 31f5645c55
commit e0aa530813
2 changed files with 55 additions and 7 deletions

View File

@ -3,7 +3,7 @@
# CONFIG # CONFIG
ignore_background_color="#04000a" ignore_background_color="#04000a"
highlight="#08000a" highlight="#08000a"
default_theme="tokyo-night" default_theme="catppuccin"
# END CONFIG # END CONFIG
cd "$(dirname "$0")" cd "$(dirname "$0")"
@ -20,7 +20,9 @@ while getopts "h?lpbw" opt; do
printf -- "-l list themes printf -- "-l list themes
-p run pywall -p run pywall
-b ignore background and use one defined in script -b ignore background and use one defined in script
-w set wallpaper with setwll if \$wallpaper exist" -w set wallpaper with setwll if \$wallpaper exist
WALLPAPER var can be specified for a wallpaper (WALLPAPER=\"somepath\" set-theme -p)"
exit 0 exit 0
;; ;;
l) list_files=1 l) list_files=1
@ -28,7 +30,6 @@ while getopts "h?lpbw" opt; do
b) ignore_background=1 b) ignore_background=1
;; ;;
p) run_pywal=1 p) run_pywal=1
ignore_file=1
;; ;;
w) set_wallpaper=1 w) set_wallpaper=1
;; ;;
@ -53,17 +54,28 @@ if [ $ignore_file == 0 ]; then
source ./themes/$theme_file.sh || exit 1 source ./themes/$theme_file.sh || exit 1
fi fi
if [ "$WALLPAPER" ]; then
wallpaper="$WALLPAPER"
fi
if [ $run_pywal == 1 ]; then if [ $run_pywal == 1 ]; then
# if your wallpaper engine your using can get the current active wallpaper. add it here
if [ $(pgrep hyprpaper) ]; then if [ $(pgrep hyprpaper) ]; then
wallpaper=$(hyprctl hyprpaper listactive | grep HDMI | sed 's/HDMI-A-1 = //') wallpaper=$(hyprctl hyprpaper listactive | grep HDMI | sed 's/HDMI-A-1 = //')
wal -seti "$wallpaper" wal -seti "$wallpaper"
. "$HOME/.cache/wal/colors.sh" . "$HOME/.cache/wal/colors.sh"
[ $ignore_background == 1 ] && background="$ignore_background_color"
else else
echo NO AVAILABLE WALLPAPER ENGINE if [ "$wallpaper" ]; then
echo please define wallpaper wal -seti "$wallpaper"
exit 1 . "$HOME/.cache/wal/colors.sh"
else
echo pywll
echo unknown current engine.
echo please specify a wallpaper yourself
echo see set-theme -h for more help
exit 1
fi
fi fi
fi fi

36
themes/green-blue.sh Executable file
View File

@ -0,0 +1,36 @@
# Shell variables
# Generated by 'wal'
wallpaper='/home/iceyrazor/stuff/media/wallpapers/2025-01-26_21-34.png'
# Special
background='#010000'
foreground='#b4bac6'
cursor='#b4bac6'
# Colors
color0='#010000'
color1='#2D6C32'
color2='#27314D'
color3='#364967'
color4='#4A4A56'
color5='#43914A'
color6='#5C6B8C'
color7='#b4bac6'
color8='#7d828a'
color9='#2D6C32'
color10='#27314D'
color11='#364967'
color12='#4A4A56'
color13='#43914A'
color14='#5C6B8C'
color15='#b4bac6'
# FZF colors
export FZF_DEFAULT_OPTS="
$FZF_DEFAULT_OPTS
--color fg:7,bg:0,hl:1,fg+:232,bg+:1,hl+:255
--color info:7,prompt:2,spinner:1,pointer:232,marker:1
"
# Fix LS_COLORS being unreadable.
export LS_COLORS="${LS_COLORS}:su=30;41:ow=30;42:st=30;44:"