From 9631648fbf620f4cd72f83c4325dfe49224d8d7c Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 4 Aug 2026 15:39:13 +0200 Subject: bspwm: removed the script for the background into a true application in zig --- bspwm/scripts/bspwm/wallpaper.sh | 15 +-------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3