summaryrefslogtreecommitdiff
path: root/home/wayland/modules/sway
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-16 12:03:27 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-16 12:05:29 +0530
commitdfc74d5da39840cacb19dd2743727634b53e2cd9 (patch)
tree765683009b1d64661b6d9ad8fda6ddf2e4bd1a2e /home/wayland/modules/sway
parent9fe3f6620e91ae9efa8258c010abd0b094d88944 (diff)
home/wayland/sway: autostart on tty1
Diffstat (limited to 'home/wayland/modules/sway')
-rw-r--r--home/wayland/modules/sway/home.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/wayland/modules/sway/home.nix b/home/wayland/modules/sway/home.nix
index fbc2411..5f4cfb5 100644
--- a/home/wayland/modules/sway/home.nix
+++ b/home/wayland/modules/sway/home.nix
@@ -33,6 +33,12 @@ in {
./i3status.nix
];
+ programs.bash.profileExtra = ''
+ case "$(tty)" in
+ */tty1) exec sway ;;
+ esac
+ '';
+
home = {
packages = [
pkgs.wl-clipboard