summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--zshrc17
7 files changed, 102 insertions, 6 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
diff --git a/zshrc b/zshrc
index 176c399..13f7e67 100644
--- a/zshrc
+++ b/zshrc
@@ -1,13 +1,16 @@
export VCPKG_ROOT=/home/aura/code/vcpkg
+export VITASDK=/usr/local/vitasdk
export PATH=$VCPKG_ROOT:$PATH
export PATH=$HOME/bin:/usr/local/bin:$HOME/.cargo/bin:$PATH
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools-bin
+export PATH=$VITASDK/bin:$PATH
-fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
+source ~/.keys
+fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
source <(fzf --zsh)
if [[ -f '$HOME/linuxbrew/.linuxbrew/bin/brew' ]]; then
@@ -104,11 +107,13 @@ if [ -f '/home/aurelia/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/aur
zstyle ':completion:*' menu select
fpath+=~/.zfunc
-if [[ -f '$HOME/.lscolors' ]]; then
- source ~/.lscolors
-fi
+source ~/.lscolors
+source ~/.profile
-if [[ -f '$HOME/.profile' ]]; then
- source ~/.profile
+if [[ $TTY =~ '/dev/tty'* ]]; then
+else
+ if [[ -f ~/.todo ]]; then
+ ~/.todo
+ fi
fi