From b0cb6e985b4d3bba504a6e2ed68ebbb0a7164861 Mon Sep 17 00:00:00 2001 From: Cheri Date: Mon, 27 Feb 2023 11:56:50 +0200 Subject: [PATCH] add startsway wrapper command --- .zprofile | 4 +++- bin/startsway | 7 +++++++ install.sh | 1 + sway/start.sh | 15 --------------- 4 files changed, 11 insertions(+), 16 deletions(-) create mode 100755 bin/startsway delete mode 100755 sway/start.sh diff --git a/.zprofile b/.zprofile index 67a7065..a0430d7 100644 --- a/.zprofile +++ b/.zprofile @@ -13,4 +13,6 @@ export QT_QPA_PLATFORMTHEME=qt5ct #export DESKTOP_SESSION=KDE # If running from tty1 start sway -[ "$(tty)" = "/dev/tty1" ] && exec ~/.config/sway/start.sh +if [ "$(tty)" = "/dev/tty1" ]; then + startsway +fi diff --git a/bin/startsway b/bin/startsway new file mode 100755 index 0000000..c61e69b --- /dev/null +++ b/bin/startsway @@ -0,0 +1,7 @@ +export _JAVA_AWT_WM_NONREPARENTING=1 +export MOZ_ENABLE_WAYLAND=1 +export XDG_CURRENT_DESKTOP=sway +export XDG_SESSION_DESKTOP=sway +export QT_STYLE_OVERRIDE=cherry + +dbus-launch --exit-with-session sway diff --git a/install.sh b/install.sh index 68e6d66..0d2c4c9 100755 --- a/install.sh +++ b/install.sh @@ -36,4 +36,5 @@ then gobin bin/dmenukaomoji gobin bin/toggle + gobin bin/startsway fi diff --git a/sway/start.sh b/sway/start.sh deleted file mode 100755 index 50a357b..0000000 --- a/sway/start.sh +++ /dev/null @@ -1,15 +0,0 @@ -#export QT_QPA_PLATFORM="wayland;xcb" -#export GDK_BACKEND="wayland,x11" -export QT_QPA_PLATFORMTHEME=qt5ct -export CLUTTER_BACKEND=wayland -export SDL_VIDEODRIVER=wayland -export _JAVA_AWT_WM_NONREPARENTING=1 - -export MOZ_ENABLE_WAYLAND=1 - -export XDG_CURRENT_DESKTOP=sway -export XDG_SESSION_DESKTOP=sway - -export VDPAU_DRIVER= radeonsi - -exec dbus-run-session sway