feat: mux-sessionizer

This commit is contained in:
s-prechtl 2025-03-20 10:57:55 +01:00
parent 9f6b7f1fc9
commit 94c9973c24
3 changed files with 20 additions and 7 deletions

View file

@ -284,7 +284,7 @@
# Or disable the firewall altogether.
# networking.firewall.enable = false;
security.pam.services.hyprlock = {};
networking.firewall.checkReversePath = false;
networking.firewall.checkReversePath = false;
networking.wg-quick.interfaces = {
home = {
address = ["10.154.125.2/24"];

View file

@ -36,9 +36,15 @@
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
(pkgs.writeShellScriptBin "mux-sessionizer" ''
session=$(tmuxinator list | tail -n +2 | tr -s '[:space:]' '\n' | fzf)
if [ -n "$session" ]; then
tmuxinator start "$session"
else
echo "No session selected"
fi
'')
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage