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()
|
config_dir := source_directory()
|
||||||
niri_dest := env("HOME") + "/.config/niri"
|
niri_dest := env("HOME") + "/.config/niri"
|
||||||
|
|
||||||
default: deploy
|
default: (deploy "dms")
|
||||||
|
|
||||||
# Deploy Niri configuration
|
# Deploy Niri configuration with specified profile (dms or noctalia)
|
||||||
deploy:
|
deploy profile="dms": (switch profile)
|
||||||
@echo "Deploying Niri configuration..."
|
@echo "Deploying Niri configuration..."
|
||||||
mkdir -p ~/.config
|
mkdir -p ~/.config
|
||||||
ln -sfnT {{config_dir}} {{niri_dest}}
|
ln -sfnT {{config_dir}} {{niri_dest}}
|
||||||
@echo "Deployment successful!"
|
@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 "layout.kdl"
|
||||||
include "keybindings.kdl"
|
include "keybindings.kdl"
|
||||||
include "rules.kdl"
|
include "rules.kdl"
|
||||||
include "dms.kdl"
|
include "profile.kdl"
|
||||||
// include "noctalia.kdl"
|
|
||||||
recent-windows {
|
recent-windows {
|
||||||
off
|
off
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
//---------------------------------
|
||||||
|
//- Profile for DMS desktop shell -
|
||||||
|
//---------------------------------
|
||||||
|
|
||||||
spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &"
|
spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &"
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
//--------------------------------------
|
||||||
|
//- Profile for Noctalia desktop shell -
|
||||||
|
//--------------------------------------
|
||||||
|
|
||||||
spawn-at-startup "qs" "-c" "noctalia-shell"
|
spawn-at-startup "qs" "-c" "noctalia-shell"
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
|
|||||||
Reference in New Issue
Block a user