feat(niri): add switch profile option

This commit is contained in:
2026-09-09 17:35:38 +02:00
parent 4b9d617a65
commit 5bc9dc0220
5 changed files with 18 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
profile.kdl
+8 -3
View File
@@ -2,11 +2,16 @@
config_dir := source_directory()
niri_dest := env("HOME") + "/.config/niri"
default: deploy
default: (deploy "dms")
# Deploy Niri configuration
deploy:
# Deploy Niri configuration with specified profile (dms or noctalia)
deploy profile="dms": (switch profile)
@echo "Deploying Niri configuration..."
mkdir -p ~/.config
ln -sfnT {{config_dir}} {{niri_dest}}
@echo "Deployment successful!"
# Switch active desktop profile (e.g. dms, noctalia)
switch profile:
ln -sf {{profile}}.kdl {{config_dir}}/profile.kdl
@echo "Switched Niri profile to {{profile}}"
+1 -2
View File
@@ -7,8 +7,7 @@ include "input.kdl"
include "layout.kdl"
include "keybindings.kdl"
include "rules.kdl"
include "dms.kdl"
// include "noctalia.kdl"
include "profile.kdl"
recent-windows {
off
}
+4
View File
@@ -1,3 +1,7 @@
//---------------------------------
//- Profile for DMS desktop shell -
//---------------------------------
spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &"
binds {
+4
View File
@@ -1,3 +1,7 @@
//--------------------------------------
//- Profile for Noctalia desktop shell -
//--------------------------------------
spawn-at-startup "qs" "-c" "noctalia-shell"
binds {