From 9b1c37f9ddaa4d1a40f6d6e8a1f63d93a9e06aa9 Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 16 Dec 2019 10:47:53 +0100 Subject: [PATCH] force wayland by default --- dotfiles/bash/.bashrc | 4 ++++ dotfiles/bin/.bin/code | 1 + dotfiles/bin/.bin/disable_wayland | 12 ++++++++++++ dotfiles/bin/.bin/riot-desktop | 1 + 4 files changed, 18 insertions(+) create mode 120000 dotfiles/bin/.bin/code create mode 100755 dotfiles/bin/.bin/disable_wayland create mode 120000 dotfiles/bin/.bin/riot-desktop diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index 32fc4ed..a665e6b 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -9,6 +9,10 @@ HISTSIZE=10000 HISTFILESIZE=10000 PATH="$HOME/.bin:$PATH" +#enable wayland +QT_QPA_PLATFORM=wayland-egl +GDK_BACKEND=wayland + function q1 { echo 'Important and Urgent' if [ $# -ne 1 ]; then diff --git a/dotfiles/bin/.bin/code b/dotfiles/bin/.bin/code new file mode 120000 index 0000000..9fb7ce9 --- /dev/null +++ b/dotfiles/bin/.bin/code @@ -0,0 +1 @@ +disable_wayland \ No newline at end of file diff --git a/dotfiles/bin/.bin/disable_wayland b/dotfiles/bin/.bin/disable_wayland new file mode 100755 index 0000000..642a6ed --- /dev/null +++ b/dotfiles/bin/.bin/disable_wayland @@ -0,0 +1,12 @@ +#!/bin/sh + +# links to this script disable GDK_BACKEND +# to workaround wayland incompatibilities + +unset GDK_BACKEND + +# name of the link that was called +called_script=$(basename "$0") + +real_bin=$(which --skip-tilde "$called_script") +"${real_bin}" "$@" \ No newline at end of file diff --git a/dotfiles/bin/.bin/riot-desktop b/dotfiles/bin/.bin/riot-desktop new file mode 120000 index 0000000..9fb7ce9 --- /dev/null +++ b/dotfiles/bin/.bin/riot-desktop @@ -0,0 +1 @@ +disable_wayland \ No newline at end of file