summaryrefslogtreecommitdiff
path: root/home/.projector_on
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-07-13 01:45:05 +0200
committernavewindre <boneyaard@gmail.com>2025-07-13 01:45:05 +0200
commitd49e4b0a25c7cc75ade210c7092eea8feb75e692 (patch)
tree2a38c3846dee25d0d83c820de6bade62f54db90f /home/.projector_on
parent1fe841b80b6284737661870c87abbc26ecba4109 (diff)
restructure
Diffstat (limited to 'home/.projector_on')
-rwxr-xr-xhome/.projector_on29
1 files changed, 29 insertions, 0 deletions
diff --git a/home/.projector_on b/home/.projector_on
new file mode 100755
index 0000000..2f2cd12
--- /dev/null
+++ b/home/.projector_on
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+~/.config/openbox/autorun/1_screenres
+xrandr --output DP-2 --mode 1920x1080 --rate 60 --pos 3200x0
+
+if [ ! -d "$HOME/Pictures/Wall" ]; then
+ exit 1
+fi
+
+while IFS= read -r file; do
+ if [ -n "$files_string" ]; then
+ files_string+=" "
+ fi
+ files_string+="$file"
+done < <(find "$HOME/Pictures/Wall" -type f)
+
+IFS=' ' read -ra files <<< "$files_string"
+sorted_files=($(printf "%s\n" "${files[@]}" | sort))
+sorted_file_list=$(printf "%s " "${sorted_files[@]}")
+
+echo $sorted_file_list
+
+killall spacefm
+screen -d -m "$HOME/.config/openbox/spacefm"
+
+
+sleep 1
+feh --bg-fill $sorted_file_list
+