feat(niri): add reald switching profile, not only config

This commit is contained in:
2026-09-09 17:50:08 +02:00
parent 5bc9dc0220
commit 9e315892f7
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
profile.kdl
dms/
+5 -1
View File
@@ -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}}"
+1
View File
@@ -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 {