Niri Configuration help

I am a newbie to Linux, recently I have installed niri on my Endeavouros laptop.
I have line “Mod+Ctrl+S { spawn “systemctl poweroff”; }“ in binds in the config.kdl file on niri but this shortcut doesn’t seem to work. Rest all of my shortcut keybinds seem to work except this. Any help is greatly appreciated. I have verified that the config is proper using “niri validate”, there are no collisions.

What happens when you run systemctl poweroff from the terminal?

Also, this section of the Wiki may be of help:

If I run systemctl poweroff in a terminal then the system shuts down correctly

I have never used Niri, dwm user here, so I have exhausted my knowledge :slight_smile:

It’s not a double up of the keybinds?

No all keybinds are unique, I have verified it.

Does shutdown now do anything?

@Koloss Sorry for wasting your time, I just got to know from niri documentation that to run commands containing spaces in spawn we need to use something like spawn "systemctl" "poweroff";. Thank you @Koloss for your help.

1 Like

Glad you sorted it, I was just starting to read through the docs to see what the structure was like.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.