- 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
ignore_background_color="#04000a"
highlight="#08000a"
default_theme="tokyo-night"
default_theme="catppuccin"
# END CONFIG
cd "$(dirname "$0")"
@ -20,7 +20,9 @@ while getopts "h?lpbw" opt; do
printf -- "-l list themes
-p run pywall
-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
;;
l) list_files=1
@ -28,7 +30,6 @@ while getopts "h?lpbw" opt; do
b) ignore_background=1
;;
p) run_pywal=1
ignore_file=1
;;
w) set_wallpaper=1
;;
@ -53,17 +54,28 @@ if [ $ignore_file == 0 ]; then
source ./themes/$theme_file.sh || exit 1
fi
if [ "$WALLPAPER" ]; then
wallpaper="$WALLPAPER"
fi
if [ $run_pywal == 1 ]; then
# if your wallpaper engine your using can get the current active wallpaper. add it here
if [ $(pgrep hyprpaper) ]; then
wallpaper=$(hyprctl hyprpaper listactive | grep HDMI | sed 's/HDMI-A-1 = //')
wal -seti "$wallpaper"
. "$HOME/.cache/wal/colors.sh"
[ $ignore_background == 1 ] && background="$ignore_background_color"
else
echo NO AVAILABLE WALLPAPER ENGINE
echo please define wallpaper
exit 1
if [ "$wallpaper" ]; then
wal -seti "$wallpaper"
. "$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

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:"