Revert "Group desktop modules"

This reverts commit 278904eec6.
This commit is contained in:
Oliver Davies 2025-11-22 16:23:37 +00:00
parent dc4a7189b4
commit cec818dcb1
56 changed files with 0 additions and 0 deletions

36
modules/dmenu-tmux.nix Normal file
View file

@ -0,0 +1,36 @@
{ 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
];
})
];
};
}