summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/colorhandler9
-rwxr-xr-x.local/bin/newsup2
2 files changed, 10 insertions, 1 deletions
diff --git a/.local/bin/colorhandler b/.local/bin/colorhandler
new file mode 100755
index 0000000..dabff18
--- /dev/null
+++ b/.local/bin/colorhandler
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+col=$(colorpicker --short --one-shot)
+
+sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.cache/circle.svg > /tmp/circle.svg
+
+echo "$col" > xsel -b
+
+notify-send -i "/tmp/circle.svg" -a "Colorpicker" "$col was successfully copied to your clipboard."
diff --git a/.local/bin/newsup b/.local/bin/newsup
index 7cef34c..b94ca37 100755
--- a/.local/bin/newsup
+++ b/.local/bin/newsup
@@ -8,7 +8,7 @@ ping -q -c 1 1.1.1.1 > /dev/null || exit
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
-echo "   " > /tmp/newsupdate && kill -37 $(pidof dwmblocks)
+echo "  " > /tmp/newsupdate && kill -37 $(pidof dwmblocks)
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
/usr/bin/notify-send -t 1 -a " RSS" "RSS feed update complete." && kill -37 $(pidof dwmblocks)