summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2026-02-16 01:19:08 +0100
committernavewindre <boneyaard@gmail.com>2026-02-16 01:20:00 +0100
commit63321658035a6ad9f16ee80f27655d82316702ff (patch)
treea17d929e41860be3e6c0ff89d3bbd8cf9b20e433 /home
parent6faa08dd69c775670f58a488c64aaa274132708a (diff)
a
Diffstat (limited to 'home')
-rwxr-xr-xhome/.sunshine-1080p11
-rwxr-xr-xhome/.sunshine-bigpicture19
-rwxr-xr-xhome/.sunshine-maindesktop5
-rwxr-xr-xhome/.sunshine-off10
-rwxr-xr-xhome/.sunshine-on11
-rwxr-xr-xhome/.sunshine-virtmon35
6 files changed, 91 insertions, 0 deletions
diff --git a/home/.sunshine-1080p b/home/.sunshine-1080p
new file mode 100755
index 0000000..c171c2b
--- /dev/null
+++ b/home/.sunshine-1080p
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [[ $DISPLAY == :1 ]]; then
+ echo "running on virtmon, exiting"
+ exit 0
+fi
+
+xrandr --output DP-0 --mode 1920x1080 --rate 165
+xrandr --output HDMI-0 --off
+sleep 2
+term -e "$HOME/.restart-panel"
diff --git a/home/.sunshine-bigpicture b/home/.sunshine-bigpicture
new file mode 100755
index 0000000..0907afc
--- /dev/null
+++ b/home/.sunshine-bigpicture
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+$HOME/.sunshine-on
+if [[ $DISPLAY == :1 ]]; then
+ pkill -f steam
+ rm $HOME/.steam-display
+ echo ":1" > $HOME/.steam-display
+else
+ if [[ -f $HOME/.steam-display ]]; then
+ STEAMDISP=$(cat $HOME/.steam-display)
+ if [[ $STEAMDISP == :1 ]]; then
+ pkill -f steam
+ fi
+ rm $HOME/.steam-display
+ fi
+ echo ":0" > $HOME/.steam-display
+fi
+
+exo-open "steam://open/bigpicture"
diff --git a/home/.sunshine-maindesktop b/home/.sunshine-maindesktop
new file mode 100755
index 0000000..40fae36
--- /dev/null
+++ b/home/.sunshine-maindesktop
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+pkill -f "Xorg :1"
+pkill -f "/home/aura/.local/share/sunshine/usr/bin/sunshine"
+DISPLAY=:0 /home/aura/.local/share/sunshine/usr/bin/sunshine
diff --git a/home/.sunshine-off b/home/.sunshine-off
new file mode 100755
index 0000000..1347f53
--- /dev/null
+++ b/home/.sunshine-off
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [[ $DISPLAY == :1 ]]; then
+ echo "running on virtmon, exiting"
+ exit 0
+fi
+
+sh ~/.config/openbox/autorun/1_screenres
+sleep 2
+term -e "$HOME/.restart-panel"
diff --git a/home/.sunshine-on b/home/.sunshine-on
new file mode 100755
index 0000000..18e6837
--- /dev/null
+++ b/home/.sunshine-on
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [[ $DISPLAY == :1 ]]; then
+ echo "running on virtmon, exiting"
+ exit 0
+fi
+
+xrandr --output DP-0 --mode 1280x720 --rate 165
+xrandr --output HDMI-0 --off
+sleep 1
+term -e "$HOME/.restart-panel"
diff --git a/home/.sunshine-virtmon b/home/.sunshine-virtmon
new file mode 100755
index 0000000..1788087
--- /dev/null
+++ b/home/.sunshine-virtmon
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+if [[ $DISPLAY == :1 ]]; then
+ echo "already on display :1"
+ exit 0
+fi
+
+echo "killing sunshine..."
+pkill -f "/home/aura/.local/share/sunshine/usr/bin/sunshine"
+
+echo "starting secondary xorg instance..."
+X :1 -config /etc/X11/xorg.conf.d/10-dummy.conf > /tmp/sunshine-virtmon.log &
+
+echo "starting openbox on secondary screen..."
+DISPLAY=:1 openbox > /tmp/sunshine-virtmon.log &
+
+echo "starting x11vnc..."
+DISPLAY=:1 x11vnc -display :1 -localhost -nopw -rfbport 5809 > /tmp/sunshine-virtmon.log &
+
+echo "starting xfce4-panel..."
+DISPLAY=:1 dbus-run-session xfce4-panel > /tmp/sunshine-virtmon.log &
+
+sleep 1
+DISPLAY=:1 xmodmap ~/.Xmodmap
+DISPLAY=:1 xrdb ~/.Xresources
+sleep 1
+DISPLAY=:1 feh --bg-fill /home/aura/Pictures/Wall/a1.png
+
+DEVICES=$(DISPLAY=:1 xinput list | rg Keychron | awk -F'id=' '{print $2}' | cut -f1)
+for i in $DEVICES; do
+ DISPLAY=:1 xinput disable $i
+done
+
+echo "starting sunshine..."
+DISPLAY=:1 exec /home/aura/.local/bin/sunshine