From a3162e715922d0a50c4a404ea0cd1570b1bbe5d3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 29 Mar 2021 03:45:39 +0300 Subject: feat: add wallpaper and webcam scripts --- .local/bin/wallpaper.sh | 5 +++++ .local/bin/webcam.sh | 1 + 2 files changed, 6 insertions(+) create mode 100755 .local/bin/wallpaper.sh create mode 100755 .local/bin/webcam.sh (limited to '.local/bin') diff --git a/.local/bin/wallpaper.sh b/.local/bin/wallpaper.sh new file mode 100755 index 0000000..ed2d2bb --- /dev/null +++ b/.local/bin/wallpaper.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# Launch SXIV and set wallpaper randomly from selected images + +WALLPAPERS_DIR=~/Pictures/Wallpapers +xwallpaper --zoom $(sxiv $WALLPAPERS_DIR -t -o | shuf | head -n 1) diff --git a/.local/bin/webcam.sh b/.local/bin/webcam.sh new file mode 100755 index 0000000..3a0cbff --- /dev/null +++ b/.local/bin/webcam.sh @@ -0,0 +1 @@ +mpv av://v4l2:/dev/video0 --profile=low-latency --untimed -vf "hflip" -- cgit v1.2.3