Group desktop modules
Some checks are pending
/ check (push) Waiting to run

This commit is contained in:
Oliver Davies 2025-11-22 14:33:48 +00:00
parent 7aaf90bc75
commit 278904eec6
56 changed files with 0 additions and 0 deletions

View file

@ -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
];
})
];
};
}