- themes
- removed cycle wall - added wallpaper setter - added wallpaper run from set-theme - fixed wallpaper targets - made names a bit more consistant
This commit is contained in:
parent
ee06e306d8
commit
50ef825788
|
@ -1,11 +1,12 @@
|
||||||
|
# my theme setter and wallpaper setter
|
||||||
a set of scripts to set the theme of things
|
a set of scripts to set the theme of things
|
||||||
|
|
||||||
i could use pywall. but i wanted to make my own thing
|
i could use pywall. but i wanted to make my own thing
|
||||||
|
|
||||||
# usage
|
# usage
|
||||||
- ``set-theme.sh -h``
|
- ``set-theme.sh -h``
|
||||||
- ``cycle-wall.sh "fullpath/to/wallpaper" "dont unload"`` will use hyprwall to cycle a wallpaper and use pywall to get the colors and set them. if the 2nd arg has anything in it. it wont unload the current wallpaper
|
|
||||||
- ``save-theme.sh "name"`` saves the colors from pywall.
|
- ``save-theme.sh "name"`` saves the colors from pywall.
|
||||||
|
- ``setwll -h`` my wallpaper setter
|
||||||
|
|
||||||
# targets
|
# targets
|
||||||
when set-theme is run. it will source everything in targets. curently its only set for wezterm and waybar. but if you want other things to be set add a new script there.
|
when set-theme is run. it will source everything in targets. curently its only set for wezterm and waybar. but if you want other things to be set add a new script there.
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
|
|
||||||
current_wal="$(hyprctl hyprpaper listactive | grep HDMI-A-1 | sed 's/HDMI-A-1 = //')"
|
|
||||||
|
|
||||||
hyprctl hyprpaper preload $1 && hyprctl hyprpaper wallpaper "HDMI-A-1,$1"
|
|
||||||
if [ "$2" == "" ]; then
|
|
||||||
hyprctl hyprpaper unload "$current_wal"
|
|
||||||
fi
|
|
||||||
|
|
||||||
./set-theme.sh -p
|
|
|
@ -12,13 +12,15 @@ ignore_file=0
|
||||||
list_files=0
|
list_files=0
|
||||||
ignore_background=0
|
ignore_background=0
|
||||||
run_pywal=0
|
run_pywal=0
|
||||||
|
set_wallpaper=0
|
||||||
|
|
||||||
while getopts "h?lpb" opt; do
|
while getopts "h?lpbw" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
h)
|
h)
|
||||||
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"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
l) list_files=1
|
l) list_files=1
|
||||||
|
@ -28,6 +30,8 @@ while getopts "h?lpb" opt; do
|
||||||
p) run_pywal=1
|
p) run_pywal=1
|
||||||
ignore_file=1
|
ignore_file=1
|
||||||
;;
|
;;
|
||||||
|
w) set_wallpaper=1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -69,3 +73,8 @@ runs_dir="$(find ./targets -mindepth 1 -maxdepth 1 -type f -executable)"
|
||||||
for s in $runs_dir; do
|
for s in $runs_dir; do
|
||||||
source "$s"
|
source "$s"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo $wallpaper
|
||||||
|
if [ $set_wallpaper == 1 ] && [ "$wallpaper" ]; then
|
||||||
|
setwll -ua "$wallpaper"
|
||||||
|
fi
|
|
@ -0,0 +1,87 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# may be moved to theme setter
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
listwalls=0
|
||||||
|
unload=0
|
||||||
|
secondary=""
|
||||||
|
primary=""
|
||||||
|
all=""
|
||||||
|
|
||||||
|
while getopts "h?lup:s:a:" opt; do
|
||||||
|
case "$opt" in
|
||||||
|
h)
|
||||||
|
printf -- "-l list wallpapers
|
||||||
|
-u unload current wall after switching
|
||||||
|
-p set primary mon wallpaper
|
||||||
|
-s set secondary mon wallpaper
|
||||||
|
-a set all mon wallpaper
|
||||||
|
|
||||||
|
unloading only applies to hyprpaper
|
||||||
|
add scripts to wallpaper_scripts for easier switching\n"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
l) listwalls=1
|
||||||
|
;;
|
||||||
|
u) unload=1
|
||||||
|
;;
|
||||||
|
p) primary="$OPTARG"
|
||||||
|
;;
|
||||||
|
s) secondary="$OPTARG"
|
||||||
|
;;
|
||||||
|
a) all="$OPTARG"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
shift $((OPTIND-1))
|
||||||
|
[ "${1:-}" = "--" ] && shift
|
||||||
|
|
||||||
|
if [ $listwalls == 1 ]; then
|
||||||
|
ls ./wallpaper_scripts
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$all" ]; then
|
||||||
|
primary="$all"
|
||||||
|
secondary="$all"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$primary" ]; then
|
||||||
|
primary="$(./wallpaper_scripts/default-primary.sh)"
|
||||||
|
else
|
||||||
|
if [ -f "./wallpaper_scripts/$primary.sh" ]; then
|
||||||
|
primary="$(./wallpaper_scripts/$primary.sh)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$secondary" ]; then
|
||||||
|
secondary="$(./wallpaper_scripts/default-secondary.sh)"
|
||||||
|
else
|
||||||
|
if [ -f "./wallpaper_scripts/$secondary.sh" ]; then
|
||||||
|
secondary="$(./wallpaper_scripts/$secondary.sh)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$WAYLAND_DISPLAY" ]; then
|
||||||
|
current_wal="$(hyprctl hyprpaper listactive | grep HDMI-A-1 | sed 's/HDMI-A-1 = //')"
|
||||||
|
hyprctl hyprpaper preload $primary
|
||||||
|
hyprctl hyprpaper wallpaper "HDMI-A-1,$primary"
|
||||||
|
if [ $unload == 1 ]; then
|
||||||
|
hyprctl hyprpaper unload "$current_wal"
|
||||||
|
fi
|
||||||
|
|
||||||
|
current_wal="$(hyprctl hyprpaper listactive | grep DP-1 | sed 's/DP-1 = //')"
|
||||||
|
hyprctl hyprpaper preload $secondary
|
||||||
|
hyprctl hyprpaper wallpaper "DP-1,$secondary"
|
||||||
|
if [ $unload == 1 ]; then
|
||||||
|
hyprctl hyprpaper unload "$current_wal"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
nitrogen --head=0 --set-zoom-fill $primary
|
||||||
|
|
||||||
|
nitrogen --head=1 --set-zoom-fill $secondary
|
||||||
|
fi
|
||||||
|
fi
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/stuff/scripts/bash/youtube-playlist-cli/thumbnails/t8DePOVpJEg.jpg'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/papapa.png'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#0F0304'
|
background='#0F0304'
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/stuff/media/papapa abatademo.png'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/papapa 2.jpg'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#0F0508'
|
background='#0F0508'
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/56uvetgzh2se1.png'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/fey-cave.png'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#0B0D16'
|
background='#0B0D16'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
wallpaper="/home/iceyrazor/stuff/media/wallpapers/hotdogstand.png"
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#ff0000'
|
background='#ff0000'
|
||||||
foreground='#ffffff'
|
foreground='#ffffff'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/2025-06-06_19-42.png'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/ado-ussewa.png'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#02000D'
|
background='#02000D'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/1a7q9jfpuf2f1.png'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/spaceship-4jskal.png'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#0B092C'
|
background='#0B092C'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Shell variables
|
# Shell variables
|
||||||
# Generated by 'wal'
|
# Generated by 'wal'
|
||||||
wallpaper='/home/iceyrazor/1zu6aywxa7vd1.png'
|
wallpaper='/home/iceyrazor/stuff/media/wallpapers/warp-1.png'
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
background='#040617'
|
background='#040617'
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/papapa.png"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/papapa 2.jpg"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/4500025-retrowave-vaporwave-car-typography-purple-blue-chromatic-aberration-initial-d-hachi-roku.jpg"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/tumblr_06bbd355f3e355049446dac24f6e7c44_2c486f77_1280 ninesols.jpg"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/6b06108fa3bc46f5.jpg"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/dark_leaves.png"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/purple/IMG_0276.jpg"
|
|
@ -0,0 +1 @@
|
||||||
|
echo "/home/iceyrazor/stuff/media/wallpapers/spaceship-4jskal.png"
|
Loading…
Reference in New Issue