diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-08-04 15:39:13 +0200 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-08-04 15:40:38 +0200 |
| commit | 9631648fbf620f4cd72f83c4325dfe49224d8d7c (patch) | |
| tree | afb514831623693e3c61f3cf0f64a96d640d6203 | |
| parent | 39fc52ee10440f114aaadad4fef801ad42095dda (diff) | |
| -rwxr-xr-x | bspwm/scripts/bspwm/wallpaper.sh | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/bspwm/scripts/bspwm/wallpaper.sh b/bspwm/scripts/bspwm/wallpaper.sh index d2133fe..1f727de 100755 --- a/bspwm/scripts/bspwm/wallpaper.sh +++ b/bspwm/scripts/bspwm/wallpaper.sh @@ -1,16 +1,3 @@ #!/bin/sh -# Traverse the chromatic circle in 5 hours -cutoff=18000 -background="#eceff4" - -# L’angle tourne toute les secondes -angle=$(echo "$(date +%s) % 360" | bc) -dominant=$(python3 -c "import colorsys ; import datetime ; now = datetime.datetime.now() ; min = datetime.datetime.min ; sec = (now - min).seconds % $cutoff ; print(''.join('%02x' % int(i*255) for i in colorsys.hsv_to_rgb(sec/$cutoff, 0.35, 1)))") -background=$(python3 -c "import colorsys ; import datetime ; now = datetime.datetime.now() ; min = datetime.datetime.min ; sec = (now - min).seconds % $cutoff ; print(''.join('%02x' % int(i*255) for i in colorsys.hsv_to_rgb(sec/2000, 0.2, 1)))") -#background='ff0000' - -hsetroot \ --add "#${dominant}" \ --add "#${background}" \ --gradient ${angle} +/home/sebastien/Projets/zig/zsetroot/zig-out/bin/zig |
