Last active
November 18, 2024 20:03
-
-
Save curiousercreative/84d70417bbbb183bf68043b8b1127d65 to your computer and use it in GitHub Desktop.
Project OpenSpace into another room, typically executed via SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
function cleanup() { | |
echo 'restoring mouse cursor' | |
killall xbanish | |
echo 'restoring desktop monitor' | |
/usr/local/bin/unprojectorify.sh | |
echo 'restoring screen blank and suspend on idle' | |
gsettings set org.gnome.desktop.session idle-delay 120 | |
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend' | |
} | |
trap cleanup SIGINT | |
export DISPLAY=:1 | |
echo 'use HDMI display only and send audio there' | |
/usr/local/bin/projectorify.sh | |
echo 'disabling screen blanking and suspend on idle' | |
gsettings set org.gnome.desktop.session idle-delay 0 | |
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' | |
echo 'hiding mouse cursor' | |
xbanish -a & | |
echo 'launching OpenSpace' | |
cd ~/Sites/src/OpenSpace | |
./bin/OpenSpace -b -p './user/data/profiles/remote projection.profile' -c ./user/config/uhd-projection.json | |
cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
xrandr --output HDMI-0 --auto --mode 3840x2160 --primary --output DP-4 --off | |
pactl set-default-sink alsa_output.pci-0000_07_00.1.hdmi-surround-extra2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"assets": [ | |
"base", | |
"base_keybindings", | |
"default_keybindings", | |
"events/toggle_all_trails", | |
"events/toggle_sun", | |
"scene/milkyway/gaia/apogee", | |
"scene/milkyway/gaia/gaiastars", | |
"scene/milkyway/gaia/galah", | |
"scene/milkyway/objects/orionnebula/orionnebula", | |
"scene/solarsystem/dwarf_planets/ceres/ceres", | |
"scene/solarsystem/dwarf_planets/ceres/default_layers", | |
"scene/solarsystem/dwarf_planets/ceres/trail", | |
"scene/solarsystem/dwarf_planets/eris/eris", | |
"scene/solarsystem/dwarf_planets/gonggong/gonggong", | |
"scene/solarsystem/dwarf_planets/haumea/haumea", | |
"scene/solarsystem/dwarf_planets/makemake/makemake", | |
"scene/solarsystem/dwarf_planets/orcus/orcus", | |
"scene/solarsystem/dwarf_planets/quaoar/quaoar", | |
"scene/solarsystem/dwarf_planets/sedna/sedna", | |
"scene/solarsystem/dwarf_planets/vesta/vesta", | |
"scene/solarsystem/planets/earth/earth", | |
"scene/solarsystem/planets/earth/satellites/satellites", | |
"scene/solarsystem/planets/jupiter/major_moons", | |
"scene/solarsystem/planets/jupiter/minor_moons", | |
"scene/solarsystem/planets/neptune/major_moons", | |
"scene/solarsystem/planets/neptune/minor_moons", | |
"scene/solarsystem/planets/saturn/major_moons", | |
"scene/solarsystem/planets/saturn/minor_moons", | |
"scene/solarsystem/planets/uranus/major_moons", | |
"scene/solarsystem/planets/uranus/minor_moons", | |
"util/joysticks/xbox-360", | |
"${USER_ASSETS}/nyc3dmodel/lowerManAuto", | |
"${USER_ASSETS}/nyc3dmodel/nyc3dmodel", | |
"${USER_ASSETS}/nyc3dmodel/upperManAuto" | |
], | |
"camera": { | |
"altitude": 17000000.0, | |
"anchor": "Earth", | |
"latitude": 58.5877, | |
"longitude": 16.1924, | |
"type": "goToGeo" | |
}, | |
"delta_times": [ | |
1.0, | |
5.0, | |
30.0, | |
60.0, | |
300.0, | |
1800.0, | |
3600.0, | |
43200.0, | |
86400.0, | |
604800.0, | |
1209600.0, | |
2592000.0, | |
5184000.0, | |
7776000.0, | |
15552000.0, | |
31536000.0, | |
63072000.0, | |
157680000.0, | |
315360000.0, | |
630720000.0 | |
], | |
"keybindings": [ | |
{ | |
"action": "os.solarsystem.ToggleSatelliteTrails", | |
"key": "S" | |
}, | |
{ | |
"action": "os.solarsystem.FocusIss", | |
"key": "I" | |
}, | |
{ | |
"action": "os.solarsystem.FocusEarth", | |
"key": "HOME" | |
} | |
], | |
"mark_nodes": [ | |
"Mercury", | |
"Venus", | |
"Earth", | |
"Moon", | |
"Moon", | |
"Mars", | |
"Saturn", | |
"Jupiter", | |
"Uranus", | |
"Neptune", | |
"Pluto", | |
"Sun" | |
], | |
"meta": { | |
"author": "OpenSpace Team", | |
"description": "Default OpenSpace Profile. Adds Earth satellites not contained in other profiles", | |
"license": "MIT License", | |
"name": "Default", | |
"url": "https://www.openspaceproject.com", | |
"version": "1.0" | |
}, | |
"properties": [ | |
{ | |
"name": "{earth_satellites}.Renderable.Enabled", | |
"type": "setPropertyValue", | |
"value": "false" | |
}, | |
{ | |
"name": "Modules.CefWebGui.Visible", | |
"type": "setPropertyValueSingle", | |
"value": "false" | |
}, | |
{ | |
"name": "Dashboard.IsEnabled", | |
"type": "setPropertyValueSingle", | |
"value": "false" | |
}, | |
{ | |
"name": "Scene.GaiaStars.Renderable.Enabled", | |
"type": "setPropertyValueSingle", | |
"value": "false" | |
} | |
], | |
"time": { | |
"is_paused": false, | |
"type": "relative", | |
"value": "-1d" | |
}, | |
"version": { | |
"major": 1, | |
"minor": 3 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"generator": { | |
"major": 1, | |
"minor": 1, | |
"name": "SgctWindowConfig" | |
}, | |
"masteraddress": "localhost", | |
"nodes": [ | |
{ | |
"address": "localhost", | |
"port": 20401, | |
"windows": [ | |
{ | |
"border": false, | |
"draw2d": true, | |
"draw3d": true, | |
"fullscreen": true, | |
"id": 0, | |
"monitor": 0, | |
"name": "Remote UHD projection", | |
"pos": { | |
"x": 0, | |
"y": 0 | |
}, | |
"size": { | |
"x": 3840, | |
"y": 2160 | |
}, | |
"viewports": [ | |
{ | |
"pos": { | |
"x": 0.0, | |
"y": 0.0 | |
}, | |
"projection": { | |
"fov": { | |
"down": 25.264999389648438, | |
"left": 40.0, | |
"right": 40.0, | |
"up": 25.264999389648438 | |
}, | |
"type": "PlanarProjection" | |
}, | |
"size": { | |
"x": 1.0, | |
"y": 1.0 | |
}, | |
"tracked": true | |
} | |
] | |
} | |
] | |
} | |
], | |
"scene": { | |
"orientation": { | |
"w": 0.0, | |
"x": 0.0, | |
"y": 0.0, | |
"z": 0.0 | |
} | |
}, | |
"settings": { | |
"display": { | |
"swapinterval": 1 | |
} | |
}, | |
"users": [ | |
{ | |
"eyeseparation": 0.06499999761581421, | |
"pos": { | |
"x": 0.0, | |
"y": 0.0, | |
"z": 0.0 | |
} | |
} | |
], | |
"version": 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
xrandr --output DP-4 --auto --primary --output HDMI-0 --off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment