aboutsummaryrefslogtreecommitdiff
path: root/i3/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'i3/scripts')
-rwxr-xr-xi3/scripts/i3/launch.sh11
-rwxr-xr-xi3/scripts/i3/wallpaper.sh23
2 files changed, 19 insertions, 15 deletions
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