feat(niri): add reald switching profile, not only config
This commit is contained in:
@@ -1 +1,2 @@
|
||||
profile.kdl
|
||||
dms/
|
||||
|
||||
+5
-1
@@ -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}}"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user