Add uwsm launch alias

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-13 14:12:49 +01:00
parent ea0113c10a
commit 000a8c64b4

View File

@@ -163,11 +163,24 @@
extraConfig = "source = ./theme.conf";
};
programs.zsh.loginExtra = lib.mkAfter ''
if uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
'';
programs.zsh = {
loginExtra = lib.mkAfter ''
if uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
'';
initContent = ''
launch() {
if [[ $# -eq 0 ]]; then
echo "Usage: launch <command> [args...]"
return 1
fi
uwsm app -S both -- "$@" &!
}
'';
};
theme = {
template.".config/hypr/theme.conf".source = ./theme.conf;