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