diff --git a/home/common/bash.nix b/home/common/bash.nix index bca3356..21e443f 100644 --- a/home/common/bash.nix +++ b/home/common/bash.nix @@ -1,6 +1,7 @@ { config, pkgs, ... }: { imports = [ ./bash_complition.nix ]; + home.file.".bash_local".source = files/bash/bash_local; home.file.".bash_aliases".source = files/bash/bash_aliases; home.file.".bash_functions".source = files/bash/bash_functions; home.file.".bash_hosts".source = files/bash/bash_hosts; diff --git a/home/common/files/bash/bash_local b/home/common/files/bash/bash_local new file mode 100644 index 0000000..8c8c107 --- /dev/null +++ b/home/common/files/bash/bash_local @@ -0,0 +1,12 @@ +. ~/.bash_ssh +#export TZ=America/Chicago +if [[ "$(tty)" = "/dev/tty1" ]] +then + export XDG_SESSION_TYPE=wayland + export XDG_SESSION_DESKTOP=sway + export XDG_CURRENT_DESKTOP=sway + export MOZ_ENABLE_WAYLAND=1 + export NIXOS_OZONE_WL=1 + systemd-cat --identifier=sway sway + exit +fi