From 4e11013aa7d8fdfa2c8c89e4199b37bdab13cea0 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sun, 16 Jun 2024 23:06:28 -0500 Subject: [PATCH] add bash_local --- home/common/bash.nix | 1 + home/common/files/bash/bash_local | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 home/common/files/bash/bash_local 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