Add uwsm launch alias
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -163,11 +163,24 @@
|
|||||||
extraConfig = "source = ./theme.conf";
|
extraConfig = "source = ./theme.conf";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.loginExtra = lib.mkAfter ''
|
programs.zsh = {
|
||||||
if uwsm check may-start; then
|
loginExtra = lib.mkAfter ''
|
||||||
exec uwsm start hyprland-uwsm.desktop
|
if uwsm check may-start; then
|
||||||
fi
|
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 = {
|
theme = {
|
||||||
template.".config/hypr/theme.conf".source = ./theme.conf;
|
template.".config/hypr/theme.conf".source = ./theme.conf;
|
||||||
|
Reference in New Issue
Block a user