<commit_before>function startw --description 'startx equivalent for starting sway'
    # Encourage programs to use Wayland
    # see: https://github.com/swaywm/sway/wiki/Running-programs-natively-under-wayland
    set --export BEMENU_BACKEND wayland
    set --export CLUTTER_BACKEND wayland

    # GTK3+ will default to Wayland, so do not set otherwise it will break some apps.
    #set --export GDK_BACKEND wayland

    set --export ECORE_EVAS_ENGINE wayland_egl
    set --export ELM_ENGINE wayland_egl
    set --export _JAVA_AWT_WM_NONREPARENTING 1
    set --export MOZ_ENABLE_WAYLAND 1
    set --export MOZ_WAYLAND_USE_VAAPI 1
    set --export QT_QPA_PLATFORM wayland-egl
    set --export QT_WAYLAND_DISABLE_WINDOWDECORATION 1

    # Setting this was preventing Stardew Valley from running
    #set --export SDL_VIDEODRIVER wayland

    # Some programs might (wrongly?) look for this var
    # https://github.com/swaywm/sway/pull/4876
    if status is-interactive
        and string length --quiet SWAYSOCK
        set --export XDG_CURRENT_DESKTOP sway
    end

    # Enabling this might make systemd-login IdleHints to work
    # (see https://www.reddit.com/r/swaywm/comments/eeavlo/sway_on_arch_does_not_change_session_type)
    # However, it breaks IBus' default canditate window so need to disable it
    # (see https://github.com/google/mozc/issues/431)
    # set --export XDG_SESSION_TYPE wayland

    sway $argv
end<commit_msg>fish/startw: add comment regarding XDG_CURRENT_DESKTOP<commit_after>function startw --description 'startx equivalent for starting sway'
    # Encourage programs to use Wayland
    # see: https://github.com/swaywm/sway/wiki/Running-programs-natively-under-wayland
    set --export BEMENU_BACKEND wayland
    set --export CLUTTER_BACKEND wayland

    # GTK3+ will default to Wayland, so do not set otherwise it will break some apps.
    #set --export GDK_BACKEND wayland

    set --export ECORE_EVAS_ENGINE wayland_egl
    set --export ELM_ENGINE wayland_egl
    set --export _JAVA_AWT_WM_NONREPARENTING 1
    set --export MOZ_ENABLE_WAYLAND 1
    set --export MOZ_WAYLAND_USE_VAAPI 1
    set --export QT_QPA_PLATFORM wayland-egl
    set --export QT_WAYLAND_DISABLE_WINDOWDECORATION 1

    # Setting this was preventing Stardew Valley from running
    #set --export SDL_VIDEODRIVER wayland

    # Some programs might (wrongly?) look for this var
    # https://github.com/swaywm/sway/pull/4876
    # However Unity might be better for some apps with tray icons?
    # https://www.reddit.com/r/swaywm/comments/gekpeq/waybar_for_a_functional_tray_install/fpv3i1y/
    if status is-interactive
        and string length --quiet SWAYSOCK
        set --export XDG_CURRENT_DESKTOP sway
    end

    # Enabling this might make systemd-login IdleHints to work
    # (see https://www.reddit.com/r/swaywm/comments/eeavlo/sway_on_arch_does_not_change_session_type)
    # However, it breaks IBus' default canditate window so need to disable it
    # (see https://github.com/google/mozc/issues/431)
    # set --export XDG_SESSION_TYPE wayland

    sway $argv
end
{'fraction_non_alphanumeric': 0.07235561323815703, 'fraction_numerical': 0.008436080467229072, 'mean_word_length': 3.3483779971791257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '917682', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1012, 'n_words': 285}