summaryrefslogtreecommitdiff
path: root/pkgs/tmux-open/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-12-11 01:24:34 -0600
committerAlejandro Soto <alejandro@34project.org>2024-12-11 01:24:34 -0600
commit23aacc7e231b5f73745a6ef72abbcdecf193790d (patch)
treee5b64243d61b95c186ffe9946d19e0211064d407 /pkgs/tmux-open/default.nix
parent771624767c3d916e2c77d352e71c07bffca8da59 (diff)
pkgs/tmux-open: implement persistent tmux sessions by i3/sway workspace
Diffstat (limited to 'pkgs/tmux-open/default.nix')
-rw-r--r--pkgs/tmux-open/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tmux-open/default.nix b/pkgs/tmux-open/default.nix
new file mode 100644
index 0000000..e2c799c
--- /dev/null
+++ b/pkgs/tmux-open/default.nix
@@ -0,0 +1,11 @@
+{ jq
+, substituteAll
+, sway
+, tmux
+, writeShellScriptBin
+, ...
+}:
+writeShellScriptBin "tmux-open" (builtins.readFile (substituteAll {
+ src = ./tmux-open.sh;
+ env = { inherit jq sway tmux; };
+}))