machine_setup/ansible/roles/sway/files/launch_sway_linux.bash

21 lines
440 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# Launch sway
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2022-12-10 20:29:19 +00:00
export XDG_CURRENT_DESKTOP=sway
2024-04-07 02:09:23 +00:00
export WLR_RENDERER=vulkan
2022-12-10 20:29:19 +00:00
2024-04-12 23:06:00 +00:00
# Enable wayland support for electron (vscode)
export ELECTRON_OZONE_PLATFORM_HINT=wayland
# Enable wayland support for firefox
export MOZ_ENABLE_WAYLAND=1
# Enable dark theme
# export QT_STYLE_OVERRIDE=adwaita-dark
2022-10-17 22:47:21 +00:00
exec sway -d &> $HOME/.config/swaylog