Skip to content

Commit

Permalink
bash/usr-local-bin/startsway: we are running sway, not Unity
Browse files Browse the repository at this point in the history
Apparently this isn't necessary since 2020
Alexays/Waybar#21 (comment)
  • Loading branch information
Mikaela committed Oct 15, 2022
1 parent b5ad053 commit bca2fb3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bash/usr-local-bin/startsway
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

set -x

# As this script is kind of login manager and upstream wants to externalize
# the task of telling Sway is used to it, https://github.com/swaywm/sway/pull/4876#issuecomment-570790128
# This seems to be required by Firefox and many others.
# Don't listen to Wayber claiming this should be "Unity"
export XDG_CURRENT_DESKTOP=sway
# https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md
# mentions this
export XDG_SESSION_DESKTOP=sway

# Using fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE="fcitx"
Expand All @@ -21,8 +30,5 @@ export SDL_VIDEODRIVER=wayland
# Mozilla Products
export MOZ_ENABLE_WAYLAND=1

# Waybar states: [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
export XDG_CURRENT_DESKTOP=Unity

dbus-launch --exit-with-session sway --unsupported-gpu $@
set +x

0 comments on commit bca2fb3

Please sign in to comment.