From aa18d3f888d6fb4d598c22fcf825a78e5540c1e7 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 1 Sep 2019 22:12:27 +0200 Subject: Update i3 config --- i3/scripts/i3/launch.sh | 11 ----------- i3/scripts/i3/wallpaper.sh | 23 +++++++++++++++++++---- 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100755 i3/scripts/i3/launch.sh (limited to 'i3/scripts') diff --git a/i3/scripts/i3/launch.sh b/i3/scripts/i3/launch.sh deleted file mode 100755 index ddfbee6..0000000 --- a/i3/scripts/i3/launch.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -workspace=$1 -shift -pgrep -U $(whoami) -af "$*" | grep -qv $(basename "$0") -ret=$? -if [ $ret = 1 ]; then - i3-msg "exec $*; workspace ${workspace}" -else - i3-msg "workspace ${workspace}" -fi -killall -USR1 i3status diff --git a/i3/scripts/i3/wallpaper.sh b/i3/scripts/i3/wallpaper.sh index 5bc0d2b..20ef0c9 100755 --- a/i3/scripts/i3/wallpaper.sh +++ b/i3/scripts/i3/wallpaper.sh @@ -1,11 +1,26 @@ #!/bin/sh #image=$(find ~/wallpaper/wallpaper/wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | shuf -n1 -z | xargs -0) image=$1 + +#height=$(identify -format '%[fx:h/1.11]' ${image}) +#convert -crop %100x10+0+${height} ${image} out.jpg +#color=$(.virtualenvs/pywal/bin/colorz -n 1 --no-preview out.jpg | cut -d' ' -f1) +#rm out.jpg +#echo $color +#neg=$(python ~/scripts/i3/negate_color.py "${color}") + #.virtualenvs/pywal/bin/wal -n -i "${image}" --saturate .8 -a 90 +#hsetroot \ +# -fill "${image}" \ +# -add "#ffffffff" \ +# -addd "#77777700" 5 \ +# -addd "#ffffff00" 10 \ +# -addd "#ffffff00" 90 \ +# -gradient 0 hsetroot \ -fill "${image}" \ - -add "#ffffffff" \ - -addd "#ffffff00" 5 \ - -addd "#ffffff00" 5 \ - -add "#000000ff" \ + -add "#ffffff77" \ + -addd "#ffffff77" 2 \ + -addd "#ffffff00" 0 \ + -addd "#ffffff00" 90 \ -gradient 0 -- cgit v1.2.3