feat(niri): add switch profile option
This commit is contained in:
@@ -0,0 +1 @@
|
||||
profile.kdl
|
||||
+8
-3
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
//---------------------------------
|
||||
//- Profile for DMS desktop shell -
|
||||
//---------------------------------
|
||||
|
||||
spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &"
|
||||
|
||||
binds {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
//--------------------------------------
|
||||
//- Profile for Noctalia desktop shell -
|
||||
//--------------------------------------
|
||||
|
||||
spawn-at-startup "qs" "-c" "noctalia-shell"
|
||||
|
||||
binds {
|
||||
|
||||
Reference in New Issue
Block a user