diff --git a/niri/.gitignore b/niri/.gitignore index f601086..a12f371 100644 --- a/niri/.gitignore +++ b/niri/.gitignore @@ -1 +1,2 @@ profile.kdl +dms/ diff --git a/niri/Justfile b/niri/Justfile index 9ba52bf..c56b7f0 100644 --- a/niri/Justfile +++ b/niri/Justfile @@ -11,7 +11,11 @@ deploy profile="dms": (switch profile) ln -sfnT {{config_dir}} {{niri_dest}} @echo "Deployment successful!" -# Switch active desktop profile (e.g. dms, noctalia) +# Switch active desktop profile (dms or noctalia) switch profile: ln -sf {{profile}}.kdl {{config_dir}}/profile.kdl + -niri msg action load-config-file + -pkill -x dms + -pkill -f "noctalia-shell" + -niri msg action spawn-sh -- "{{ if profile == "dms" { "dms run --session" } else { "qs -c noctalia-shell" } }}" @echo "Switched Niri profile to {{profile}}" diff --git a/niri/dms.kdl b/niri/dms.kdl index 140d5aa..a827828 100644 --- a/niri/dms.kdl +++ b/niri/dms.kdl @@ -2,6 +2,7 @@ //- Profile for DMS desktop shell - //--------------------------------- +spawn-at-startup "dms" "run" "--session" spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &" binds {