From f34546a7aca22aa7513f893f7f8f9b7c7e45bd85 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 14 Nov 2023 21:50:39 +0000 Subject: [PATCH] feat: handoff to tmux on alacritty --- 2-core.sh | 7 ++++++- 3-finegrained.sh | 0 3-tmux.sh | 5 +++++ 4-finegrained.sh | 1 + 4-launch.sh | 0 config/alacritty/alacritty-autostart.yml | 12 ++++++------ 6 files changed, 18 insertions(+), 7 deletions(-) delete mode 100644 3-finegrained.sh create mode 100755 3-tmux.sh create mode 100755 4-finegrained.sh delete mode 100644 4-launch.sh diff --git a/2-core.sh b/2-core.sh index d424680..e82ac62 100644 --- a/2-core.sh +++ b/2-core.sh @@ -1,11 +1,16 @@ +#!/bin/bash + cp -a config/. ~/.config # echo "source ~/.config/bash/bashrc" >> ~/.bashrc # actually, I want this command to be indempotent, mmh +# install core packages bash packages/core/1-lf.sh bash packages/core/2-tmux.sh bash packages/core/3-gnome-extensions.sh bash packages/core/4-alacritty.sh -alacritty --config-file ./config/alacritty/alacritty-autostart.yml --command "/usr/bin/bash" +# hand off to alacritty +chmod +x 3-tmux.sh +alacritty --config-file ./config/alacritty/alacritty-autostart.yml --command "$HOME/nunOS/3-tmux.sh" & diff --git a/3-finegrained.sh b/3-finegrained.sh deleted file mode 100644 index e69de29..0000000 diff --git a/3-tmux.sh b/3-tmux.sh new file mode 100755 index 0000000..d4ecae0 --- /dev/null +++ b/3-tmux.sh @@ -0,0 +1,5 @@ +#!/bin/bash +chmod +x 4-finegrained.sh +/usr/bin/tmux new-session -d -s nunos "bash 4-finegrained.sh" +/usr/bin/tmux attach -t nunos +# -c "4-finegrained.sh" diff --git a/4-finegrained.sh b/4-finegrained.sh new file mode 100755 index 0000000..638a1bc --- /dev/null +++ b/4-finegrained.sh @@ -0,0 +1 @@ +echo 1 && sleep 2 && bash diff --git a/4-launch.sh b/4-launch.sh deleted file mode 100644 index e69de29..0000000 diff --git a/config/alacritty/alacritty-autostart.yml b/config/alacritty/alacritty-autostart.yml index 8c21493..083e3c4 100644 --- a/config/alacritty/alacritty-autostart.yml +++ b/config/alacritty/alacritty-autostart.yml @@ -442,12 +442,12 @@ cursor: # - (macOS) /bin/bash --login # - (Linux/BSD) user login shell # - (Windows) powershell -shell: - program: /bin/bash - args: - - -l - - -c - - "bash" #tmuxp load desk" +#shell: +# program: /bin/bash +# args: +# - -l +# - -c +# - "bash" #tmuxp load desk" # - "tmux" # Startup directory #