X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FScripts%2FPublic.git;a=blobdiff_plain;f=wrapper_display;h=2482d96e9d343f313d994ca08ccfb88da04827f7;hp=6b304470932b9d443b6c4e336d47be19c56f6498;hb=HEAD;hpb=52b8096cabc7d512f586183266c5167d320b7719 diff --git a/wrapper_display b/wrapper_display index 6b30447..2482d96 100755 --- a/wrapper_display +++ b/wrapper_display @@ -21,7 +21,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -eval `tmux show-env DISPLAY | grep -v "^-DISPLAY"` + +# Feel like tipping/donating? https://www.immae.eu/licenses_and_tipping + +eval `tmux show-env DISPLAY 2>/dev/null | grep -v "^-DISPLAY"` if `ss -o state established sport = :5901 | grep -q "^tcp"`; then DISPLAY=:1 fi