From 3b73ca7e69cc94008f32daf901b4f2ea5a49c46d Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 15 Apr 2022 18:38:05 +0300 Subject: [PATCH] bash/usr-local-bin: add start{sway,plasma} --- bash/usr-local-bin/startplasma | 25 +++++++++++++++++++++++++ bash/usr-local-bin/startsway | 26 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 bash/usr-local-bin/startplasma create mode 100755 bash/usr-local-bin/startsway diff --git a/bash/usr-local-bin/startplasma b/bash/usr-local-bin/startplasma new file mode 100755 index 0000000..6a2840c --- /dev/null +++ b/bash/usr-local-bin/startplasma @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# Starting Plasma in Wayland with proper environment too. + +set -x + +# Using fcitx +export XMODIFIERS=@im=fcitx +export GTK_IM_MODULE="fcitx" +export QT_IM_MODULE="fcitx" + +# qt5ct allows theme choosing +export QT_QPA_PLATFORMTHEME="qt5ct" + +# Ensuring Wayland gets used as per Arch Wiki +# 2021-02-28 https://wiki.archlinux.org/index.php/Wayland#GUI_libraries +export QT_QPA_PLATFORM=wayland +export CLUTTER_BACKEND=wayland +export SDL_VIDEODRIVER=wayland + +# Breeze Dark everywhere +export GTK_THEME=Breeze-Dark + +dbus-launch --exit-with-session startplasma-wayland $@ +set +x diff --git a/bash/usr-local-bin/startsway b/bash/usr-local-bin/startsway new file mode 100755 index 0000000..e23d32e --- /dev/null +++ b/bash/usr-local-bin/startsway @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +# Starting sway with proper environment too. My {bash,zsh}rc handles +# exec + +set -x + +# Using fcitx +export XMODIFIERS=@im=fcitx +export GTK_IM_MODULE="fcitx" +export QT_IM_MODULE="fcitx" + +# qt5ct allows theme choosing +export QT_QPA_PLATFORMTHEME="qt5ct" + +# Ensuring Wayland gets used as per Arch Wiki +# 2021-02-28 https://wiki.archlinux.org/index.php/Wayland#GUI_libraries +export QT_QPA_PLATFORM=wayland +export CLUTTER_BACKEND=wayland +export SDL_VIDEODRIVER=wayland + +# Breeze Dark everywhere +export GTK_THEME=Breeze-Dark + +dbus-launch --exit-with-session sway --unsupported-gpu $@ +set +x