All checks were successful
/ check (push) Successful in 44s
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
28 lines
587 B
Nix
28 lines
587 B
Nix
{ inputs, ... }:
|
|
|
|
{
|
|
flake.modules.homeManager.gui =
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [
|
|
(pkgs.writeShellApplication {
|
|
name = "dmenu_tmux";
|
|
|
|
text = ''
|
|
selected="$(z tmux list | dmenu -l 20)"
|
|
|
|
if [[ -n "$selected" ]]; then
|
|
echo "$selected"
|
|
|
|
# TODO: open a terminal with the selected session.
|
|
fi
|
|
'';
|
|
|
|
runtimeInputs = with pkgs; [
|
|
dmenu
|
|
inputs.z.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
];
|
|
})
|
|
];
|
|
};
|
|
}
|