This commit is contained in:
parent
7aaf90bc75
commit
278904eec6
56 changed files with 0 additions and 0 deletions
|
|
@ -1,36 +0,0 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake.modules.homeManager.gui =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "dmenu_tmux";
|
||||
|
||||
text = ''
|
||||
selected="$(z tmux list | dmenu -l 40)" || exit 0
|
||||
|
||||
if tmux list-sessions >/dev/null 2>&1; then
|
||||
if pgrep -x st >/dev/null; then
|
||||
z tmux connect "$selected"
|
||||
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
pkill -x st 2>/dev/null || true
|
||||
sleep 0.1
|
||||
|
||||
exec st -e z tmux connect "$selected"
|
||||
'';
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
dmenu
|
||||
inputs.z.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
st
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue