This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/os/linux/sway/init

38 lines
908 B
Plaintext
Raw Normal View History

2021-03-06 22:07:30 -06:00
#!/usr/bin/env fish
2021-11-03 12:01:43 -05:00
set --query XDG_CONFIG_HOME || begin
2021-03-06 22:07:30 -06:00
echo XDG_CONFIG_HOME not set
exit 1
end
2020-03-23 13:23:50 -05:00
2021-11-03 12:01:43 -05:00
set --query DOTFILES_PATH || begin
2021-03-06 22:07:30 -06:00
echo DOTFILES_PATH not set
exit 1
end
2020-03-23 13:23:50 -05:00
2021-11-03 12:01:43 -05:00
# set --export --universal QT_QPA_PLATFORM xcb
# set --export --universal QT_QPA_PLATFORM_PLUGIN_PATH /usr/lib/qt/plugins
set --export --universal CLUTTER_BACKEND wayland
2022-02-18 10:53:18 -06:00
# set --export --universal SDL_VIDEODRIVER wayland
2021-11-03 12:01:43 -05:00
set --export --universal MOZ_ENABLE_WAYLAND 1
set --export --universal XDG_CURRENT_DESKTOP sway
set --export --universal _JAVA_AWT_WM_NONREPARENTING 1
2022-02-18 10:53:18 -06:00
# for s in $ENV_PATH/*/sway-init.d.fish
# source $s (dirname $s)
# end
2020-03-24 12:05:08 -05:00
2021-11-03 12:01:43 -05:00
set --query SWAY_LOGGING || set SWAY_LOGGING 0
if test $SWAY_LOGGING = 1
set initstr "\n(date): Starting Sway"
set elogfile ~/.sway.error.log
set logfile ~/.sway.log
2021-11-03 12:01:43 -05:00
echo $initstr >> $logfile; echo $initstr >> $elogfile
exec sway >> $logfile 2>> $elogfile
else
exec sway
end