1
0
mirror of https://github.com/osmarks/random-stuff synced 2025-09-10 22:36:01 +00:00
Files
random-stuff/dotfiles/run_sway_env
2025-07-28 10:10:47 +01:00

29 lines
796 B
Bash
Executable File

#!/bin/sh
# This allows xdg-desktop-portal-wlr to function (e.g. for screen-recording)
export XDG_CURRENT_DESKTOP=wlroots
#export XKB_DEFAULT_LAYOUT=custom
export XKB_DEFAULT_OPTIONS=compose:caps,mod_led:compose
export ELECTRON_OZONE_PLATFORM_HINT=wayland
export MOZ_ENABLE_WAYLAND=1
# Set cursor theme.
# Find icons themes with the command below or similar:
# find /usr/share/icons/ -type d -name "cursors"
export XCURSOR_THEME=breeze_cursors
# For Java applications such as JetBrains/Intellij Idea, set this variable
# to avoid menus with incorrect offset and blank windows
# See https://github.com/swaywm/sway/issues/595
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_THEME=Arc-Darker
export XCURSOR_THEME=Adwaita
export SDL_VIDEODRIVER=wayland
sway 2>&1 | tee ~/.local/sway.log